What's your biggest current challenge? Have your say in Community Polls along the right column.

Why does admin.shopify.com sometimes refuse to connect?

Why does admin.shopify.com sometimes refuse to connect?

aksined_by
Shopify Partner
2 0 1

Hi! I'm making an app for Shopify (Remix).Seller should be redirected to my original site (PHP, in dev) for registration, then back to Shopify.

photo_2023-11-30_16-40-47.jpg

 When I tested the app the first time, everything worked correctly. But subsequent times generate an error from time to time. About every second request. The error looks like "admin.shopify.com refused to connect."

photo_2023-11-30_16-59-00.jpg




Looking at the logs on the site: my code works without errors - the user is logged in. Something happens during the reverse redirect. And it's critical for me, because after the first opening I generate an bill (appSubscriptionCreate) on Shopify and have to redirect to Shopify.

Could it be because the app is blacklisted? Or is there some kind of limit on requests per day/week?

Replies 2 (2)

aksined_by
Shopify Partner
2 0 1

If I make auth redirects + redirect to account - I catch this error. Without redirect to bill everything works fine. But, for the first time everything works fine with redirect to bill. I tested this on a new account with a new store.

ErSanjay
Shopify Partner
325 20 48

@aksined_by   I think the access token was not correct while making the API call. or loading the app.

 

  1. I will suggestion you clean the data for that shop. 
  2. do the reinstalled app.
  3. make do you use the fresh chrome user with no any past data like cookies or sessions there.

    alternative try with New shop so no more conflicts. 
    I hope this work. let me know if  still facing the issue
Business Owner & Shopify Plus, Shopify app , Shopify Consultant - Full Stack Sofware Engineer
Warm regards,
Er Sanjay

If you find yourself in need of assistance with your store, don't hesitate to reach out! Feel free to send me a direct message, and I'll do my best to help you out.