open-api icon indicating copy to clipboard operation
open-api copied to clipboard

[BUG] The requested redirect URL is not permitted.

Open longchuan2018 opened this issue 4 years ago • 9 comments

Describe the bug A clear and concise description of what the bug is. I created a new application and filled in the callback address. However, you will always be prompted when authorizing:The requested redirect URL is not permitted.

To Reproduce Steps to reproduce the behavior:

https://www.etsy.com/oauth/connect/?response_type=code&client_id=z24mycmwju295glxunhlu1mc&redirect_uri=https://w.erp321.com/api/Etsy/callback.aspx&scope=address_r%20address_w%20billing_r%20cart_r%20cart_w%20email_r%20favorites_r%20favorites_w%20feedback_r%20listings_d%20listings_r%20listings_w%20profile_r%20profile_w%20recommend_r%20recommend_w%20shops_r%20shops_w%20transactions_r%20transactions_w&state=11937062&code_challenge=3AV5SPeXQWdp3WVXfCDDn7mxFJvgo-Pc0iIEFHT-V7w&code_challenge_method=S256

Expected behavior A clear and concise description of what you expected to happen.

I hope it can be authorized normally

Screenshots If applicable, add screenshots to help explain your problem. image

Additional context Add any other context about the problem here.

longchuan2018 avatar Dec 14 '21 11:12 longchuan2018

Who can help me

longchuan2018 avatar Dec 20 '21 01:12 longchuan2018

Make sure when you have registered the callback URI in the Etsy App, that you have followed the guidance shown here image

A classic mistakes are having a capital H for the https part, or having a trailing /

Also, in your case I would try removing the ".apsx" from the end of your callback URI also From this: https://w.erp321.com/api/Etsy/callback.aspx To this: https://w.erp321.com/api/Etsy/callback

Another thing is that your callback only has 1 w for the www subdomain. Is that correct? I can find your site by going to www.erp321.com

Gareth064 avatar Dec 20 '21 09:12 Gareth064

@Gareth064 I had the same issue and I am attempting to add this URL into the application but get an error I don't understand.

Callback URL does not match Application Domain.

What can I do?

bpyzikvc avatar Jan 11 '22 19:01 bpyzikvc

@bpyzikvc could you share what the callback URL is you are trying to use?

Gareth064 avatar Jan 11 '22 19:01 Gareth064

@Gareth064 https://veracore.com

As an example. This would not be our final one, but I want to see this work first.

bpyzikvc avatar Jan 11 '22 19:01 bpyzikvc

The callback URL would need to point to a URL which accepts the relevant query parameters which Etsy send back. Yours looks like the root of your site and not a proper callback URL.

Here is what my app URLs looks like currently for locally development as I haven't deploy it anywhere yet.

Screenshot_20220111-193530.png

Gareth064 avatar Jan 11 '22 19:01 Gareth064

@Gareth064 I understand that my url would not automatically accept the parameters but my intent here was that going through the process would take me to that page in my browser and I can pick out the paramters from the url.

You also have the same error I have in your screenshot so I don't understand. Is that label under each uri supposed to be there?

bpyzikvc avatar Jan 11 '22 19:01 bpyzikvc

That "warning" only matters when your app is in production. You can use any domain but Etsy will not likely approve your app for production if there is a mismatch.

These callback URLs work fine for me.

Gareth064 avatar Jan 11 '22 19:01 Gareth064

hello I have create an app few days ago but until this is not approve. when I am going to edit my previous app to add the redirect urI but I am getting this please help me https://qsnapnet.com/snaps/y90r64pclls from api https://qsnapnet.com/snaps/ydec99wbfji

lalitarya128 avatar Mar 14 '22 07:03 lalitarya128