We created a mobile app using the aries-framework-javascript, and when we scan an invitation qrcode in iPhone, we got the following error. (The same works fine in Android).
It says Invalid bytes for \"PublicKey\"\n. Can you help check what's wrong? Thanks!
DEBUG DEBUG: Sending outbound message to service with id cccecfc7-e593-4302-9e6e-15618d6a968b-invitation failed with the following error: {
"message": "Error packing message",
"error": {
"name": "WalletError",
"message": "Error packing message",
"stack": "Error\n at captureStackTrace (http://192.168.101.4:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.AriesBifold:126222:32)\n at BaseError (http://192.168.101.4:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.AriesBifold:126264:22)\n at construct (native)\n at _createSuperInternal (http://192.168.101.4:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.AriesBifold:126141:406)\n at call (native)\n at BaseError (http://192.168.101.4:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.AriesBifold:126172:26)\n at construct (native)\n at _createSuperInternal (http://192.168.101.4:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.AriesBifold:126110:406)\n at call (native)\n at AriesFrameworkError (http://192.168.101.4:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.AriesBifold:126130:25)\n at construct (native)\n at _createSuperInternal (http://192.168.101.4:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.AriesBifold:127994:406)\n at call (native)\n at WalletError (http://192.168.101.4:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.AriesBifold:128014:25)\n at pack$ (http://192.168.101.4:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.AriesBifold:127720:82)\n at call (native)\n at tryCatch (http://192.168.101.4:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.AriesBifold:24037:23)\n at invoke (http://192.168.101.4:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.AriesBifold:24207:32)\n at anonymous (http://192.168.101.4:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.AriesBifold:24079:30)\n at call (native)\n at tryCatch (http://192.168.101.4:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.AriesBifold:24037:23)\n at invoke (http://192.168.101.4:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.AriesBifold:24109:30)\n at anonymous (http://192.168.101.4:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.AriesBifold:24121:21)\n at tryCallOne (/Users/distiller/hermes/build_iphoneos/lib/InternalBytecode/InternalBytecode.js:53:16)\n at anonymous (/Users/distiller/hermes/build_iphoneos/lib/InternalBytecode/InternalBytecode.js:139:27)\n at apply (native)\n at anonymous (http://192.168.101.4:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.AriesBifold:29406:26)\n at _callTimer (http://192.168.101.4:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.AriesBifold:29302:17)\n at _callReactNativeMicrotasksPass (http://192.168.101.4:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.AriesBifold:29341:17)\n at callReactNativeMicrotasks (http://192.168.101.4:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.AriesBifold:29551:44)\n at __callReactNativeMicrotasks (http://192.168.101.4:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.AriesBifold:3057:46)\n at anonymous (http://192.168.101.4:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.AriesBifold:2835:45)\n at __guard (http://192.168.101.4:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.AriesBifold:3040:15)\n at flushedQueue (http://192.168.101.4:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.AriesBifold:2834:21)\n at invokeCallbackAndReturnFlushedQueue (http://192.168.101.4:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.AriesBifold:2827:33)",
"cause": {
"name": "IndyError",
"message": "IndySdk: Error Domain=IndyErrorDomain Code=113 \"(null)\" UserInfo={message=Error: Invalid structure\n Caused by: Invalid bytes for \"PublicKey\"\n, indy_backtrace=}",
"indyCode": 113,
"indyName": "CommonInvalidStructure",
"indyCurrentErrorJson": null
}
}
}
ERROR ERROR: Message is undeliverable to connection 65f10db1-5d1d-4e2c-b451-9c0fa55e3a68 (topcoder-test) {
"message": {
"@type": "https://didcomm.org/connections/1.0/request",
"@id": "98078afe-a98d-4c32-b2c0-03833a095e9f",
"label": "iPhone",
"connection": {
"DID": "BxFbJ5DNSbPfwt5vgMSkyo",
"DIDDoc": {
"@context": "https://w3id.org/did/v1",
"publicKey": [
{
"id": "BxFbJ5DNSbPfwt5vgMSkyo#1",
"controller": "BxFbJ5DNSbPfwt5vgMSkyo",
"type": "Ed25519VerificationKey2018",
"publicKeyBase58": "6yEZAbG7q99B4vBBqGCF5S1FpsjjvmmoeD4pobyycV28"
}
],
"service": [
{
"id": "BxFbJ5DNSbPfwt5vgMSkyo#IndyAgentService",
"serviceEndpoint": "http://mediator3.test.indiciotech.io:3000",
"type": "IndyAgent",
"priority": 0,
"recipientKeys": [
"6yEZAbG7q99B4vBBqGCF5S1FpsjjvmmoeD4pobyycV28"
],
"routingKeys": [
"DGYY31KpABLT4ydNHw11rRneEL8a41X4s6xqre2cAEbn"
]
}
],
"authentication": [
{
"publicKey": "BxFbJ5DNSbPfwt5vgMSkyo#1",
"type": "Ed25519SignatureAuthentication2018"
}
],
"id": "BxFbJ5DNSbPfwt5vgMSkyo"
}
}
},
"errors": [
{
"name": "WalletError",
"message": "Error packing message",
"stack": "Error\n at captureStackTrace (http://192.168.101.4:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.AriesBifold:126173:32)\n at BaseError (http://192.168.101.4:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.AriesBifold:126215:22)\n at construct (native)\n at _createSuperInternal (http://192.168.101.4:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.AriesBifold:126092:406)\n at call (native)\n at BaseError (http://192.168.101.4:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.AriesBifold:126123:26)\n at construct (native)\n at _createSuperInternal (http://192.168.101.4:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.AriesBifold:126061:406)\n at call (native)\n at AriesFrameworkError (http://192.168.101.4:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.AriesBifold:126081:25)\n at construct (native)\n at _createSuperInternal (http://192.168.101.4:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.AriesBifold:127945:406)\n at call (native)\n at WalletError (http://192.168.101.4:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.AriesBifold:127965:25)\n at pack$ (http://192.168.101.4:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.AriesBifold:127671:82)\n at call (native)\n at tryCatch (http://192.168.101.4:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.AriesBifold:24036:23)\n at invoke (http://192.168.101.4:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.AriesBifold:24206:32)\n at anonymous (http://192.168.101.4:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.AriesBifold:24078:30)\n at call (native)\n at tryCatch (http://192.168.101.4:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.AriesBifold:24036:23)\n at invoke (http://192.168.101.4:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.AriesBifold:24108:30)\n at anonymous (http://192.168.101.4:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.AriesBifold:24120:21)\n at tryCallOne (/Users/distiller/hermes/build_iphoneos/lib/InternalBytecode/InternalBytecode.js:53:16)\n at anonymous (/Users/distiller/hermes/build_iphoneos/lib/InternalBytecode/InternalBytecode.js:139:27)\n at apply (native)\n at anonymous (http://192.168.101.4:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.AriesBifold:29405:26)\n at _callTimer (http://192.168.101.4:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.AriesBifold:29301:17)\n at _callReactNativeMicrotasksPass (http://192.168.101.4:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.AriesBifold:29340:17)\n at callReactNativeMicrotasks (http://192.168.101.4:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.AriesBifold:29550:44)\n at __callReactNativeMicrotasks (http://192.168.101.4:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.AriesBifold:3057:46)\n at anonymous (http://192.168.101.4:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.AriesBifold:2835:45)\n at __guard (http://192.168.101.4:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.AriesBifold:3040:15)\n at flushedQueue (http://192.168.101.4:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.AriesBifold:2834:21)\n at invokeCallbackAndReturnFlushedQueue (http://192.168.101.4:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.AriesBifold:2827:33)",
"cause": {
"name": "IndyError",
"message": "IndySdk: Error Domain=IndyErrorDomain Code=113 \"(null)\" UserInfo={message=Error: Invalid structure\n Caused by: Invalid bytes for \"PublicKey\"\n, indy_backtrace=}",
"indyCode": 113,
"indyName": "CommonInvalidStructure",
"indyCurrentErrorJson": null
}
}
],
"connection": {
"_tags": {
"state": "invited",
"mediatorId": "0b85e592-f37c-4873-8512-6e58f68f39f6",
"role": "invitee",
"invitationKey": "A7LMcZM7R188ef1NLEXSuDuwvg6A1XFG4PXkW687hngn",
"verkey": "6yEZAbG7q99B4vBBqGCF5S1FpsjjvmmoeD4pobyycV28"
},
"id": "65f10db1-5d1d-4e2c-b451-9c0fa55e3a68",
"createdAt": "2021-11-09T16:16:21.476Z",
"did": "BxFbJ5DNSbPfwt5vgMSkyo",
"didDoc": {
"@context": "https://w3id.org/did/v1",
"publicKey": [
{
"id": "BxFbJ5DNSbPfwt5vgMSkyo#1",
"controller": "BxFbJ5DNSbPfwt5vgMSkyo",
"type": "Ed25519VerificationKey2018",
"publicKeyBase58": "6yEZAbG7q99B4vBBqGCF5S1FpsjjvmmoeD4pobyycV28"
}
],
"service": [
{
"id": "BxFbJ5DNSbPfwt5vgMSkyo#IndyAgentService",
"serviceEndpoint": "http://mediator3.test.indiciotech.io:3000",
"type": "IndyAgent",
"priority": 0,
"recipientKeys": [
"6yEZAbG7q99B4vBBqGCF5S1FpsjjvmmoeD4pobyycV28"
],
"routingKeys": [
"DGYY31KpABLT4ydNHw11rRneEL8a41X4s6xqre2cAEbn"
]
}
],
"authentication": [
{
"publicKey": "BxFbJ5DNSbPfwt5vgMSkyo#1",
"type": "Ed25519SignatureAuthentication2018"
}
],
"id": "BxFbJ5DNSbPfwt5vgMSkyo"
},
"verkey": "6yEZAbG7q99B4vBBqGCF5S1FpsjjvmmoeD4pobyycV28",
"theirLabel": "topcoder-test",
"state": "requested",
"role": "invitee",
"invitation": {
"@type": "https://didcomm.org/connections/1.0/invitation",
"label": "topcoder-test",
"imageUrl": "https://trinsicapiassets.azureedge.net/files/2cc3c3ea-2360-41eb-9d09-7420056b031e_fa0a620a-3d23-46f5-9f29-fd229310aa4f.png",
"serviceEndpoint": "https://api.portal.streetcred.id/agent/NDmHfN1X7TRJX6hDPjzxzALhDMjRqeKL",
"routingKeys": [
"2t2eDKUnDSEzBVFJz9AiekSvnkcRosKhhNvQevZk5mXs"
],
"recipientKeys": [
"A7LMcZM7R188ef1NLEXSuDuwvg6A1XFG4PXkW687hngn"
],
"@id": "67edc687-66c9-4cf3-b3f5-4505f6413fa9"
},
"imageUrl": "https://trinsicapiassets.azureedge.net/files/2cc3c3ea-2360-41eb-9d09-7420056b031e_fa0a620a-3d23-46f5-9f29-fd229310aa4f.png",
"multiUseInvitation": false,
"mediatorId": "0b85e592-f37c-4873-8512-6e58f68f39f6"
}
}
Hi,
We created a mobile app using the aries-framework-javascript, and when we scan an invitation qrcode in iPhone, we got the following error. (The same works fine in Android).
It says
Invalid bytes for \"PublicKey\"\n
. Can you help check what's wrong? Thanks!