-
Notifications
You must be signed in to change notification settings - Fork 105
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
503 Service Unavailable for /cgw/v1/owners/:safeAddress/safes #143
Comments
Any updates on this? Thanks |
did u manage to solve it? having the same issue |
I am also encountering this issue. I am not sure why but I get 503 on Restarting |
Could you check that the transaction service url is right in the config-service? The CGW is taking that url from the config service.
It is because the chain info is cached and it contains the url of the transaction service. |
@moisses89 I think the URL is correct for me, could help troubleshoot the problem I stated above? or we just wait for new release? My transaction service URL in the config-service
|
The issue is not related with a Safe cannot be loaded if not the service would return 404 error (Safe doesn't exist).
This configuration is wrong, cannot be localhost, because in such case the CGW container will try to get access to a tx-service hosted in the CGW container, where is not. The 503 from the CGW is basically that the CGW is not able to request information to the tx-service. I think the solution for you would be configure correctly the URL for the tx-service in the config-service and get the logs from the CGW container to debug the error if still persist. |
@moisses89 , localhost is just a test because previously I have error too with below config But now I tried
Seems like now is 500 instead of 503 |
Could you check the response from transaction service to the following request? |
@moisses89 , seems indexing but not the erc_20, to be honest the running_locally.md did not state anything that we have to configure for transaction service. last 100 lines of txs-worker-indexer logs:
|
My case might be different than @lance-web3 I've checked and the transaction service is working fine but the cgw still throws a 503 error with this link |
Can you ensure that the CGW have access to the transacción service? What is the tx-service URL that you have configures in the config-service? |
I restarted cgw-web and cgw-redis but the 503 error is still there. and the logs from
Let me know if you want to check anything else. |
I think there are new fields mandatory in the config service, could you check if they are all filled? |
Thanks for your reply. After checking the settings for chains in the config service, I noticed that there's an invalid record for The 503 issue was there before I added the Versions that I'm using: I'll mark this issue as closed for now. Thank you so much for your time @moisses89 |
@moisses89 mine 503 issue solved too after i pull the new cgw image and follow some of the steps above but i have new issue when creating safe which i will reference in here: #147 |
I followed the instrucitons here with only one change: instead of using localhost, I decided to use my own domain (safegw.meter.io). I've replaced localhost with safegw.meter.io in all the env files under
container_env_files
of course.The UI is working and I created a safe wallet on it, the transaction went through and safe created successfully. But UI failed to load the safe, when I open the console on chrome, it shows that this url is 503:
I've checked my ChainInfo and confirm it has the correct EIP-3770 shortname, and confirm the proxy factory and master copy address are in the transaction service db, as mentioned in issue #141 . I tried to read the code of client-gateway and looks like the request on /cgw/v1/owners/:safeAddress/safes depends on transaction-service, so I tested
http://safegw.meter.io:8000/txs/api/v1/owners/0x14b27D8DC12E59a9904DaC6d17D33B8de2E80e66/safes and it works.
I've attached the log of safe-infrastructure-cgw-web-1, but other than
Service Unavailable
it doesn't have anything helpful.Any suggestions would be much appreciated!
The text was updated successfully, but these errors were encountered: