Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running webstart on linux fails on issuing credential #79

Open
swcurran opened this issue Dec 24, 2022 · 0 comments
Open

Running webstart on linux fails on issuing credential #79

swcurran opened this issue Dec 24, 2022 · 0 comments
Assignees

Comments

@swcurran
Copy link
Contributor

The recent PR fixes PWD, but still not working on Linux. From the logs, I get this error when Faber sends Alice her credential. I selected all fields on the "Credentials" screen -- connection, schema, credDef.

Any ideas?

faber-controller_1  | Agent is running on: http://faber-agent:8021
faber-controller_1  | info: System.Net.Http.HttpClient.FCAgentService.LogicalHandler[100]
faber-controller_1  |       Start processing HTTP request GET http://faber-agent:8021/credential-definitions/created
faber-controller_1  | info: System.Net.Http.HttpClient.FCAgentService.ClientHandler[100]
faber-controller_1  |       Sending HTTP request GET http://faber-agent:8021/credential-definitions/created
faber-controller_1  | info: System.Net.Http.HttpClient.FCAgentService.ClientHandler[101]
faber-controller_1  |       Received HTTP response after 8.7817ms - OK
faber-controller_1  | info: System.Net.Http.HttpClient.FCAgentService.LogicalHandler[101]
faber-controller_1  |       End processing HTTP request after 9.3651ms - OK
faber-controller_1  | info: System.Net.Http.HttpClient.FCAgentService.LogicalHandler[100]
faber-controller_1  |       Start processing HTTP request GET http://faber-agent:8021/connections
faber-controller_1  | info: System.Net.Http.HttpClient.FCAgentService.ClientHandler[100]
faber-controller_1  |       Sending HTTP request GET http://faber-agent:8021/connections
faber-controller_1  | info: System.Net.Http.HttpClient.FCAgentService.LogicalHandler[100]
faber-controller_1  |       Start processing HTTP request GET http://faber-agent:8021/schemas/created
faber-controller_1  | info: System.Net.Http.HttpClient.FCAgentService.ClientHandler[100]
faber-controller_1  |       Sending HTTP request GET http://faber-agent:8021/schemas/created
faber-controller_1  | info: System.Net.Http.HttpClient.FCAgentService.ClientHandler[101]
faber-controller_1  |       Received HTTP response after 5.7443ms - OK
faber-controller_1  | info: System.Net.Http.HttpClient.FCAgentService.LogicalHandler[101]
faber-controller_1  |       End processing HTTP request after 6.0492ms - OK
faber-controller_1  | info: System.Net.Http.HttpClient.FCAgentService.LogicalHandler[100]
faber-controller_1  |       Start processing HTTP request GET http://faber-agent:8021/connections
faber-controller_1  | info: System.Net.Http.HttpClient.FCAgentService.ClientHandler[100]
faber-controller_1  |       Sending HTTP request GET http://faber-agent:8021/connections
faber-controller_1  | info: System.Net.Http.HttpClient.FCAgentService.ClientHandler[101]
faber-controller_1  |       Received HTTP response after 9.0385ms - OK
faber-controller_1  | info: System.Net.Http.HttpClient.FCAgentService.LogicalHandler[101]
faber-controller_1  |       End processing HTTP request after 9.3932ms - OK
faber-controller_1  | info: System.Net.Http.HttpClient.FCAgentService.ClientHandler[101]
faber-controller_1  |       Received HTTP response after 5.5112ms - OK
faber-controller_1  | info: System.Net.Http.HttpClient.FCAgentService.LogicalHandler[101]
faber-controller_1  |       End processing HTTP request after 5.7233ms - OK
faber-controller_1  | info: System.Net.Http.HttpClient.FCAgentService.LogicalHandler[100]
faber-controller_1  |       Start processing HTTP request POST http://faber-agent:8021/issue-credential/send
faber-controller_1  | info: System.Net.Http.HttpClient.FCAgentService.ClientHandler[100]
faber-controller_1  |       Sending HTTP request POST http://faber-agent:8021/issue-credential/send
faber-controller_1  | info: System.Net.Http.HttpClient.FCAgentService.ClientHandler[101]
faber-controller_1  |       Received HTTP response after 2.8037ms - UnprocessableEntity
faber-controller_1  | info: System.Net.Http.HttpClient.FCAgentService.LogicalHandler[101]
faber-controller_1  |       End processing HTTP request after 3.0554ms - UnprocessableEntity
faber-controller_1  | System.Net.Http.HttpRequestException: Response status code does not indicate success: 422 (Unprocessable Entity).
faber-controller_1  |    at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
faber-controller_1  |    at FaberController.Services.FCAgentService.SendCredential(String credential) in /app/FaberController/Services/FCAgentService.cs:line 196
faber-controller_1  | Agent is running on: http://faber-agent:8021
faber-controller_1  | Agent is running on: http://faber-agent:8021
faber-controller_1  | info: System.Net.Http.HttpClient.FCAgentService.LogicalHandler[100]
Faber      | 2022-12-24 18:19:18,188 aries_cloudagent.admin.server ERROR Handler error with exception: Unprocessable Entity
Faber      | Traceback (most recent call last):
Faber      |   File "/home/indy/.pyenv/versions/3.6.13/lib/python3.6/site-packages/webargs/asyncparser.py", line 90, in parse
Faber      |     result = schema.load(parsed)
Faber      |   File "/home/indy/.pyenv/versions/3.6.13/lib/python3.6/site-packages/marshmallow/schema.py", line 723, in load
Faber      |     data, many=many, partial=partial, unknown=unknown, postprocess=True
Faber      |   File "/home/indy/.pyenv/versions/3.6.13/lib/python3.6/site-packages/marshmallow/schema.py", line 904, in _do_load
Faber      |     raise exc
Faber      | marshmallow.exceptions.ValidationError: {'credential_proposal': ['Missing data for required field.'], 'connection_id': ['Missing data for required field.']}
Faber      | 
Faber      | During handling of the above exception, another exception occurred:
Faber      | 
Faber      | Traceback (most recent call last):
Faber      |   File "/home/indy/aries_cloudagent/admin/server.py", line 171, in ready_middleware
Faber      |     return await handler(request)
Faber      |   File "/home/indy/aries_cloudagent/admin/server.py", line 208, in debug_middleware
Faber      |     return await handler(request)
Faber      |   File "/home/indy/.pyenv/versions/3.6.13/lib/python3.6/site-packages/aiohttp_apispec/middlewares.py", line 34, in validation_middleware
Faber      |     schema["schema"], request, locations=schema["locations"]
Faber      |   File "/home/indy/.pyenv/versions/3.6.13/lib/python3.6/site-packages/webargs/asyncparser.py", line 95, in parse
Faber      |     error, req, schema, error_status_code, error_headers
Faber      |   File "/home/indy/.pyenv/versions/3.6.13/lib/python3.6/site-packages/webargs/asyncparser.py", line 108, in _on_validation_error
Faber      |     await error_handler(error, req, schema, error_status_code, error_headers)
Faber      |   File "/home/indy/.pyenv/versions/3.6.13/lib/python3.6/site-packages/webargs/aiohttpparser.py", line 166, in handle_error
Faber      |     content_type="application/json",
Faber      | aiohttp.web_exceptions.HTTPUnprocessableEntity: Unprocessable Entity
@amanji amanji self-assigned this Dec 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants