-
Notifications
You must be signed in to change notification settings - Fork 390
Oauth session error - Invalid shop argument #579
Comments
@sireaev Thanks for raising this. I was wondering if it would be possible for you migrate to v6 and see if the error is still reproducible? You can find a migration guide here. |
@cquemin This problem has been solved, it should be handled in all of auth.js and verify-request (try catching) the wrong requests, although verifying hmac, there're other issues on v6 and a new shopify object, but I've already created other threads for it. So this issue is no more a concern. Thanks, can be closed. |
Thanks for reaching out @dani-sanomads, this sounds like a different issue altogether. If you have not migrated to v6 yet, would you be able to migrate first? Then, if you are still experiencing your problem, you can create another issue, following the template as closely as possible so that we can figure out in detail what is the problem. I hope this makes sense. |
Not yet but I'm developing another app in v6 and i'm not receiving gdpr webhook calls for CUSTOMERS_DATA_REQUEST from admin dashboard although i tested it through postman and it worked fine. And for the 503 error in v5 I have seen that during the webhook call the error handling is not managed properly. |
Hey @cquemin ,
Error
I would be grateful if someone could tell me What I am doing wrong? |
@Harshpanday make sure that you are adding the domain to the shop: Example: |
Hi there,
The app is using SQLiteSessionStorage and offline tokens:
I'm developing a shopify node app, have used shopify cli to generate node template, for development I've used ngrok and didn't stay much time online testing sessions, but as soon as I got to production server (hosted) it gives the following error: Received invalid shop argument and the node process exits with status code 1.
I'm starting the node on prod with the command:
npx cross-env IP=XXX.XXX.XXX.XXX HOST=https://XXXXXXX SCOPES=XXXX NODE_ENV=production SHOPIFY_API_SECRET=XXX SHOPIFY_API_KEY=XXXX node index.js
The server starts to work properly, but after a couple of days it gives out the error Received invalid shop argument.
Additional information:
one of the shopify page from the app is using the current session information to show the email on the page, and it's extracted like this:
the error is saying that the problem issued from redirect-to-auth.js on server side redirect
What could go wrong?
What could I do to solve the problem?
ps. I've checked the shopify forum and the session instructions: https://github.com/Shopify/shopify-api-node/blob/HEAD/docs/issues.md#notes-on-session-handling
Thanks,
The text was updated successfully, but these errors were encountered: