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

504 Gateway Time-out #881

Open
1 of 6 tasks
cryptosystems6300 opened this issue Jul 24, 2024 · 3 comments
Open
1 of 6 tasks

504 Gateway Time-out #881

cryptosystems6300 opened this issue Jul 24, 2024 · 3 comments
Labels

Comments

@cryptosystems6300
Copy link

Summary

504 Gateway Time-out on Graphql requests on Cardano Graphql 8.1.0

Steps to reproduce the bug

curl --location 'https://explorer.cardano.org/graphql/' --header 'Content-Type: application/json' --data '{"query":"query {\r\n  paymentAddresses(\r\n    addresses: [\r\n      \"addr1q8034em76n4qyhfrexv8j349gpcr5904cc4fm9vf7le59wxlrtnha482qfwj8jvc09r22srs8g2lt332nk2cnalng2uqnnqh77\"\r\n    ]\r\n  ) {\r\n    summary {\r\n      assetBalances {\r\n        asset {\r\n          assetId\r\n        }\r\n        quantity\r\n      }\r\n    }\r\n  }\r\n}\r\n","variables":{}}'

Actual Result

<html>
<head><title>504 Gateway Time-out</title></head>
<body>
<center><h1>504 Gateway Time-out</h1></center>
<hr><center>nginx</center>
</body>
</html>

Expected Result

Actual balance object

Environment

mainnet, Cardano Graphql 8.1.0

Platform

  • Linux (Ubuntu)
  • Linux (Other)
  • macOS
  • Windows

Platform version

No response

Runtime

  • Node.js
  • Docker

Runtime version

No response

@Kammerlo
Copy link
Member

Kammerlo commented Jul 30, 2024

Sorry for the late reploy. Is it working with other address? It could be that addresses with a lot utxos could lead to timeouts when graphQL is running on smaller servers.
Just trying to find some clues what could be the issue.

@cryptosystems6300
Copy link
Author

cryptosystems6300 commented Aug 21, 2024

Hi @Kammerlo

I dont think this is related necessarily to the number of UTXO's. E.g. this address only has 9 txs and times out:

curl --location 'https://explorer.cardano.org/graphql/' --header 'Content-Type: application/json' --data '{"query":"query {\r\n  paymentAddresses(\r\n    addresses: [\r\n      \"addr1qygcsk5l4xh3y3m8j8akv93yyun06wfadrr3de02vj80xyg33pdfl2d0zfrk0y0mvctzgfexl5un66x8zmj75eyw7vgsfpl75e\"\r\n    ]\r\n  ) {\r\n    summary {\r\n      assetBalances {\r\n        asset {\r\n          assetId\r\n        }\r\n        quantity\r\n      }\r\n    }\r\n  }\r\n}\r\n","variables":{}}'

or this one with 19 txs:

curl --location 'https://explorer.cardano.org/graphql/' --header 'Content-Type: application/json' --data '{"query":"query {\r\n  paymentAddresses(\r\n    addresses: [\r\n      \"addr1q8034em76n4qyhfrexv8j349gpcr5904cc4fm9vf7le59wxlrtnha482qfwj8jvc09r22srs8g2lt332nk2cnalng2uqnnqh77\"\r\n    ]\r\n  ) {\r\n    summary {\r\n      assetBalances {\r\n        asset {\r\n          assetId\r\n        }\r\n        quantity\r\n      }\r\n    }\r\n  }\r\n}\r\n","variables":{}}'

@linconvidal
Copy link
Member

@cryptosystems6300 This issue doesn’t appear to be related to GraphQL, but rather a server problem. Please note that the GraphQL instance behind that explorer is not intended for third-party use and will be decommissioned in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants