Status code 500 after changes in Signer v1.0.5 when exporting "testexport"
Summary:
After changes in Signer v1.0.5 the export of "testexport" now returns 500 instead of 200 OK.
Not sure where the error comes from, might be from exported policy or some of the policies mentioned in the export.
testexport document in the MongoDB/infohub/exports
{
"_id": {"$oid": "62bd9c0b0cd9be429c4d057f"},
"contexts": ["https://www.w3.org/2018/credentials/examples/v1"],
"exportName": "testexport",
"policies": {
"example/examplePolicy/1.0": {
"message": "example"
},
"example/ProofRequestResponse/1.0": {
"hello": "world"
}
}
}
Request:
curl --request GET 'https://gaiax.vereign.com/tsa/infohub/v1/export/testexport'
Actual Response:
HTTP/1.1 500 Internal Server Error
date: Wed, 03 Aug 2022 15:27:23 GMT
content-type: application/json
content-length: 69
strict-transport-security: max-age=15724800; includeSubDomains
{
"id": "0Q1hk5qNaJXZOCB6",
"kind": 0,
"message": "error creating export"
}
Expected:
HTTP/1.1 200 OK
Log from the Signer service:
{"level":"error","ts":"2022-08-03T15:52:28Z","caller":"signer/service.go:225","msg":"error validating credential","operation":"presentationProof","error":"JSON-LD doc has different structure after compaction"}