App couldn't be loaded and not being redirected properly

App couldn't be loaded and not being redirected properly

mcirami5
Shopify Partner
3 0 0

 

Hello. I have the default bare bones app created and converted it to a sales channel app. I have it hosted on fly.io. Everything was working great until 2 days ago. All I'm doing is using OAuth to connect to a users store from my own web app and retrieving their products so they can be listed on my web app with a link to their Shopify store. The user enters their store name and submits it and I am using Laravel with socialite to redirect them to Shopify and login to their store, install my app and then they are supposed to be redirected back to my redirect uri I specified so I can do my thing in there. Instead of being redirected it goes to the Shopify settings Apps and sales channels tab and I get the message:

 

The app couldn’t be loaded

 

This app can’t load due to an issue with browser cookies. Try enabling cookies in your browser, switching to another browser, or contacting the developer to get support.

 

I am testing this on my Dev store I have in my Partners account as the app is currently not listed and approved yet.

 

I've cleared cookies and used different browsers and I have allow all cookies, it's all the same

 

Another problem I was having sometimes is instead of being redirected to my redirect uri, after the app is installed I would be redirected to https://callback.myshopify.com/admin/oauth/authorize?etc... and it would say Shop is not available.

 

As I said this was all working with no issues a few days ago. Please Help!

Replies 6 (6)

mcirami5
Shopify Partner
3 0 0

I wanted to add this is a brand new app using the latest Node and React boilerplate that uses sessions. And this only happens after user logs into their store and installs app. If I go to the app after that there are no issues with the app loading. Just anytime I try to call the api and expect a redirect back I get this cookie issue.

mcirami5
Shopify Partner
3 0 0

Can anyone help please??!! When this happens I also get oauth_error=same_site_cookies in the url. 

minsko
Shopify Partner
23 2 5

The "oauth_error=same_site_cookies" error can occur if the access scopes configured on the deployed server do not match the scopes defined for the app in in Shopify. 

leisenberg
Shopify Partner
1 0 0

We're you able to solve your issue? We're dealing with a similar one.

RolandsK
Shopify Partner
4 0 2

Hi! I got a similar issue recently, did you figure out the problem?

 

Edit: it seems like I had issue with scopes

techticarti1
Shopify Partner
5 0 0

anyone got answer of this issue?