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

https://tuscanyleather.myshopify.com/admin/oauth/authorize?client_id=0826b39ca1455bff564866121e63911...

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

 

 

0 Likes
Highlighted
Shopify Staff
Shopify Staff
666 88 93

Hey @planetpegasi,

 

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

 

...&redirect_uri=%20https://8e4e5302.ngrok.io/shopify/callback...

 

Let me know how you go.

0 Likes