cardano-graphql icon indicating copy to clipboard operation
cardano-graphql copied to clipboard

504 Gateway Time-out

Open cryptosystems6300 opened this issue 1 year ago • 3 comments

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

  • [X] Linux (Ubuntu)
  • [ ] Linux (Other)
  • [ ] macOS
  • [ ] Windows

Platform version

No response

Runtime

  • [ ] Node.js
  • [ ] Docker

Runtime version

No response

cryptosystems6300 avatar Jul 24 '24 08:07 cryptosystems6300

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.

Kammerlo avatar Jul 30 '24 06:07 Kammerlo

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":{}}'

cryptosystems6300 avatar Aug 21 '24 12:08 cryptosystems6300

@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.

linconvidal avatar Aug 21 '24 13:08 linconvidal

This issue is being closed due to inactivity and age. If you’re still experiencing this problem or think it’s still relevant, feel free to comment or reopen - we’re happy to take another look.

Thank you!

VladislavKudrin avatar Oct 20 '25 13:10 VladislavKudrin