Why am I getting this error?

Why am I getting this error?

bovojon
Shopify Partner
24 0 1

I don't understand this error. Can someone tell me what is wrong please?Screenshot 2023-07-18 at 4.57.29 pm.png

Replies 2 (2)

lizk
Shopify Staff
246 58 79

Hi there 👋

This error occurs when the redirect_uri during OAuth for your application is not listed in the Allowed redirection URL(s) on the App Setup page for your app in the Partner Dashboard. 

If you are using the Shopify CLI, each time you restart the server a new tunnel URL is created, and the redirection URLs in the partner dashboard need to be updated. But the Shopify CLI can do this for you! If you run the command npm run dev -- --reset, you will be able to run through the the set up again for your app. Make sure to select Always by default, for the option: Have Shopify automatically update your app's URL in order to create a preview experience?

Let me know if this solves the problem! 

To learn more visit the Shopify Help Center or the Community Blog.

bovojon
Shopify Partner
24 0 1

Hi @lizk, thank you for replying so fast. Unfortunately it didn't solve the problem. I am using Shopify CLI 3 and I did a `yarn dev --reset`. I selected Always by default, but it still gives that error.

 

Is there anything else I need to do?