aries cloudagent python和ariesframeworkjavascript(中介)之间的连接

2024-06-16 18:56:45 发布

您现在位置:Python中文网/ 问答频道 /正文

当我在存储了邀请receiveInvitation(invitationJson, {autoAcceptConnection:false})以连接aries-cloudagent-python之后调用acceptInvitation(connectionId)函数时,它的给出错误

中介代理的错误日志(aries框架javascript)

aries-framework-javascript  error while unpacking message IndyError: 212
bob-mediator_1    |     at Object.callback (/www/node_modules/indy-sdk/src/wrapIndyCallback.js:15:10)
bob-mediator_1    | (node:40) UnhandledPromiseRejectionWarning: IndyError: 212
bob-mediator_1    |     at Object.callback (/www/node_modules/indy-sdk/src/wrapIndyCallback.js:15:10)
bob-mediator_1    | (node:40) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 23)

邀请样本(aries cloudagent python)

"@type": "did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/connections/1.0/invitation",
    "@id": "35b79c44-03b9-4145-8c8e-0f81654d07a9",
    "recipientKeys": [
      "FsdBP94hyb4CpyoSqb3Q5BMFADxFWTjhQhvBDqTqUWpX"
    ],
    "label": "Faber.Agent",
    "serviceEndpoint": "http://<ip>:8020"

注意:这里我使用的是来自aries-framework-javascript的中介代理


Tags: node错误frameworkerrorjavascriptatbobmediator