-
Notifications
You must be signed in to change notification settings - Fork 116
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
[shopify-app-remix] Cannot read properties of undefined (reading 'headers') #681
Comments
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 Shopify/shopify-api-js#1330. I'll close this issue but please let us know if it still fails after the next release! |
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 16f52ee, 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? It’s tricky to replicate the problem on my end, so any insights you have would be really helpful |
Issue summary
"@shopify/cli": "3.56.3",
"@shopify/polaris": "^12.0.0",
"@shopify/shopify-api": "^9.2.0",
"@shopify/shopify-app-remix": "^2.5.0",
"@shopify/shopify-app-session-storage-prisma": "^4.0.1",
In this tutorial: https://shopify.dev/docs/apps/getting-started/build-qr-code-app?framework=remix
my code
get error
The text was updated successfully, but these errors were encountered: