You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some agents return errors as the HTTP response when something went wrong. We try to unpack all received messages which can result in weird errors:
ERROR ERROR: error while unpacking message {
"error": {},
"packedMessage": {
"error": "Unhandled exception: Couldn't locate a message handler for type https://didcomm.org/issue-credential/1.0/ack",
"errorType": "AriesFrameworkException"
},
"errorMessage": "Error unpacking message"
}
We should try to see if the received message has the structure of a packed message (correct JWE keys) before trying to unpack. We could throw a dedicated error if the structure is not a JWE and notfiy the framework user we received an error message from the other agent
Some agents return errors as the HTTP response when something went wrong. We try to unpack all received messages which can result in weird errors:
We should try to see if the received message has the structure of a packed message (correct JWE keys) before trying to unpack. We could throw a dedicated error if the structure is not a JWE and notfiy the framework user we received an error message from the other agent
Relevant HTTP code: https://github.com/hyperledger/aries-framework-javascript/blob/main/packages/core/src/transport/HttpOutboundTransport.ts#L78-L81
Encrypted message structure: https://github.com/hyperledger/aries-framework-javascript/blob/main/packages/core/src/types.ts#L15
Example encrypted message:
The text was updated successfully, but these errors were encountered: