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

Errors when opening wallet in the browser #1721

Open
olegb94 opened this issue Nov 14, 2023 · 0 comments
Open

Errors when opening wallet in the browser #1721

olegb94 opened this issue Nov 14, 2023 · 0 comments

Comments

@olegb94
Copy link

olegb94 commented Nov 14, 2023

Problem description

When following the deployment instructions (https://github.com/trustbloc/sandbox/blob/main/README.md#build-and-deployment) I was able to successfully deploy the components on Linux using the following command:

make setup-deploy

I'm using the latest commit in the main branch.

When I open the Wallet in the browser (https://wallet.local.trustbloc.dev/) I get infinite loading screen. There are two errors in the browser console.

Screenshots

Screenshot 2023-11-14 at 2 54 19 PM Screenshot 2023-11-14 at 4 32 01 PM

Error 1

{
  "message": "Request failed with status code 404",
  "name": "AxiosError",
  "code": "ERR_BAD_REQUEST",
  "config": {
    "transitional": {
      "silentJSONParsing": true,
      "forcedJSONParsing": true,
      "clarifyTimeoutError": false
    },
    "transformRequest": [
      null
    ],
    "transformResponse": [
      null
    ],
    "timeout": 0,
    "xsrfCookieName": "XSRF-TOKEN",
    "xsrfHeaderName": "X-XSRF-TOKEN",
    "maxContentLength": -1,
    "maxBodyLength": -1,
    "env": {
      "FormData": null
    },
    "headers": {
      "Accept": "application/json, text/plain, */*"
    },
    "method": "get",
    "url": "https://wallet.local.trustbloc.dev/config/credential-output-descriptors.json"
  },
  "request": {},
  "response": {
    "data": "<html>\r\n<head><title>404 Not Found</title></head>\r\n<body>\r\n<center><h1>404 Not Found</h1></center>\r\n<hr><center>nginx/1.23.1</center>\r\n</body>\r\n</html>\r\n",
    "status": 404,
    "statusText": "",
    "headers": {
      "content-length": "153",
      "content-type": "text/html",
      "date": "Tue, 14 Nov 2023 19:54:40 GMT",
      "x-firefox-spdy": "h2"
    },
    "config": {
      "transitional": {
        "silentJSONParsing": true,
        "forcedJSONParsing": true,
        "clarifyTimeoutError": false
      },
      "transformRequest": [
        null
      ],
      "transformResponse": [
        null
      ],
      "timeout": 0,
      "xsrfCookieName": "XSRF-TOKEN",
      "xsrfHeaderName": "X-XSRF-TOKEN",
      "maxContentLength": -1,
      "maxBodyLength": -1,
      "env": {
        "FormData": null
      },
      "headers": {
        "Accept": "application/json, text/plain, */*"
      },
      "method": "get",
      "url": "https://wallet.local.trustbloc.dev/config/credential-output-descriptors.json"
    },
    "request": {}
  }
}

Error 2

{
  "message": "Request failed with status code 401",
  "name": "AxiosError",
  "code": "ERR_BAD_REQUEST",
  "config": {
    "transitional": {
      "silentJSONParsing": true,
      "forcedJSONParsing": true,
      "clarifyTimeoutError": false
    },
    "transformRequest": [
      null
    ],
    "transformResponse": [
      null
    ],
    "timeout": 0,
    "xsrfCookieName": "XSRF-TOKEN",
    "xsrfHeaderName": "X-XSRF-TOKEN",
    "maxContentLength": -1,
    "maxBodyLength": -1,
    "env": {
      "FormData": null
    },
    "headers": {
      "Accept": "application/json, text/plain, */*",
      "Content-Type": "application/json",
      "content-digest": "sha-256=:soyUshlcjtJZ8LQVqu4/ObCykgpFN2EUmfoESVaReiE=:",
      "Signature-Input": "sig1=(\"@method\" \"@target-uri\" \"content-digest\");created=1699991687;keyid=\"key1\"",
      "Signature": "sig1=:3LLH84Y4w45iP+5qJX686KDTvYp5bWf1oibnuwR3R3w7eOK2Us6cKZzvHMjHAsaWsaUjrVYZP6MIDWDDw4ye3g==:"
    },
    "method": "post",
    "url": "https://hub-auth.local.trustbloc.dev/gnap/auth",
    "data": "{\"access_token\":[{\"access\":[\"userdata-access\",\"kms-access\"]}],\"client\":{\"key\":{\"jwk\":{\"alg\":\"ES256\",\"crv\":\"P-256\",\"ext\":true,\"key_ops\":[\"verify\"],\"kty\":\"EC\",\"x\":\"WxLzkpCwU0vV1gn76rYK-PXOCTzIJJ4kojiTyBfdywg\",\"y\":\"oB-XJmJcnXALJ1RvWL-QLGVoCUEahusHaevD-lDsAp8\",\"kid\":\"key1\"},\"proof\":\"httpsig\"}},\"interact\":{\"start\":[\"redirect\"],\"finish\":{\"method\":\"redirect\",\"uri\":\"https://wallet.local.trustbloc.dev/gnap/redirect\",\"nonce\":\"9yt94k\"}}}"
  },
  "request": {},
  "response": {
    "data": {
      "error": "request_denied"
    },
    "status": 401,
    "statusText": "",
    "headers": {
      "content-length": "27",
      "content-type": "text/plain; charset=utf-8"
    },
    "config": {
      "transitional": {
        "silentJSONParsing": true,
        "forcedJSONParsing": true,
        "clarifyTimeoutError": false
      },
      "transformRequest": [
        null
      ],
      "transformResponse": [
        null
      ],
      "timeout": 0,
      "xsrfCookieName": "XSRF-TOKEN",
      "xsrfHeaderName": "X-XSRF-TOKEN",
      "maxContentLength": -1,
      "maxBodyLength": -1,
      "env": {
        "FormData": null
      },
      "headers": {
        "Accept": "application/json, text/plain, */*",
        "Content-Type": "application/json",
        "content-digest": "sha-256=:soyUshlcjtJZ8LQVqu4/ObCykgpFN2EUmfoESVaReiE=:",
        "Signature-Input": "sig1=(\"@method\" \"@target-uri\" \"content-digest\");created=1699991687;keyid=\"key1\"",
        "Signature": "sig1=:3LLH84Y4w45iP+5qJX686KDTvYp5bWf1oibnuwR3R3w7eOK2Us6cKZzvHMjHAsaWsaUjrVYZP6MIDWDDw4ye3g==:"
      },
      "method": "post",
      "url": "https://hub-auth.local.trustbloc.dev/gnap/auth",
      "data": "{\"access_token\":[{\"access\":[\"userdata-access\",\"kms-access\"]}],\"client\":{\"key\":{\"jwk\":{\"alg\":\"ES256\",\"crv\":\"P-256\",\"ext\":true,\"key_ops\":[\"verify\"],\"kty\":\"EC\",\"x\":\"WxLzkpCwU0vV1gn76rYK-PXOCTzIJJ4kojiTyBfdywg\",\"y\":\"oB-XJmJcnXALJ1RvWL-QLGVoCUEahusHaevD-lDsAp8\",\"kid\":\"key1\"},\"proof\":\"httpsig\"}},\"interact\":{\"start\":[\"redirect\"],\"finish\":{\"method\":\"redirect\",\"uri\":\"https://wallet.local.trustbloc.dev/gnap/redirect\",\"nonce\":\"9yt94k\"}}}"
    },
    "request": {}
  }
}
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