0xPolygonID / issuer-node

Privado ID Self-Hosted Issuer Node
Apache License 2.0
86 stars 83 forks source link

Getting `Expected array, received string` when trying to view the schemas in the issuer UI #578

Closed sumit03guha closed 9 months ago

sumit03guha commented 11 months ago

Expected behaviour

Actual behaviour

Steps to reproduce the problem

System information

Issuer node version: v2.3.6 OS & Version: MacOS 14.2 M1 Browser & Version: Chrome/Firefox/Safari/Edge

[2023-12-14 02:43:49 postgres-1           | 
2023-12-14 02:43:49 postgres-1           | PostgreSQL Database directory appears to contain a database; Skipping initialization
2023-12-14 02:43:49 postgres-1           | 
2023-12-14 02:43:49 postgres-1           | 2023-12-13 21:13:49.117 UTC [1] LOG:  starting PostgreSQL 14.10 on aarch64-unknown-linux-musl, compiled by gcc (Alpine 13.2.1_git20231014) 13.2.1 20231014, 64-bit
2023-12-14 02:43:49 postgres-1           | 2023-12-13 21:13:49.117 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
2023-12-14 02:43:49 postgres-1           | 2023-12-13 21:13:49.117 UTC [1] LOG:  listening on IPv6 address "::", port 5432
2023-12-14 02:43:48 redis-1              | 1:C 13 Dec 2023 21:13:48.907 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
2023-12-14 02:43:48 redis-1              | 1:C 13 Dec 2023 21:13:48.907 # Redis version=6.2.14, bits=64, commit=00000000, modified=0, pid=1, just started
2023-12-14 02:43:49 postgres-1           | 2023-12-13 21:13:49.123 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2023-12-14 02:43:49 postgres-1           | 2023-12-13 21:13:49.131 UTC [22] LOG:  database system was shut down at 2023-12-13 21:13:30 UTC
2023-12-14 02:43:49 postgres-1           | 2023-12-13 21:13:49.145 UTC [1] LOG:  database system is ready to accept connections
2023-12-14 02:43:48 redis-1              | 1:C 13 Dec 2023 21:13:48.907 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
2023-12-14 02:43:48 redis-1              | 1:M 13 Dec 2023 21:13:48.907 * monotonic clock: POSIX clock_gettime
2023-12-14 02:43:48 redis-1              | 1:M 13 Dec 2023 21:13:48.912 * Running mode=standalone, port=6379.
2023-12-14 02:43:48 redis-1              | 1:M 13 Dec 2023 21:13:48.912 # Server initialized
2023-12-14 02:43:48 redis-1              | 1:M 13 Dec 2023 21:13:48.912 # WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. Being disabled, it can can also cause failures without low memory condition, see https://github.com/jemalloc/jemalloc/issues/1328. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
2023-12-14 02:43:48 redis-1              | 1:M 13 Dec 2023 21:13:48.916 * Loading RDB produced by version 6.2.14
2023-12-14 02:43:48 redis-1              | 1:M 13 Dec 2023 21:13:48.916 * RDB age 18 seconds
2023-12-14 02:43:48 redis-1              | 1:M 13 Dec 2023 21:13:48.916 * RDB memory usage when created 0.85 Mb
2023-12-14 02:43:48 redis-1              | 1:M 13 Dec 2023 21:13:48.916 # Done loading RDB, keys loaded: 0, keys expired: 0.
2023-12-14 02:43:48 redis-1              | 1:M 13 Dec 2023 21:13:48.916 * DB loaded from disk: 0.000 seconds
2023-12-14 02:43:48 redis-1              | 1:M 13 Dec 2023 21:13:48.916 * Ready to accept connections
2023-12-14 02:43:49 vault-1              | VAULT CONFIGURATION SCRIPT
2023-12-14 02:43:49 vault-1              | (./infrastructure/local/./vault/scripts/init.sh):
2023-12-14 02:43:49 vault-1              | ===================================
2023-12-14 02:43:49 vault-1              | ==> Vault server configuration:
2023-12-14 02:43:49 vault-1              | 
2023-12-14 02:43:49 vault-1              |              Api Address: http://0.0.0.0:8200
2023-12-14 02:43:49 vault-1              |                      Cgo: disabled
2023-12-14 02:43:49 vault-1              |          Cluster Address: https://0.0.0.0:8201
2023-12-14 02:43:49 vault-1              |    Environment Variables: GODEBUG, HOME, HOSTNAME, PATH, PWD, SHLVL, VAULT_ADDR, VAULT_ADDRESS, VAULT_API_ADDR
2023-12-14 02:43:49 vault-1              |               Go Version: go1.20.3
2023-12-14 02:43:49 vault-1              |               Listener 1: tcp (addr: "0.0.0.0:8200", cluster address: "0.0.0.0:8201", max_request_duration: "1m30s", max_request_size: "33554432", tls: "disabled")
2023-12-14 02:43:49 vault-1              |                Log Level: 
2023-12-14 02:43:49 vault-1              |                    Mlock: supported: true, enabled: true
2023-12-14 02:43:49 vault-1              |            Recovery Mode: false
2023-12-14 02:43:49 vault-1              |                  Storage: file
2023-12-14 02:43:49 vault-1              |                  Version: Vault v1.13.2, built 2023-04-25T13:02:50Z
2023-12-14 02:43:49 vault-1              |              Version Sha: b9b773f1628260423e6cc9745531fd903cae853f
2023-12-14 02:43:49 vault-1              | 
2023-12-14 02:43:49 vault-1              | ==> Vault server started! Log data will stream in below:
2023-12-14 02:43:49 vault-1              | 
2023-12-14 02:43:49 vault-1              | 2023-12-13T21:13:49.626Z [INFO]  proxy environment: http_proxy="" https_proxy="" no_proxy=""
2023-12-14 02:43:49 vault-1              | 2023-12-13T21:13:49.726Z [INFO]  core: Initializing version history cache for core
2023-12-14 02:43:49 ui-1                 | 
2023-12-14 02:43:49 ui-1                 | > issuer-node-ui@1.0.0 build
2023-12-14 02:43:49 ui-1                 | > vite build
2023-12-14 02:43:49 ui-1                 | 
2023-12-14 02:43:50 ui-1                 | vite v4.5.0 building for production...
2023-12-14 02:43:50 ui-1                 | transforming...
2023-12-14 02:43:52 notifications-1      | time=2023-12-13T21:13:52.975Z level=INFO msg="Checking vault token" token=hvs.dLHo6TJzh3j32sjhiit7cqMN
2023-12-14 02:43:52 notifications-1      | 2023/12/13 21:13:52 INFO starting issuer node... revision=""
2023-12-14 02:43:52 notifications-1      | 2023/12/13 21:13:52 INFO missing toml config file. Fallback to env vars err="Config File \"config\" Not Found in \"[/service /home/runner/work/sh-id-platform/sh-id-platform]\""
2023-12-14 02:43:52 pending_publisher-1  | 2023/12/13 21:13:52 INFO starting issuer node... revision=""
2023-12-14 02:43:52 pending_publisher-1  | 2023/12/13 21:13:52 INFO missing toml config file. Fallback to env vars err="Config File \"config\" Not Found in \"[/service /home/runner/work/sh-id-platform/sh-id-platform]\""
2023-12-14 02:43:52 pending_publisher-1  | time=2023-12-13T21:13:52.987Z level=INFO msg="Checking vault token" token=hvs.dLHo6TJzh3j32sjhiit7cqMN
2023-12-14 02:43:53 notifications-1      | time=2023-12-13T21:13:53.008Z level=INFO msg="Vault userpass auth not enabled"
2023-12-14 02:43:53 notifications-1      | time=2023-12-13T21:13:53.009Z level=INFO msg="Checking issuer did value" did=did:polygonid:polygon:mumbai:2qJ3bbyRGyHEt3fs5p7SxTXPcH1mVcEYFT1CfxDFnH
2023-12-14 02:43:53 notifications-1      | time=2023-12-13T21:13:53.009Z level=INFO msg="Issuer did loaded from configuration file" did=did:polygonid:polygon:mumbai:2qJ3bbyRGyHEt3fs5p7SxTXPcH1mVcEYFT1CfxDFnH
2023-12-14 02:43:53 pending_publisher-1  | time=2023-12-13T21:13:53.011Z level=INFO msg="Vault userpass auth not enabled"
2023-12-14 02:43:53 pending_publisher-1  | time=2023-12-13T21:13:53.013Z level=INFO msg="Checking issuer did value" did=did:polygonid:polygon:mumbai:2qJ3bbyRGyHEt3fs5p7SxTXPcH1mVcEYFT1CfxDFnH
2023-12-14 02:43:53 pending_publisher-1  | time=2023-12-13T21:13:53.013Z level=INFO msg="Issuer did loaded from configuration file" did=did:polygonid:polygon:mumbai:2qJ3bbyRGyHEt3fs5p7SxTXPcH1mVcEYFT1CfxDFnH
2023-12-14 02:43:53 api-ui-1             | 2023/12/13 21:13:53 INFO missing toml config file. Fallback to env vars err="Config File \"config\" Not Found in \"[/service /home/runner/work/sh-id-platform/sh-id-platform]\""
2023-12-14 02:43:53 api-ui-1             | time=2023-12-13T21:13:53.512Z level=DEBUG msg=database url="postgres://polygonid:polygonid@postgres:5432/platformid?sslmode=disable"
2023-12-14 02:43:53 api-ui-1             | 2023/12/13 21:13:53 goose: no migrations to run. current version: 202311211436040
2023-12-14 02:43:53 api-ui-1             | time=2023-12-13T21:13:53.546Z level=INFO msg="migration done!"
2023-12-14 02:43:53 api-1                | 2023/12/13 21:13:53 INFO missing toml config file. Fallback to env vars err="Config File \"config\" Not Found in \"[/service /home/runner/work/sh-id-platform/sh-id-platform]\""
2023-12-14 02:43:53 api-1                | time=2023-12-13T21:13:53.606Z level=DEBUG msg=database url="postgres://polygonid:polygonid@postgres:5432/platformid?sslmode=disable"
2023-12-14 02:43:53 api-1                | 2023/12/13 21:13:53 goose: no migrations to run. current version: 202311211436040
2023-12-14 02:43:53 api-1                | time=2023-12-13T21:13:53.616Z level=INFO msg="migration done!"
2023-12-14 02:43:53 api-ui-1             | 2023/12/13 21:13:53 INFO starting issuer node... revision=""
2023-12-14 02:43:53 api-ui-1             | 2023/12/13 21:13:53 INFO missing toml config file. Fallback to env vars err="Config File \"config\" Not Found in \"[/service /home/runner/work/sh-id-platform/sh-id-platform]\""
2023-12-14 02:43:53 api-ui-1             | time=2023-12-13T21:13:53.675Z level=INFO msg="Checking vault token" token=hvs.dLHo6TJzh3j32sjhiit7cqMN
2023-12-14 02:43:53 api-ui-1             | time=2023-12-13T21:13:53.691Z level=INFO msg="Vault userpass auth not enabled"
2023-12-14 02:43:53 api-ui-1             | time=2023-12-13T21:13:53.691Z level=INFO msg="Checking issuer did value" did=did:polygonid:polygon:mumbai:2qJ3bbyRGyHEt3fs5p7SxTXPcH1mVcEYFT1CfxDFnH
2023-12-14 02:43:53 api-ui-1             | time=2023-12-13T21:13:53.691Z level=INFO msg="Issuer did loaded from configuration file" did=did:polygonid:polygon:mumbai:2qJ3bbyRGyHEt3fs5p7SxTXPcH1mVcEYFT1CfxDFnH
2023-12-14 02:43:53 api-1                | 2023/12/13 21:13:53 INFO starting issuer node... revision=""
2023-12-14 02:43:53 api-1                | 2023/12/13 21:13:53 INFO missing toml config file. Fallback to env vars err="Config File \"config\" Not Found in \"[/service /home/runner/work/sh-id-platform/sh-id-platform]\""
2023-12-14 02:43:53 api-1                | time=2023-12-13T21:13:53.815Z level=INFO msg="Vault userpass auth not enabled"
2023-12-14 02:43:53 api-1                | time=2023-12-13T21:13:53.818Z level=INFO msg="native prover enabled" enabled=true
2023-12-14 02:43:54 api-1                | time=2023-12-13T21:13:54.135Z level=INFO msg="server started" port=3001
2023-12-14 02:43:54 vault-1              | 
2023-12-14 02:43:54 vault-1              | ===== Unseal the Vault =====
2023-12-14 02:43:54 vault-1              | Key                Value
2023-12-14 02:43:54 vault-1              | ---                -----
2023-12-14 02:43:54 vault-1              | Seal Type          shamir
2023-12-14 02:43:54 vault-1              | Initialized        true
2023-12-14 02:43:54 vault-1              | Sealed             true
2023-12-14 02:43:54 vault-1              | Total Shares       5
2023-12-14 02:43:54 vault-1              | Threshold          3
2023-12-14 02:43:54 vault-1              | Unseal Progress    1/3
2023-12-14 02:43:54 vault-1              | Unseal Nonce       6ffe006a-b482-0ccf-0d0b-7eff132b1695
2023-12-14 02:43:54 vault-1              | Version            1.13.2
2023-12-14 02:43:54 vault-1              | Build Date         2023-04-25T13:02:50Z
2023-12-14 02:43:54 vault-1              | Storage Type       file
2023-12-14 02:43:54 vault-1              | HA Enabled         false
2023-12-14 02:43:54 vault-1              | Key                Value
2023-12-14 02:43:54 vault-1              | ---                -----
2023-12-14 02:43:54 vault-1              | Seal Type          shamir
2023-12-14 02:43:54 vault-1              | Initialized        true
2023-12-14 02:43:54 vault-1              | Sealed             true
2023-12-14 02:43:54 vault-1              | Total Shares       5
2023-12-14 02:43:54 vault-1              | Threshold          3
2023-12-14 02:43:54 vault-1              | Unseal Progress    2/3
2023-12-14 02:43:54 vault-1              | Unseal Nonce       6ffe006a-b482-0ccf-0d0b-7eff132b1695
2023-12-14 02:43:54 vault-1              | Version            1.13.2
2023-12-14 02:43:54 vault-1              | Build Date         2023-04-25T13:02:50Z
2023-12-14 02:43:54 vault-1              | Storage Type       file
2023-12-14 02:43:54 vault-1              | HA Enabled         false
2023-12-14 02:43:55 vault-1              | 2023-12-13T21:13:55.107Z [INFO]  core.cluster-listener.tcp: starting listener: listener_address=0.0.0.0:8201
2023-12-14 02:43:55 vault-1              | 2023-12-13T21:13:55.107Z [INFO]  core.cluster-listener: serving cluster requests: cluster_listen_address=[::]:8201
2023-12-14 02:43:55 vault-1              | 2023-12-13T21:13:55.109Z [INFO]  core: post-unseal setup starting
2023-12-14 02:43:55 vault-1              | 2023-12-13T21:13:55.116Z [INFO]  core: loaded wrapping token key
2023-12-14 02:43:55 vault-1              | 2023-12-13T21:13:55.117Z [INFO]  core: upgrading plugin information: plugins=[]
2023-12-14 02:43:55 vault-1              | 2023-12-13T21:13:55.117Z [INFO]  core: successfully setup plugin catalog: plugin-directory=/vault/plugins
2023-12-14 02:43:55 vault-1              | 2023-12-13T21:13:55.123Z [INFO]  core: successfully mounted: type=system version="v1.13.2+builtin.vault" path=sys/ namespace="ID: root. Path: "
2023-12-14 02:43:55 vault-1              | 2023-12-13T21:13:55.124Z [INFO]  core: successfully mounted: type=identity version="v1.13.2+builtin.vault" path=identity/ namespace="ID: root. Path: "
2023-12-14 02:43:55 vault-1              | 2023-12-13T21:13:55.128Z [INFO]  core: successfully mounted: type=kv version="v0.14.2+builtin" path=secret/ namespace="ID: root. Path: "
2023-12-14 02:43:55 vault-1              | 2023-12-13T21:13:55.224Z [INFO]  secrets.vault-plugin-secrets-iden3.vault-plugin-secrets-iden3_917ae0f9.vault-plugin-secrets-iden3: configuring client automatic mTLS
2023-12-14 02:43:55 vault-1              | 2023-12-13T21:13:55.488Z [INFO]  secrets.vault-plugin-secrets-iden3.vault-plugin-secrets-iden3_917ae0f9.vault-plugin-secrets-iden3.vault-plugin-secrets-iden3: configuring server automatic mTLS: timestamp=2023-12-13T21:13:55.488Z
2023-12-14 02:43:55 vault-1              | 2023-12-13T21:13:55.550Z [INFO]  core: successfully mounted: type=vault-plugin-secrets-iden3 version="" path=iden3/ namespace="ID: root. Path: "
2023-12-14 02:43:55 vault-1              | 2023-12-13T21:13:55.552Z [INFO]  core: successfully mounted: type=kv version="v0.14.2+builtin" path=kv/ namespace="ID: root. Path: "
2023-12-14 02:43:55 vault-1              | 2023-12-13T21:13:55.554Z [INFO]  core: successfully mounted: type=cubbyhole version="v1.13.2+builtin.vault" path=cubbyhole/ namespace="ID: root. Path: "
2023-12-14 02:43:55 vault-1              | 2023-12-13T21:13:55.563Z [INFO]  core: successfully mounted: type=token version="v1.13.2+builtin.vault" path=token/ namespace="ID: root. Path: "
2023-12-14 02:43:55 vault-1              | 2023-12-13T21:13:55.566Z [INFO]  core: successfully mounted: type=userpass version="v1.13.2+builtin.vault" path=userpass/ namespace="ID: root. Path: "
2023-12-14 02:43:55 vault-1              | 2023-12-13T21:13:55.574Z [INFO]  rollback: starting rollback manager
2023-12-14 02:43:55 vault-1              | 2023-12-13T21:13:55.593Z [INFO]  core: restoring leases
2023-12-14 02:43:55 vault-1              | 2023-12-13T21:13:55.600Z [INFO]  expiration: lease restore complete
2023-12-14 02:43:55 vault-1              | 2023-12-13T21:13:55.613Z [INFO]  identity: entities restored
2023-12-14 02:43:55 vault-1              | 2023-12-13T21:13:55.614Z [INFO]  identity: groups restored
2023-12-14 02:43:55 vault-1              | 2023-12-13T21:13:55.619Z [INFO]  core: usage gauge collection is disabled
2023-12-14 02:43:55 vault-1              | 2023-12-13T21:13:55.625Z [INFO]  core: post-unseal setup complete
2023-12-14 02:43:55 vault-1              | 2023-12-13T21:13:55.626Z [INFO]  core: vault is unsealed
2023-12-14 02:43:55 vault-1              | Key             Value
2023-12-14 02:43:55 vault-1              | ---             -----
2023-12-14 02:43:55 vault-1              | Seal Type       shamir
2023-12-14 02:43:55 vault-1              | Initialized     true
2023-12-14 02:43:55 vault-1              | Sealed          false
2023-12-14 02:43:55 vault-1              | Total Shares    5
2023-12-14 02:43:55 vault-1              | Threshold       3
2023-12-14 02:43:55 vault-1              | Version         1.13.2
2023-12-14 02:43:55 vault-1              | Build Date      2023-04-25T13:02:50Z
2023-12-14 02:43:55 vault-1              | Storage Type    file
2023-12-14 02:43:55 vault-1              | Cluster Name    vault-cluster-fd348287
2023-12-14 02:43:55 vault-1              | Cluster ID      c4c10e9c-8c45-0eca-a89b-f9e2da16bf29
2023-12-14 02:43:55 vault-1              | HA Enabled      false
2023-12-14 02:43:55 vault-1              | Success! You are now authenticated. The token information displayed below
2023-12-14 02:43:55 vault-1              | is already stored in the token helper. You do NOT need to run "vault login"
2023-12-14 02:43:55 vault-1              | again. Future Vault requests will automatically use this token.
2023-12-14 02:43:55 vault-1              | 
2023-12-14 02:43:55 vault-1              | Key                  Value
2023-12-14 02:43:55 vault-1              | ---                  -----
2023-12-14 02:43:55 vault-1              | token                hvs.dLHo6TJzh3j32sjhiit7cqMN
2023-12-14 02:43:55 vault-1              | token_accessor       HtX8cOZJPDL6t8cQNGT411Mr
2023-12-14 02:43:55 vault-1              | token_duration       ∞
2023-12-14 02:43:55 vault-1              | token_renewable      false
2023-12-14 02:43:55 vault-1              | token_policies       ["root"]
2023-12-14 02:43:55 vault-1              | identity_policies    []
2023-12-14 02:43:55 vault-1              | policies             ["root"]
2023-12-14 02:43:55 vault-1              | 2023-12-13T21:13:55.906Z [ERROR] secrets.system.system_96f2c19b: error occurred during enable mount: path=secret/ error="path is already in use at secret/"
2023-12-14 02:43:55 vault-1              | Error enabling: Error making API request.
2023-12-14 02:43:55 vault-1              | 
2023-12-14 02:43:55 vault-1              | URL: POST http://127.0.0.1:8200/v1/sys/mounts/secret
2023-12-14 02:43:55 vault-1              | Code: 400. Errors:
2023-12-14 02:43:55 vault-1              | 
2023-12-14 02:43:55 vault-1              | * path is already in use at secret/
2023-12-14 02:43:55 vault-1              | 
2023-12-14 02:43:55 vault-1              | ===== ENABLED KV secrets =====
2023-12-14 02:43:57 vault-1              | Success! Registered plugin: vault-plugin-secrets-iden3
2023-12-14 02:43:57 vault-1              | 2023-12-13T21:13:57.196Z [ERROR] secrets.system.system_96f2c19b: error occurred during enable mount: path=iden3/ error="path is already in use at iden3/"
2023-12-14 02:43:57 vault-1              | Error enabling: Error making API request.
2023-12-14 02:43:57 vault-1              | 
2023-12-14 02:43:57 vault-1              | URL: POST http://127.0.0.1:8200/v1/sys/mounts/iden3
2023-12-14 02:43:57 vault-1              | Code: 400. Errors:
2023-12-14 02:43:57 vault-1              | 
2023-12-14 02:43:57 vault-1              | * path is already in use at iden3/
2023-12-14 02:43:57 api-ui-1             | time=2023-12-13T21:13:57.314Z level=INFO msg="native prover enabled" enabled=true
2023-12-14 02:43:57 vault-1              | 2023-12-13T21:13:57.327Z [ERROR] secrets.system.system_96f2c19b: error occurred during enable mount: path=kv/ error="path is already in use at kv/"
2023-12-14 02:43:57 vault-1              | Error enabling: Error making API request.
2023-12-14 02:43:57 vault-1              | 
2023-12-14 02:43:57 vault-1              | URL: POST http://127.0.0.1:8200/v1/sys/mounts/kv
2023-12-14 02:43:57 vault-1              | Code: 400. Errors:
2023-12-14 02:43:57 vault-1              | 
2023-12-14 02:43:57 vault-1              | * path is already in use at kv/
2023-12-14 02:43:57 pending_publisher-1  | time=2023-12-13T21:13:57.443Z level=INFO msg="native prover enabled" enabled=true
2023-12-14 02:43:57 vault-1              | ===== ENABLED IDEN3 =====
2023-12-14 02:43:57 vault-1              | ===== CREATE POLICIES =====
2023-12-14 02:43:57 api-ui-1             | time=2023-12-13T21:13:57.679Z level=INFO msg="UI API server started" port=3002
2023-12-14 02:43:57 vault-1              | Success! Uploaded policy: issuernode
2023-12-14 02:43:57 vault-1              | ===== CREATE USERS =====
2023-12-14 02:43:57 vault-1              | 2023-12-13T21:13:57.788Z [ERROR] secrets.system.system_96f2c19b: error occurred during enable credential: path=userpass/ error="path is already in use at userpass/"
2023-12-14 02:43:57 vault-1              | Error enabling userpass auth: Error making API request.
2023-12-14 02:43:57 vault-1              | 
2023-12-14 02:43:57 vault-1              | URL: POST http://127.0.0.1:8200/v1/sys/auth/userpass
2023-12-14 02:43:57 vault-1              | Code: 400. Errors:
2023-12-14 02:43:57 vault-1              | 
2023-12-14 02:43:57 vault-1              | * path is already in use at userpass/
2023-12-14 02:43:57 vault-1              | Key Value --- ----- policies [admins issuernode] token_bound_cidrs [] token_explicit_max_ttl 0s token_max_ttl 0s token_no_default_policy false token_num_uses 0 token_period 0s token_policies [admins issuernode] token_ttl 0s token_type default
2023-12-14 02:43:57 vault-1              | issuernode user found, skipping creation...
2023-12-14 02:43:57 vault-1              | token:hvs.dLHo6TJzh3j32sjhiit7cqMN
2023-12-14 02:44:06 api-1                | time=2023-12-13T21:14:06.805Z level=INFO msg="http req" req-id=a5138be91643/o4rZpfsRxR-000001 method=GET uri=/ status=200 bytes=715 ua="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" d=10.533458ms
2023-12-14 02:44:07 api-1                | time=2023-12-13T21:14:07.433Z level=INFO msg="http req" req-id=a5138be91643/o4rZpfsRxR-000002 method=GET uri=/static/docs/api/api.yaml status=200 bytes=23420 ua="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" d=2.87425ms
2023-12-14 02:44:07 api-1                | time=2023-12-13T21:14:07.624Z level=INFO msg="http req" req-id=a5138be91643/o4rZpfsRxR-000003 method=GET uri=/favicon.ico status=200 bytes=1749 ua="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" d=978.458µs
2023-12-14 02:44:08 api-1                | time=2023-12-13T21:14:08.214Z level=INFO msg="http req" req-id=a5138be91643/o4rZpfsRxR-000004 method=GET uri=/favicon.ico status=200 bytes=1749 ua="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" d=1.301666ms
2023-12-14 02:44:09 api-ui-1             | time=2023-12-13T21:14:09.081Z level=INFO msg="http req" req-id=50fa0b84ad2a/awhDNPTonb-000001 method=GET uri=/ status=200 bytes=900 ua="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" d=11.621167ms
2023-12-14 02:44:09 api-ui-1             | time=2023-12-13T21:14:09.601Z level=INFO msg="http req" req-id=50fa0b84ad2a/awhDNPTonb-000002 method=GET uri=/static/docs/api_ui/api.yaml status=200 bytes=44549 ua="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" d=2.249459ms
2023-12-14 02:44:09 api-ui-1             | time=2023-12-13T21:14:09.651Z level=INFO msg="http req" req-id=50fa0b84ad2a/awhDNPTonb-000003 method=GET uri=/favicon.ico status=200 bytes=1749 ua="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" d=168µs
2023-12-14 02:44:15 ui-1                 | ✓ 4370 modules transformed.
2023-12-14 02:44:17 ui-1                 | rendering chunks...
2023-12-14 02:44:17 ui-1                 | computing gzip size...
2023-12-14 02:44:17 ui-1                 | dist/index.html                     0.51 kB │ gzip:   0.34 kB
2023-12-14 02:44:17 ui-1                 | dist/assets/index-f4179320.css      4.98 kB │ gzip:   1.65 kB
2023-12-14 02:44:17 ui-1                 | dist/assets/index-0b2fedb9.js   2,523.19 kB │ gzip: 798.15 kB
2023-12-14 02:44:17 ui-1                 | ✓ built in 27.09s
2023-12-14 02:44:17 ui-1                 | 
2023-12-14 02:44:17 ui-1                 | (!) Some chunks are larger than 500 kBs after minification. Consider:
2023-12-14 02:44:17 ui-1                 | - Using dynamic import() to code-split the application
2023-12-14 02:44:17 ui-1                 | - Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks
2023-12-14 02:44:17 ui-1                 | - Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.
2023-12-14 02:44:26 ui-1                 | user-ui
2023-12-14 02:44:26 ui-1                 | password-ui
2023-12-14 02:44:26 ui-1                 | Adding password for user user-ui
2023-12-14 02:44:26 ui-1                 | user-ui:$apr1$bsPDSqJr$aYtm7kcKtYzOFuFHMx5sd/
2023-12-14 02:44:26 ui-1                 | 2023/12/13 21:14:26 [notice] 65#65: using the "epoll" event method
2023-12-14 02:44:26 ui-1                 | 2023/12/13 21:14:26 [notice] 65#65: nginx/1.25.3
2023-12-14 02:44:26 ui-1                 | 2023/12/13 21:14:26 [notice] 65#65: built by gcc 12.2.1 20220924 (Alpine 12.2.1_git20220924-r10) 
2023-12-14 02:44:26 ui-1                 | 2023/12/13 21:14:26 [notice] 65#65: OS: Linux 6.5.11-linuxkit
2023-12-14 02:44:26 ui-1                 | 2023/12/13 21:14:26 [notice] 65#65: getrlimit(RLIMIT_NOFILE): 1048576:1048576
2023-12-14 02:44:26 ui-1                 | 2023/12/13 21:14:26 [notice] 65#65: start worker processes
2023-12-14 02:44:26 ui-1                 | 2023/12/13 21:14:26 [notice] 65#65: start worker process 66
2023-12-14 02:44:26 ui-1                 | 2023/12/13 21:14:26 [notice] 65#65: start worker process 67
2023-12-14 02:44:26 ui-1                 | 2023/12/13 21:14:26 [notice] 65#65: start worker process 68
2023-12-14 02:44:26 ui-1                 | 2023/12/13 21:14:26 [notice] 65#65: start worker process 69
2023-12-14 02:44:26 ui-1                 | 2023/12/13 21:14:26 [notice] 65#65: start worker process 70
2023-12-14 02:44:26 ui-1                 | 2023/12/13 21:14:26 [notice] 65#65: start worker process 71
2023-12-14 02:44:34 ui-1                 | 192.168.65.1 - user-ui [13/Dec/2023:21:14:34 +0000] "GET /schemas/import-schema HTTP/1.1" 200 514 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
2023-12-14 02:44:34 ui-1                 | 192.168.65.1 - user-ui [13/Dec/2023:21:14:34 +0000] "GET /assets/index-0b2fedb9.js HTTP/1.1" 200 2552293 "http://localhost:8088/schemas/import-schema" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
2023-12-14 02:44:34 ui-1                 | 192.168.65.1 - user-ui [13/Dec/2023:21:14:34 +0000] "GET /assets/index-f4179320.css HTTP/1.1" 200 4981 "http://localhost:8088/schemas/import-schema" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
2023-12-14 02:44:34 ui-1                 | 192.168.65.1 - user-ui [13/Dec/2023:21:14:34 +0000] "GET /favicon.png HTTP/1.1" 200 2980 "http://localhost:8088/schemas/import-schema" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
2023-12-14 02:44:34 ui-1                 | 192.168.65.1 - user-ui [13/Dec/2023:21:14:34 +0000] "GET /images/image-preview.png HTTP/1.1" 200 130096 "http://localhost:8088/schemas/import-schema" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
2023-12-14 02:44:34 ui-1                 | 192.168.65.1 - user-ui [13/Dec/2023:21:14:34 +0000] "GET /fonts/ModernEra-Regular.woff2 HTTP/1.1" 200 28632 "http://localhost:8088/assets/index-f4179320.css" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
2023-12-14 02:44:35 ui-1                 | 192.168.65.1 - user-ui [13/Dec/2023:21:14:35 +0000] "GET /favicon.png HTTP/1.1" 304 0 "http://localhost:8088/schemas/import-schema" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
2023-12-14 02:44:35 api-ui-1             | time=2023-12-13T21:14:35.164Z level=INFO msg="http req" req-id=50fa0b84ad2a/awhDNPTonb-000004 method=OPTIONS uri=/v1/state/status status=200 bytes=0 ua="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" d=6.372042ms
2023-12-14 02:44:41 ui-1                 | 192.168.65.1 - user-ui [13/Dec/2023:21:14:41 +0000] "GET /images/illustration-explainer.svg HTTP/1.1" 200 14478 "http://localhost:8088/schemas" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
2023-12-14 02:44:41 ui-1                 | 192.168.65.1 - user-ui [13/Dec/2023:21:14:41 +0000] "GET /favicon.png HTTP/1.1" 304 0 "http://localhost:8088/schemas" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
2023-12-14 02:44:41 api-ui-1             | time=2023-12-13T21:14:41.171Z level=INFO msg="http req" req-id=50fa0b84ad2a/awhDNPTonb-000005 method=OPTIONS uri=/v1/schemas status=200 bytes=0 ua="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" d=777.708µs
2023-12-14 02:44:41 ui-1                 | 192.168.65.1 - user-ui [13/Dec/2023:21:14:41 +0000] "GET /schemas HTTP/1.1" 200 514 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
2023-12-14 02:44:41 ui-1                 | 192.168.65.1 - user-ui [13/Dec/2023:21:14:41 +0000] "GET /assets/index-f4179320.css HTTP/1.1" 304 0 "http://localhost:8088/schemas" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
2023-12-14 02:44:41 ui-1                 | 192.168.65.1 - user-ui [13/Dec/2023:21:14:41 +0000] "GET /assets/index-0b2fedb9.js HTTP/1.1" 304 0 "http://localhost:8088/schemas" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
2023-12-14 02:44:42 ui-1                 | 192.168.65.1 - user-ui [13/Dec/2023:21:14:42 +0000] "GET /images/image-preview.png HTTP/1.1" 304 0 "http://localhost:8088/schemas" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
2023-12-14 02:44:42 ui-1                 | 192.168.65.1 - user-ui [13/Dec/2023:21:14:42 +0000] "GET /fonts/ModernEra-Regular.woff2 HTTP/1.1" 304 0 "http://localhost:8088/assets/index-f4179320.css" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
2023-12-14 02:44:42 api-ui-1             | time=2023-12-13T21:14:42.297Z level=INFO msg="http req" req-id=50fa0b84ad2a/awhDNPTonb-000006 method=OPTIONS uri=/v1/state/status status=200 bytes=0 ua="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" d=131.042µs
2023-12-14 02:44:49 ui-1                 | 192.168.65.1 - user-ui [13/Dec/2023:21:14:49 +0000] "GET /schemas HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
2023-12-14 02:44:49 ui-1                 | 192.168.65.1 - user-ui [13/Dec/2023:21:14:49 +0000] "GET /assets/index-0b2fedb9.js HTTP/1.1" 304 0 "http://localhost:8088/schemas" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
2023-12-14 02:44:49 ui-1                 | 192.168.65.1 - user-ui [13/Dec/2023:21:14:49 +0000] "GET /assets/index-f4179320.css HTTP/1.1" 304 0 "http://localhost:8088/schemas" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
2023-12-14 02:44:49 ui-1                 | 192.168.65.1 - user-ui [13/Dec/2023:21:14:49 +0000] "GET /favicon.png HTTP/1.1" 304 0 "http://localhost:8088/schemas" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
2023-12-14 02:44:50 ui-1                 | 192.168.65.1 - user-ui [13/Dec/2023:21:14:50 +0000] "GET /images/image-preview.png HTTP/1.1" 304 0 "http://localhost:8088/schemas" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
2023-12-14 02:44:50 ui-1                 | 192.168.65.1 - user-ui [13/Dec/2023:21:14:50 +0000] "GET /images/illustration-explainer.svg HTTP/1.1" 304 0 "http://localhost:8088/schemas" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
2023-12-14 02:44:50 ui-1                 | 192.168.65.1 - user-ui [13/Dec/2023:21:14:50 +0000] "GET /fonts/ModernEra-Regular.woff2 HTTP/1.1" 304 0 "http://localhost:8088/assets/index-f4179320.css" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
2023-12-14 02:44:50 api-ui-1             | time=2023-12-13T21:14:50.208Z level=INFO msg="http req" req-id=50fa0b84ad2a/awhDNPTonb-000008 method=OPTIONS uri=/v1/schemas status=200 bytes=0 ua="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" d=492.875µs
2023-12-14 02:44:50 api-ui-1             | time=2023-12-13T21:14:50.210Z level=INFO msg="http req" req-id=50fa0b84ad2a/awhDNPTonb-000007 method=OPTIONS uri=/v1/state/status status=200 bytes=0 ua="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" d=2.861834ms
2023-12-14 02:44:57 pending_publisher-1  | time=2023-12-13T21:14:57.464Z level=INFO msg="checker status job started" job-id=aafcce54-99fc-11ee-a4af-0242ac160003
2023-12-14 02:44:57 pending_publisher-1  | time=2023-12-13T21:14:57.483Z level=INFO msg="checker status job finished" job-id=aafcce54-99fc-11ee-a4af-0242ac160003
2023-12-14 02:45:13 ui-1                 | 192.168.65.1 - user-ui [13/Dec/2023:21:15:13 +0000] "GET /schemas HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
2023-12-14 02:45:13 ui-1                 | 192.168.65.1 - user-ui [13/Dec/2023:21:15:13 +0000] "GET /assets/index-0b2fedb9.js HTTP/1.1" 304 0 "http://localhost:8088/schemas" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
2023-12-14 02:45:13 ui-1                 | 192.168.65.1 - user-ui [13/Dec/2023:21:15:13 +0000] "GET /assets/index-f4179320.css HTTP/1.1" 304 0 "http://localhost:8088/schemas" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
2023-12-14 02:45:13 ui-1                 | 192.168.65.1 - user-ui [13/Dec/2023:21:15:13 +0000] "GET /favicon.png HTTP/1.1" 304 0 "http://localhost:8088/schemas" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
2023-12-14 02:45:13 ui-1                 | 192.168.65.1 - user-ui [13/Dec/2023:21:15:13 +0000] "GET /images/image-preview.png HTTP/1.1" 304 0 "http://localhost:8088/schemas" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
2023-12-14 02:45:13 ui-1                 | 192.168.65.1 - user-ui [13/Dec/2023:21:15:13 +0000] "GET /images/illustration-explainer.svg HTTP/1.1" 304 0 "http://localhost:8088/schemas" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
2023-12-14 02:45:13 ui-1                 | 192.168.65.1 - user-ui [13/Dec/2023:21:15:13 +0000] "GET /fonts/ModernEra-Regular.woff2 HTTP/1.1" 304 0 "http://localhost:8088/assets/index-f4179320.css" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
2023-12-14 02:45:13 api-ui-1             | time=2023-12-13T21:15:13.731Z level=INFO msg="http req" req-id=50fa0b84ad2a/awhDNPTonb-000009 method=OPTIONS uri=/v1/state/status status=200 bytes=0 ua="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" d=284.292µs
2023-12-14 02:45:13 api-ui-1             | time=2023-12-13T21:15:13.732Z level=INFO msg="http req" req-id=50fa0b84ad2a/awhDNPTonb-000010 method=OPTIONS uri=/v1/schemas status=200 bytes=0 ua="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" d=38.666µs
]
Groovytent commented 11 months ago

Can you share with us the error that you are receiving when you perform the getSchemas call? here you have an image with the content that you should provide to check. image

sumit03guha commented 11 months ago

@Groovytent I am getting the following response, which is from ngrok. It is the public url that is pointing towards my localhost port of 3002.

Screenshot 2023-12-14 at 15 41 33

Groovytent commented 11 months ago

As we observe error is related to the ngrok, Please paste the address of your ngrok into a browser and hit visit site and see if that fixes it. If not, you will have to investigate other workaround alternatives.

amonsosanz commented 11 months ago

As mentioned in the readme, you can also give local tunnel a try if you keep having issues.

sumit03guha commented 11 months ago

@Groovytent upon opening the ngrok link and hitting visit site, the Issuer UI API opened up. I tried out the get schemas API and received the following response.

image

amonsosanz commented 11 months ago

The endpoint /v1/schemas requires authentication. Does it work from the UI?

sumit03guha commented 11 months ago

@amonsosanz yes, you are correct. I have set the authentication username and password.

It is working when I am hitting the /v1/schemas API using the localhost:3002 it is giving a 200 response, but when I am hitting the same API using the ngrok url, after setting the authentication, it is giving Response Status: Failed to fetch (CORS or Network Issue).

amonsosanz commented 11 months ago

Yep this happens to some users with ngrok. This is why we recommend local tunnel.

Take a look to this video where I setup local tunnel.

https://github.com/0xPolygonID/issuer-node/issues/520#issuecomment-1826269876

github-actions[bot] commented 10 months ago

This issue is stale because it has been open 20 days with no activity. Remove stale label, add the enhancement label or comment to avoid closing it in 10 days.

github-actions[bot] commented 9 months ago

This issue was closed because it has been stalled for 10 days with no activity.