openwallet-foundation / credo-ts

Typescript framework for building decentralized identity and verifiable credential solutions
https://credo.js.org
Apache License 2.0
260 stars 197 forks source link

outbound Message endpoint returns undefined #144

Closed proteche closed 3 years ago

proteche commented 3 years ago

Mediator Logs

alice-mediator_1  | 2020-12-10T08:26:22.366Z aries-framework-javascript ---------- outboundMessage ---------- 
alice-mediator_1  |  {
alice-mediator_1  |   "verkey": "79vv3bQepZkjEuBPLQLTGqHdDson9iA4MaPjXPc5jEvR",
alice-mediator_1  |   "theirKey": "aba1ZLR9KwrqvhBN1YVcPKYBFvzTobV9VxjGpBwqBhK",
alice-mediator_1  |   "routingKeys": [],
alice-mediator_1  |   "endpoint": "undefined:undefined/msg",
alice-mediator_1  |   "message": {
alice-mediator_1  |     "@type": "https://didcomm.org/messagepickup/1.0/batch",
alice-mediator_1  |     "@id": "1a810b53-38a7-4b31-9efb-d9e39fa4a670",
alice-mediator_1  |     "messages~attach": []
alice-mediator_1  |   }
alice-mediator_1  | } 

Error aries-framework-javascript error while unpacking message IndyError: 212

TimoGlastra commented 3 years ago

Although it is not very nice, this is not related to your problem I think. The mobile agent has no endpoint, so it should be undefined. However I think we need to change it to be null instead of "undefined:undefined/msg".

I'll keep this issue open to track the change