question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Its hard to understand what is wrong with this error

See original GitHub issue

Im trying to make a ION did with this setup, but get a strange error which does not lead me to anything. See after code

    const key = await Bls12381G2KeyPair.generate();
    const jwk = key.toJsonWebKeyPair();
    const did = new ION.DID({
      content: {
        publicKeys: [
          {
            id: 'primary-issuing',
            type: key.type,
            publicKeyJwk: jwk.publicKeyJwk,
            purposes: [ 'assertionMethod' ]
          }
        ],
        services: [
          {
            id: 'did-comm-agent',
            type: 'DIDCommMessaging',
            serviceEndpoint: 'https://mymagicaldidcomurl/messaging',
            accept:[
              "didcomm/v2",
              "didcomm/aip2;env=rfc587"
            ],
          }
        ]
      }
    });

Unexpected 5xx response: {"requestId":"1cbecd445bc68f48a1d34a257946d24c","date":"Wed, 22 Sep 2021 14:37:29 GMT","message":"continuation_storage_uncaught_exception: Error: document_composer_service_has_missing_or_unknown_property"}

Im not finding any place this is referenced in the SDK or the tool itself. How can I debug this? I thought it was all up to speed.

Things work with this one, so just keen on understanding
let authnKeys = await ION.generateKeyPair();
let did = new ION.DID({
  content: {
    publicKeys: [
      {
        id: 'key-1',
        type: 'EcdsaSecp256k1VerificationKey2019',
        publicKeyJwk: authnKeys.publicJwk,
        purposes: [ 'authentication' ]
      }
    ],
    services: [
      {
        id: 'domain-1',
        type: 'LinkedDomains',
        serviceEndpoint: 'https://foo.example.com'
      }
    ]
  }
});

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
kdenhartogcommented, Sep 24, 2021

I think the reason we needed to switch to JsonWebKey2020 was because contexts for other types were missing the publicKeyJwk property and so the public key was being dropped from the did document when it was being loaded by a document loader to verify credentials with vc.js. I believe this was specific to the digital bazaar libraries we were using though and you may not encounter them if you use a different library or a different credential format.

1reaction
brianorwhatevercommented, Sep 22, 2021

From did core

Each service extension MAY include additional properties and MAY further restrict the properties associated with the extension.

That’s a heck of a lot of optionality 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why can't I understand things easily? People explain ...
The problem is that your brain is probably not processing the information you read or hear. This is where your brain is not...
Read more >
It's Hard To Understand - YouTube
Provided to YouTube by Universal Music GroupIt's Hard To Understand · ClassifiedGreatful℗ 2016 Half Life RecordsReleased on: ...
Read more >
'What Is Wrong With Me?' What to Do If You Feel This Way
In this case, it's perfectly normal to be thinking, “What is wrong with me?” And often, the answer lies in getting to the...
Read more >
How to fix the Alexa “having trouble understanding right ...
1. Restarting your Echo will, among other things, force it to attempt to reconnect to its saved Wi-Fi network. If your Wi-Fi is...
Read more >
Why It's So Hard to Admit You're Wrong
Our confirmation bias kicks in, causing us to seek out evidence to prove what we already believe.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found