Open Klar opened 1 month ago
I cannot reproduce the exact error.
I have similar error for some time after running the start.sh, because the backend isn't ready yet.
Can you ensure in docker that the wallet-backend is running? Or eventually run start.sh and then wait for some time (arround 1 minute), then in start.sh output you should be able to see logs with prefix wallet-backend-1
and then check if the problem still persists?
➜ ~ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
08577db944be bsvb/spv-wallet:latest "./entrypoint.sh" 5 hours ago Up 5 hours 0.0.0.0:3003->3003/tcp, :::3003->3003/tcp spv-wallet-spv-wallet-1
e5ff915f9401 bsvb/spv-wallet-web-backend:latest "./entrypoint.sh" 5 hours ago Up 5 hours 0.0.0.0:8180->8180/tcp, :::8180->8180/tcp spv-wallet-wallet-backend-1
0717fcc83721 bsvb/spv-wallet-admin:latest "/docker-entrypoint.…" 5 hours ago Up 5 hours 80/tcp, 0.0.0.0:3000->3000/tcp, :::3000->3000/tcp spv-wallet-spv-wallet-admin-1
6feff59b6323 postgres "docker-entrypoint.s…" 2 days ago Up 5 hours (healthy) 0.0.0.0:5432->5432/tcp, :::5432->5432/tcp spv-wallet-wallet-postgresql-1
d827d8e57091 redis "docker-entrypoint.s…" 2 days ago Up 5 hours (healthy) 0.0.0.0:6379->6379/tcp, :::6379->6379/tcp spv-wallet-wallet-redis-1
65303b5500d0 bsvb/block-headers-service:latest "./entrypoint.sh --p…" 2 days ago Up 5 hours 0.0.0.0:8080->8080/tcp, :::8080->8080/tcp spv-wallet-block-headers-service-1
37212d659c8f bsvb/spv-wallet-web-frontend:latest "/docker-entrypoint.…" 2 days ago Up 5 hours 0.0.0.0:3002->80/tcp, [::]:3002->80/tcp spv-wallet-wallet-frontend-1
➜ ~ docker logs --follow spv-wallet-wallet-backend-1
2024-10-21 08:43:42.889 DBG host=wallet-postgresql port=5432 user=postgres password=postgres dbname=postgres sslmode=disable application=spv-wallet-web-backend ecs.version=1.6.0 service=database
2024-10-21 08:43:42.929 INF Successfully connected! application=spv-wallet-web-backend ecs.version=1.6.0 service=database
2024-10-21 08:43:43.212 DBG Websocket server started application=spv-wallet-web-backend ecs.version=1.6.0 service=websocket
[GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
- using env: export GIN_MODE=release
- using code: gin.SetMode(gin.ReleaseMode)
[GIN-debug] GET /swagger/*any --> github.com/swaggo/gin-swagger.CustomWrapHandler.func1 (5 handlers)
[GIN-debug] GET /status --> github.com/bitcoin-sv/spv-wallet-web-backend/transports/http/endpoints/status.getStatus (5 handlers)
[GIN-debug] GET /api/v1/config --> github.com/bitcoin-sv/spv-wallet-web-backend/transports/http/endpoints/api/config.(*handler).getPublicConfig-fm (5 handlers)
[GIN-debug] POST /api/v1/user --> github.com/bitcoin-sv/spv-wallet-web-backend/transports/http/endpoints/api/users.(*handler).register-fm (5 handlers)
[GIN-debug] GET /api/v1/user --> github.com/bitcoin-sv/spv-wallet-web-backend/transports/http/endpoints/api/users.(*handler).getUser-fm (7 handlers)
[GIN-debug] POST /api/v1/sign-in --> github.com/bitcoin-sv/spv-wallet-web-backend/transports/http/endpoints/api/access.(*handler).signIn-fm (5 handlers)
[GIN-debug] POST /api/v1/sign-out --> github.com/bitcoin-sv/spv-wallet-web-backend/transports/http/endpoints/api/access.(*handler).signOut-fm (7 handlers)
[GIN-debug] POST /api/v1/transaction --> github.com/bitcoin-sv/spv-wallet-web-backend/transports/http/endpoints/api/transactions.(*handler).createTransaction-fm (7 handlers)
[GIN-debug] POST /api/v1/transaction/search --> github.com/bitcoin-sv/spv-wallet-web-backend/transports/http/endpoints/api/transactions.(*handler).getTransactions-fm (7 handlers)
[GIN-debug] GET /api/v1/transaction/:id --> github.com/bitcoin-sv/spv-wallet-web-backend/transports/http/endpoints/api/transactions.(*handler).getTransaction-fm (7 handlers)
[GIN-debug] PUT /api/v1/contact/:paymail --> github.com/bitcoin-sv/spv-wallet-web-backend/transports/http/endpoints/api/contacts.(*handler).upsertContact-fm (7 handlers)
[GIN-debug] PATCH /api/v1/contact/accepted/:paymail --> github.com/bitcoin-sv/spv-wallet-web-backend/transports/http/endpoints/api/contacts.(*handler).acceptContact-fm (7 handlers)
[GIN-debug] PATCH /api/v1/contact/rejected/:paymail --> github.com/bitcoin-sv/spv-wallet-web-backend/transports/http/endpoints/api/contacts.(*handler).rejectContact-fm (7 handlers)
[GIN-debug] PATCH /api/v1/contact/confirmed --> github.com/bitcoin-sv/spv-wallet-web-backend/transports/http/endpoints/api/contacts.(*handler).confirmContact-fm (7 handlers)
[GIN-debug] POST /api/v1/contact/search --> github.com/bitcoin-sv/spv-wallet-web-backend/transports/http/endpoints/api/contacts.(*handler).getContacts-fm (7 handlers)
[GIN-debug] POST /api/v1/contact/totp --> github.com/bitcoin-sv/spv-wallet-web-backend/transports/http/endpoints/api/contacts.(*handler).generateTotp-fm (7 handlers)
[GIN-debug] GET /api/websocket --> github.com/bitcoin-sv/spv-wallet-web-backend/transports/websocket.(*server).SetupEntrypoint.WrapH.func4 (9 handlers)
2024-10-21 08:43:43.237 INF Starting server on address :8180 application=spv-wallet-web-backend ecs.version=1.6.0 service=http-server
2024-10-21 13:17:25.948 DBG host=wallet-postgresql port=5432 user=postgres password=postgres dbname=postgres sslmode=disable application=spv-wallet-web-backend ecs.version=1.6.0 service=database
2024-10-21 13:17:25.957 INF Successfully connected! application=spv-wallet-web-backend ecs.version=1.6.0 service=database
2024-10-21 13:17:26.155 DBG Websocket server started application=spv-wallet-web-backend ecs.version=1.6.0 service=websocket
[GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
- using env: export GIN_MODE=release
- using code: gin.SetMode(gin.ReleaseMode)
[GIN-debug] GET /swagger/*any --> github.com/swaggo/gin-swagger.CustomWrapHandler.func1 (5 handlers)
[GIN-debug] GET /status --> github.com/bitcoin-sv/spv-wallet-web-backend/transports/http/endpoints/status.getStatus (5 handlers)
[GIN-debug] GET /api/v1/config --> github.com/bitcoin-sv/spv-wallet-web-backend/transports/http/endpoints/api/config.(*handler).getPublicConfig-fm (5 handlers)
[GIN-debug] POST /api/v1/user --> github.com/bitcoin-sv/spv-wallet-web-backend/transports/http/endpoints/api/users.(*handler).register-fm (5 handlers)
[GIN-debug] GET /api/v1/user --> github.com/bitcoin-sv/spv-wallet-web-backend/transports/http/endpoints/api/users.(*handler).getUser-fm (7 handlers)
[GIN-debug] POST /api/v1/sign-in --> github.com/bitcoin-sv/spv-wallet-web-backend/transports/http/endpoints/api/access.(*handler).signIn-fm (5 handlers)
[GIN-debug] POST /api/v1/sign-out --> github.com/bitcoin-sv/spv-wallet-web-backend/transports/http/endpoints/api/access.(*handler).signOut-fm (7 handlers)
[GIN-debug] POST /api/v1/transaction --> github.com/bitcoin-sv/spv-wallet-web-backend/transports/http/endpoints/api/transactions.(*handler).createTransaction-fm (7 handlers)
[GIN-debug] POST /api/v1/transaction/search --> github.com/bitcoin-sv/spv-wallet-web-backend/transports/http/endpoints/api/transactions.(*handler).getTransactions-fm (7 handlers)
[GIN-debug] GET /api/v1/transaction/:id --> github.com/bitcoin-sv/spv-wallet-web-backend/transports/http/endpoints/api/transactions.(*handler).getTransaction-fm (7 handlers)
[GIN-debug] PUT /api/v1/contact/:paymail --> github.com/bitcoin-sv/spv-wallet-web-backend/transports/http/endpoints/api/contacts.(*handler).upsertContact-fm (7 handlers)
[GIN-debug] PATCH /api/v1/contact/accepted/:paymail --> github.com/bitcoin-sv/spv-wallet-web-backend/transports/http/endpoints/api/contacts.(*handler).acceptContact-fm (7 handlers)
[GIN-debug] PATCH /api/v1/contact/rejected/:paymail --> github.com/bitcoin-sv/spv-wallet-web-backend/transports/http/endpoints/api/contacts.(*handler).rejectContact-fm (7 handlers)
[GIN-debug] PATCH /api/v1/contact/confirmed --> github.com/bitcoin-sv/spv-wallet-web-backend/transports/http/endpoints/api/contacts.(*handler).confirmContact-fm (7 handlers)
[GIN-debug] POST /api/v1/contact/search --> github.com/bitcoin-sv/spv-wallet-web-backend/transports/http/endpoints/api/contacts.(*handler).getContacts-fm (7 handlers)
[GIN-debug] POST /api/v1/contact/totp --> github.com/bitcoin-sv/spv-wallet-web-backend/transports/http/endpoints/api/contacts.(*handler).generateTotp-fm (7 handlers)
[GIN-debug] GET /api/websocket --> github.com/bitcoin-sv/spv-wallet-web-backend/transports/websocket.(*server).SetupEntrypoint.WrapH.func4 (9 handlers)
2024-10-21 13:17:26.169 INF Starting server on address :8180 application=spv-wallet-web-backend ecs.version=1.6.0 service=http-server
I did a docker restart spv-wallet-wallet-backend-1
, still same error.
Latest beta release:
No domain selected, able to login into SPV Wallet admin.
It seems the
SPV Wallet web-frontend
does not use the correct url for the api call?