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

Parse error in UPDATE request #2

Open
QSchlegel opened this issue Mar 13, 2024 · 0 comments
Open

Parse error in UPDATE request #2

QSchlegel opened this issue Mar 13, 2024 · 0 comments

Comments

@QSchlegel
Copy link

Hello Danube dev team,

while testing the ethr-driver I was able to create a simple DID, however when I was trying to update the DID I got a strange error message:

"Cannot parse UPDATE request (object): Cannot construct instance of `java.util.ArrayList` (although at least one Creator exists): no String-argument constructor/factory method to deserialize from String value ('addToDidDocument')
 at [Source: UNKNOWN; byte offset: #UNKNOWN] (through reference chain: uniregistrar.request.UpdateRequest["didDocumentOperation"])"

I used the following simple example in a local uni-registrar instance:

{
           "did": "did:ethr:goerli:0x02c19057a8f4a850b834204ae7f0ff299d03299464ee5fe8d757c15a56213813e8",
           "options": {
             "clientSecretMode": true
           },
           "secret": { },
           "didDocumentOperation": "addToDidDocument",
           "didDocument": {
             "service": [{
               "id": "did:ethr:goerli:0x02c19057a8f4a850b834204ae7f0ff299d03299464ee5fe8d757c15a56213813e8#service-1",
               "type": "DIDCommMessaging",
               "serviceEndpoint": "http://localhost:8080/messaging"
             }]
           }
         }

When looking at the code I did not quiet understand why didDocumentOperation is handled like an Array.

for (const i in didDocumentOperations) {

Best Regards
QS

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