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

Unexpected JSON token at offset 81: Encountered an unknown key 'schema_ids' at path: $.credential_preview #216

Open
kieutuan218 opened this issue Nov 20, 2024 · 0 comments

Comments

@kieutuan218
Copy link

kieutuan218 commented Nov 20, 2024

Is this a regression?

Yes

Description

I got this error when accept offer. This is error and message received from mediator
It's working when I accept offer in identus-edge-agent-sdk-ts

D/SDK (16023): credentials: []
D/SDK (16023): handleReceivedMessagesEvents: Unexpected JSON token at offset 81: Encountered an unknown key 'schema_ids' at path: $.credential_preview
D/SDK (16023): Use 'ignoreUnknownKeys = true' in 'Json {}' builder to ignore unknown keys.
D/SDK (16023): JSON input: .....ntial","credential_preview":{"schema_ids":["https://issuer.....
D/SDK (16023): message: Message(id=4c78a3f8-3e22-492c-917a-888d5540c1d0, piuri=https://didcomm.org/issue-credential/3.0/offer-credential, from=did:peer:2.Ez6LSsC8GBVMRnVFSPmfxHVKJhZ45qnyM6yoWm5t6XU351KwB.Vz6MkkEPSizy3aqPEob3cFyaDGNNV5Gt2Y7FHrhBErkFRAJpR.SeyJ0IjoiZG0iLCJzIjp7InVyaSI6Imh0dHBzOi8vaXNzdWVyLWFnZW50Y2xvdWQuaW5maW5lY3QtZGlkLmVrb2lvcy5uZXQvZGlkY29tbSIsInIiOltdLCJhIjpbImRpZGNvbW0vdjIiXX19, to=did:peer:2.Ez6LSe2QNDcwS3nuPJMHa1k8tLMzHX3FpHwWvKYyKZvdCXXJu.Vz6MkfAnGXFJjSyLn1AGEK9pFPcbhRrfgT9jzpQWakoiUPeNn.SeyJ0IjoiZG0iLCJzIjp7InVyaSI6ImRpZDpwZWVyOjIuRXo2TFNnaHdTRTQzN3duREUxcHQzWDZoVkRVUXpTanNIemlucFgzWEZ2TWpSQW03eS5WejZNa2hoMWU1Q0VZWXE2SkJVY1RaNkNwMnJhbkNXUnJ2N1lheDNMZTRONTlSNmRkLlNleUowSWpvaVpHMGlMQ0p6SWpwN0luVnlhU0k2SW1oMGRIQnpPaTh2YldWa2FXRjBiM0l1YVc1bWFXNWxZM1F0Wkdsa0xtVnJiMmx2Y3k1dVpYUXZJaXdpWVNJNld5SmthV1JqYjIxdEwzWXlJbDE5ZlEuU2V5SjBJam9pWkcwaUxDSnpJanA3SW5WeWFTSTZJbmR6T2k4dmJXVmthV0YwYjNJdWFXNW1hVzVsWTNRdFpHbGtMbVZyYjJsdmN5NXVaWFF2ZDNNaUxDSmhJanBiSW1ScFpHTnZiVzB2ZGpJaVhYMTkiLCJyIjpbXSwiYSI6W119fQ, fromPrior=null, body={"multiple_available":null,"goal_code":"Offer Credential","credential_preview":{"schema_ids":["https://issuer-agentcloud.infinect-did.ekoios.net/cloud-agent/schema-registry/schemas/d563c424-8b8d-3c1a-9200-9f9a7a2240f9"],"schema_id":"https://issuer-agentcloud.infinect-did.ekoios.net/cloud-agent/schema-registry/schemas/d563c424-8b8d-3c1a-9200-9f9a7a2240f9","type":"https://didcomm.org/issue-credential/3.0/credential-credential","body":{"attributes":[{"media_type":null,"name":"name","value":"aa"},{"media_type":null,"name":"dateOfIssuance","value":"2024-11-20T10:56:54.646Z"},{"media_type":null,"name":"emailAddress","value":"tuan.kieu@test.vn"},{"media_type":null,"name":"dateOfBirth","value":"2024-11-20 00:00:00.000"},{"media_type":null,"name":"issuerName","value":"test"},{"media_type":null,"name":"address","value":"bb"},{"media_type":null,"name":"uid","value":"VC0027"},{"media_type":null,"name":"skills","value":"songoku"},{"media_type":null,"name":"position","value":"xenbohung"}]}},"replacement_id":null,"comment":null}, extraHeaders={}, createdTime=1732100214, expiresTimePlus=1732186620, attachments=[AttachmentDescriptor(id=456aa9b9-793a-40eb-8efd-9054b12a2947, mediaType=null, data=AttachmentJsonData(data={"options":{"domain":"domain","challenge":"4902b36e-e501-4ec2-aefb-fd0c14e9fb1a"},"presentation_definition":{"purpose":null,"format":{"jwt_vc":null,"jwt":{"alg":["ES256K"]},"jwt_vp":null,"ldp":null},"name":null,"input_descriptors":[],"id":"6c3862ec-7250-473d-9d3d-0ac25ea79171"}}), filename=null, format=prism/jwt, lastModTime=null, byteCount=null, description=null)], thid=389e071e-9dfe-43bc-9074-9f0bdc93b9dc, pthid=null, ack=[], direction=RECEIVED)

Please provide the exception or error you saw

No response

Please provide the environment you discovered this bug in

No response

Anything else?

No response

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

1 participant