GraphQL timeout

I have been using the same script for past few months but recent days i am getting timeout issue.

“errors”:[{“extensions”:{“errorClass”:“TIMEOUT”},“locations”:[{“column”:9,“line”:11}],“message”:“Resolution of this field timed out”,“path”:[“actor”,“account”,“nrql”,“staticChartUrl”]}]}%

Query :

curl https://api.newrelic.com/graphql
-H ‘Content-Type: application/json’
-H “API-Key: ${NR_API_KEY}”
–data-binary ‘{“query”:"{\n actor {\n user {\n name\n }\n account(id: ‘${NR_ACCT_ID}’) {\n nrql(query: ******* limit max SINCE \u0027’${FROM_DATE}’ 00:00:00\u0027 UNTIL \u0027’${TO_DATE}’ 23:59:59\u0027", timeout: 20000) {\n embeddedChartUrl\n nrql\n otherResult\n staticChartUrl\n totalResult\n results\n }\n }\n }\n}\n", “variables”:""}’

I tried to increase the timeout but nothing improved.

If i ran the query using UI, I also got a timeout on the first attempt. But if i retry 3-4 times, it works for non-prod.

For prod, i tried a different approach; first, i set the date range as 1 week, then 2 weeks, then 3 weeks and finally 30 days.

Not sure how to overcome this timeout issue. I saw an option asyn but not sure how to use it, when i try with curl its gives me error.

Hi @Karim_Mohammad_Shafi

Thanks for reaching out, I hope you are well.

I believe you currently have a case open with @GlenOFoghlu. Please note this is being worked on, please note all updates will be made the case.

For reference please see case 00063524.

Should you have any additional questions please do reach out.

If I am incorrect in understanding that you have a case already being worked on please do let me know.