Actions intermittent errors #10490
Unanswered
rainyuanhx
asked this question in
General
Replies: 1 comment
-
This error is directly from the JSON library that is trying to decode the response body. Overall it indicates that the API response is not a valid json string. We haven't seen this issue reported elsewhere (and this code haven't been touched since some time), so I would recommend to debug the API endpoint for any issues. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Version Information
Server Version: v2.40.0
CLI Version (for CLI related issue):
Environment
Hi My Friend
I encountered an error while using Hasura(v2.40.0) and I'm not sure where the problem is. Can you provide help?
The story goes like this.
I have a simple backend REST API interface that provides a GET method. To call this API program, I defined a new Action on HASURA with the following Query Type:
Then, I called the GraphQL API on Postman
But sometimes I get the right results,
![Catch887A(07-12-16-28-03)](https://private-user-images.githubusercontent.com/29558670/348184058-805ad613-a3d6-41a9-b92c-baf4b6ae9a10.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mjc0MDM1ODUsIm5iZiI6MTcyNzQwMzI4NSwicGF0aCI6Ii8yOTU1ODY3MC8zNDgxODQwNTgtODA1YWQ2MTMtYTNkNi00MWE5LWI5MmMtYmFmNGI2YWU5YTEwLmpwZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MjclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTI3VDAyMTQ0NVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWMzZGU3ZjJkYjllMWYyMjc0MmNkMDczOGNiNjA5MzE3NjZmZjNkOWE2ZWExZjY4MzFmZDRmNDY5M2UwNDYxYzgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.0YBhcOcENP2a8TaROcaVPsC3PI4WuYcBtOVDbuTeDrE)
and sometimes I get error prompts
![Catch(07-12-16-28-03)](https://private-user-images.githubusercontent.com/29558670/348184125-5f1bef72-117e-4613-8e4c-348553b70558.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mjc0MDM1ODUsIm5iZiI6MTcyNzQwMzI4NSwicGF0aCI6Ii8yOTU1ODY3MC8zNDgxODQxMjUtNWYxYmVmNzItMTE3ZS00NjEzLThlNGMtMzQ4NTUzYjcwNTU4LmpwZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MjclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTI3VDAyMTQ0NVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTgzMTAzZDAyOGZhNmQwYWVmNDM0MzNiYWRkYWQwOTYzMGQwOTFlMzRiYWQ0YWExMjA5MjlhODQzODk5ZDY2YmImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.Rkz9oogOAqNhE8ocpaaC9yssKio1iMFvPGtgjxe7c9g)
If you could provide an answer, I would greatly appreciate it.
Beta Was this translation helpful? Give feedback.
All reactions