Oauth error invalid_request: The redirect_uri is not whitelisted - Shopify NodeJS Express Private ap

New Member
1 0 0

I am building a private app by following this tutorial Build a Shopify App Using Nodejs And Express. I have ngrok running (https://8e4e5302.ngrok.io). I provided the url and whitelisted urls in partner dashboard, screenshot below.

When I go to https://8e4e5302.ngrok.io/shopify?shop=mystore.myshopify.com, I receive this error


The console has this error

Failed to load resource: the server responded with a status of 400 ()

I have searched the web for hours tried changing multiple things like adding http://8e4e5302.ngrok.io to the whitelisted urls and even creating a new store. But nothing seems to work. I just cant get past this stage.

The redirect uri is


This matched to what i have in the whitelisted url in partner dashboard so why I am still receiving this error. Can someone please help me get past this error by providing me some direction!. I am completely stuck here.

Screen Shot 2020-02-20 at 10.00.55 AM.pngScreen Shot 2020-02-20 at 9.55.28 AM.png



Shopify Staff
Shopify Staff
666 88 93

Hey @planetpegasi,


A space appears to have slipped into the redirect url, check your code:




Let me know how you go.