Closed koaqiu closed 5 months ago
Hi, thanks for raising this. It seems like there's a bug in the code where we're assuming there will be a response when there is an error, but in this case there isn't one - the real error is masked by this bug, but I'm guessing the request is being aborted somehow.
We'll look into the bug and fix it, but in the meantime I'd suggest checking if the query itself works if you run it in the GraphiQL app from the CLI.
I too have recently started to see this. The GraphQL query is working fine 99% of the time, but every now and then, we'll see this error in our logs.
I believe this will be fixed by https://github.com/Shopify/shopify-api-js/pull/1330. I'll close this issue but please let us know if it still fails after the next release!
I was also getting this error but updated to the latest version today. The nature of the error seem to have changed:
Instead getting this message: [shopify-app/DEBUG] Got a response error from the API: Http request error, no response available
.
It's hard to replicate the issue, and I am not sure what triggers it.
The previous error reported here was actually masking a different issue - the original request got aborted, but we failed to handle that case properly when trying to log this. This error should now be easier to interpret (not really the case here), or at least catchable so you can dig into the data.
With https://github.com/Shopify/shopify-app-js/commit/16f52eef7690260321acd8bfb79f678dd5748fe4, which is coming in the next release, we'll also include some more info in that error message, which will hopefully help us identify the root cause of this issue.
@mkromann Were you able to determine what might have been causing the error: Http request error, no response available? I'm getting this same error on graphql client Error: Http request error, no response available: GraphQL Client: request
It’s tricky to replicate the problem on my end, so any insights you have would be really helpful
Issue summary
In this tutorial: https://shopify.dev/docs/apps/getting-started/build-qr-code-app?framework=remix
my code
get error