In the past few days we've received a few complaints from customers who have got a refused connection error in the EASDK iframe. (Screenshot below). We can't reproduce the error on our end and are not seeing any errors in our Heroku/NewRelic metrics.
We are using the Shopify App Gem version 8.6.1.
Any ideas? Thank you in advance for any help.
Solved! Go to the solution
Safari 12+ has spanky new technology that refuses to load up iframes unless you previously set some cookie information that you use to get around the Safari bug. Chances are all these people you are hearing about are Safari 12+ users. That or your App is seriously borked.
The shopify app gem supposedly is immune to this, but YMMV on that.
So go with the Safari idea first? For those that like spittle and chunks of oh god why with their breakfast:
Thanks @HunkyBill . I can't reproduce the error even in Safari 12+. Do you think it's worth opening as an issue with the shopify_app gem team? I'm guessing they won't be able to do much without a reduced test case.
Since I posted, one of the users mentioned that the issue resolved itself. So I guess I just cross my fingers.
This is an accepted solution.
Go with that. Your App is likely not responsible. Shopify goes down all the time like this, and so you just learn to deal with it. It is much the same for any cloud platform. Things are 99% good... and then that pesky 1% creeps in and no one is really in a position to do anything about it!
I had a similar issue, detailed it in here https://community.shopify.com/c/Shopify-APIs-SDKs/App-doesn-t-load-in-iframe-on-firefox-safari/m-p/7...