ERROR: MultiValueDictKeyError at /auth/shopify/callback 'code'

ERROR: MultiValueDictKeyError at /auth/shopify/callback 'code'

tudornicula
Shopify Partner
1 0 0

Hello, I am trying to run https://github.com/Shopify/sample-django-app on localhost using shopify, but I am getting error

MultiValueDictKeyError at /auth/shopify/callback

'code'

My .env file is located in root directory, it contains ACCESS_KEY, SECRET_KEY, API_URL and SCOPES. I also modified the APP URL and Allowed redirection URL(s) with ngrok url.

Here is the error on the server terminal:

Internal Server Error: /auth/shopify/callback
Traceback (most recent call last):
File "/home/tudor/.local/lib/python3.10/site-packages/django/utils/datastructures.py", line 84, in __getitem__
list_ = super().__getitem__(key)
KeyError: 'code'

 

What I am doing wrong? Thank you

 

Replies 0 (0)