App Got Rejected due Redirect

Highlighted
Tourist
5 0 4

Thanks @vbuhlev, I made the change to the App URL and it seemed to work, my app has been submitted for 12 hours now without an auto-reject (fingers crossed :D)

 

I'm still not 100% sure why that seemed to work - why does the koa-shopify-auth docs/tutorial not specify this? Seems like the tutorial docs recommend using your base app URL (not the /auth/inline) as the app entry point?

 

I'll see what happens with my submission and post here if any issues. Thanks again!

0 Likes
Highlighted
Shopify Partner
2 0 0
Checking for a 200 after auth


Could it be that because shopify returns a 302 instead of a 200 on step 3 this validation fails? Is there a way around  it?  

Ex flow for our app on reinstall 
1. Re-Installation request comes in
at {my app}/shopify/install?hmac={hmac}&shop={Mystore}.myshopify.com&timestamp={}

2. APP responds with 302 to:
https://{Mystore}.myshopify.com/admin/oauth/authorize?client_id={cid}&scope=write_orders,read_orders,read_customers,read_script_tags,write_script_tags,write_shipping,read_shipping,read_inventory,read_products&redirect_uri=https://{my app}/shopify/appsettings&state={state}&grant_options[]=

3. shopify responds with 302 to
https://{my app}/shopify/appsettings?code={code}&hmac={mac}&shop={Mystore}.myshopify.com&state={state}&timestamp={timestamp}

4. App responds with 200

0 Likes
Highlighted
Shopify Partner
2 0 0

the app installs and reinstalls without issues,    

Specifically  we've  tested both  trying to install again over an already installed shop and uninstalling and then re-installing again. 
Any request that comes through the endpoint declared in app settings as "app url" ALWAYS calls "oauth/authorize" regardless of instalation status, so it's impossible  that we are redirecting to the url indicated in the oauth/authorize call as the redirect uri directly.  It never happens anywhere in the flow. unless you type it manually  on  a browser. 

So either the message associated with the check is misleading,  or there's something missing in the documentation. 

ex. Is subscribing to the app/uninstall webhook mandatory?  we didn't implement that one, can that be the reason? 

0 Likes
Highlighted
New Member
4 0 0

Hey,

Did you find a solution to this problem? I'm having the same problem

0 Likes
Highlighted
New Member
3 0 0

Same problem with me, i'm using koa-shopify tutorial, tested ok in development,and got rejected with the same message

0 Likes
Highlighted
Shopify Partner
30 0 1

was anybody able to find a solution? i'm using https://myapp.mydomain.com/ as the APP URL.

0 Likes
Highlighted
New Member
1 0 0

Hi @Ryan,

Is it possible that somehow in the reinstall process, the old token is still valid? That is the only possible way we can get this error.

We never get "app/uninstalled" webhook callback during the test either...

0 Likes
Highlighted
Excursionist
16 0 13

You are following same practices/ suggested flows in tutorials , using same structures with already published and working stable apps. 
Nobody can pass the automation test (I strongly suggest that if test fails at least remove that app from test store, at least we would have not lost webhooks), you are trying to get some helps from support they redirect you to the forums. 
When you come to forums you are seeing everybody struggles with the same issue and nobody cares from Shopify.
Good job all really !


 https://community.shopify.com/c/Shopify-APIs-SDKs/What-happens-if-app-is-already-installed-and-one-c...

Second Image Hover Animations converts product images on your site into dynamic ones with simply one click
The Detective FAQ outstanding FAQ page templates & Product FAQs
Boostify ‑ Variant Swatch Show variants on collections with one click.
0 Likes