Issue with Shopify OAuth redirect in Django app

I’m new to Shopify app development and building an app with Python/Django.

Problem: When I redirect users to the OAuth authorization URL:

https://dotshirt-2.myshopify.com/admin/oauth/authorize?client_id=…&scope=read_products&redirect_uri=https%3A%2F%2Fthanh-meliorative-jerrie.ngrok-free.dev%2Fcallback%2F

I get the error: accounts.shopify.com refused to connect”

What I’ve verified:

  • My redirect URI is correctly configured in the app settings

  • The URL works perfectly when I paste it directly into the browser address bar

  • The issue only occurs when redirecting from my login route

Any ideas what might be causing this?

Hi @Mohin_Uddin,

There was an incident that occurred yesterday affecting account logins, so it’s likely this is related. Though the incident has since been resolved and should be fine moving forward.

Can I ask you to clear your browser cache and cookies and try this again, and see if the error continues?

If the error does continue, please check the Network Events in the Browser’s Developer Tools and provide us with any x-request-id or other unique request identifier for the HTTP Response Headers of the event that returned an error, and we can help look into it further.

Hi @Mohin_Uddin,

I’m just following up here to confirm if the issue is resolved on your end or not?

If you are no longer experiencing this error, we can go ahead and mark this thread as solved, otherwise please provide us with an x-request-id from a call returning this error and we can help look into it further.