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

Error when creating a cheqd did #1471

Open
aurora8 opened this issue Feb 2, 2025 · 0 comments
Open

Error when creating a cheqd did #1471

aurora8 opened this issue Feb 2, 2025 · 0 comments

Comments

@aurora8
Copy link

aurora8 commented Feb 2, 2025

cheqd did registrar on uniregistrar causing an error

could be caused by patch
https://github.com/decentralized-identity/universal-registrar/blob/ca6895b7df0749a1857bb4d8b3660d7bb9683ec0/uni-registrar-core/src/main/patches/SigningRequest.java.patch

--- src/main/java/uniregistrar/openapi/model/SigningRequest.java	2024-04-09 18:30:31.424600307 +0200
+++ src/main/java/uniregistrar/openapi/model/SigningRequest.java.changed	2024-04-09 18:31:14.092762096 +0200
@@ -47,7 +47,7 @@
   DidDocument.JSON_PROPERTY_PURPOSE
 })
 @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.4.0")
-public class SigningRequest extends HashMap<String, Object> {
+public class SigningRequest {
   public static final String JSON_PROPERTY_PAYLOAD = "payload";
   private Object payload = null;

the following request was used:

{
  "features": {},
  "options": {
    "key_type": "ed25519",
    "method_specific_id_algo": "uuid",
    "network": "testnet",
    "seed": "3030efd4244d4d26ad85afd6267b3f76"
  }
}

Error 500 in SigningRequest

500: Error registering DID CREATE problem for class CreateRequest {. class RegistrarRequest {. jobId: null. options: class RequestOptions {. uniregistrar.openapi.model.RequestOptions@70864688. clientSecretMode: null. storeSecrets: null. 
returnSecrets: null. requestVerificationMethod: null. additionalProperties: {network=testnet}. }. secret: null. }. didDocument: class DidDocument {. uniregistrar.openapi.model.DidDocument@2f71ef67. id: did:cheqd:testnet:1c0efe6e-576f-42aa-979f-8cae065db1e5. controller: [did:cheqd:testnet:1c0efe6e-576f-42aa-979f-8cae065db1e5]. verificationMethod: [{id=did:cheqd:testnet:1c0efe6e-576f-42aa-979f-8cae065db1e5#key-1, type=Ed25519VerificationKey2020, 
controller=did:cheqd:testnet:1c0efe6e-576f-42aa-979f-8cae065db1e5, publicKeyMultibase=z6Mkf8p83GoorbQiduT8duVdxWnqVvdHxvRn4SmLfkvgpNpT}]. service: []. additionalProperties: 
{authentication=[did:cheqd:testnet:1c0efe6e-576f-42aa-979f-8cae065db1e5#key-1]}. }. }: Cannot deserialize value of type 
`java.util.LinkedHashMap<java.lang.String,uniregistrar.openapi.model.SigningRequest>` from Array value (token 
`JsonToken.START_ARRAY`). at [Source: UNKNOWN; byte offset: #UNKNOWN] (through reference chain: 
uniregistrar.openapi.model.CreateState["didState"]->uniregistrar.openapi.model.DidStateAction["signingRequest"]).
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