Why am I getting this error?

Topic summary

A user encounters an OAuth redirect_uri error (shown in an attached screenshot) while setting up their Shopify app.

Initial Diagnosis:
The error typically occurs when the redirect_uri isn’t listed in the Allowed redirection URL(s) in the Partner Dashboard’s App Setup page. With Shopify CLI, new tunnel URLs are generated each server restart, requiring dashboard updates.

Suggested Solution:

  • Run the setup again using npm run dev --reset
  • Select Always by default for the option: “Have Shopify automatically update your app’s URL in order to create a preview experience”
  • This allows Shopify CLI to automatically update redirection URLs

Current Status:
The original poster tried the solution with Shopify CLI 3 (yarn dev --reset with Always by default selected) but the error persists. They’re seeking additional troubleshooting steps.

Summarized with AI on November 18. AI used: claude-sonnet-4-5-20250929.

Hi there :waving_hand:

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!