-
Notifications
You must be signed in to change notification settings - Fork 159
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
KeyError at /shopify/finalize/ 'shopify_oauth_state_param' #47
Comments
If you are embedding the app in an iframe, make sure that you are accessing your app over https, and that your cookies have the option |
Hello @tanema , |
Do you have a stacktrace of your error? |
Hi, this is the traceback. Thanks for your help
Request Method: GET Django Version: 3.0.2 Traceback (most recent call last): Exception Type: KeyError at /shopify/finalize/ `
` FILES COOKIES |
'shopify_oauth_state_param' is not in request.session. I'm also having a similar issue. Now I'm trying to find a solution. The solutions I can think of:
The reason is that 3rd party cookie is disabled. If the user is using the Chrome incognito tab or the browser does not enable 3rd party cookie, Django session id cannot be passed. The value of 'shopify_oauth_state_param' cannot be stored in session. By default, Django uses cookies to store session id. If you ever use session, a cookie will be created by Django |
Hi @sillycube , Did you manage to find a final solution for this ? |
I am done with this 3rd party cookie thing, session token auth, Shopify app bridge. Just spend too much time studying and implement all of them. When I played with session token auth, Shopify just gave me a diagram and the new django repo didn't even exist. It took me weeks and the app wasn't stable Finally, I just go with a standalone app. From your description, look like the prod env is slightly different from your dev / staging. Some reasons I can think of:
You probably need to trace the code to see where it drops Btw, this new sample django app repo supports the latest session token auth. I tried once and it worked. |
Hey @sillycube , Thanks for the taking the time to share your thoughts and inputs. I finally managed to figure it out, the actually issue was with the SMTP authentication of my transaction email 🤦 |
Hi there,
Thanks for your python shopify app integration.
All the apps i developed no longer work in the Shopify administration iframe, which is really annoying. I tried for several hours to resolve the problem, without success.
Do you have any idea what the problem is and how to fix it?
thank you so much
The text was updated successfully, but these errors were encountered: