GET Request via AppProxy is returning 302 only for a single shop

Hello

We have been using App Proxies for a long time. Our use case is we make a GET request via JavaScript on the storefront like: https://shop.myshopify.com/apps/our-app?someId=8900, and the request gets forwarded to our servers as expected, and we send a JSON response back, so it’s pretty much standard use.

However, for one shop sending a request to https://shop.myshopify.com/apps/our-app?someId=8900 returns 302 Found instead of forwarding the request to our servers

Any idea why would be get 302 instead of request being proxied to our servers?

We haven’t moved to new Dev Platform but not really sure which channel to post the issue in

1 Like

Hey @Kets_Patel - that is strange. One reason I can think of for this happening would be if the merchant changed their myshopify.com URL name to something else after your app had set up its logic, if that makes sense (more info here). If you’ve double checked that and that doesn’t seem to be the case, if you’re able to share an X-Request-ID from the API response headers for an example 302 response, I can definitely take a look on my end here in our logs.

Hope this helps a bit!

Thanks @Alan_G I have asked the merchant

Hi @Alan_G there is no change to .myshopify.com domain. Here is the X-Request-ID from the API response (302 redirect) e213887f-2369-401c-a075-cbe6464414b9-1758789743. Let me know if you find something in the logs?

Thanks @Kets_Patel - I was able to pull that example in our logs here, really appreciate you grabbing that request ID. From what I can tell that shop does only have the one myshopify.com URL as well, so this is certainly odd. I’ll do some more digging into this on our end and loop back with you once I have more info. Appreciate your patience on this!

Thanks, appreciate you looking into it :slight_smile:

1 Like

There were some temporary app proxy issues recently which were resolved. Are you still seeing this issue @Kets_Patel ?

Hi @Liam-Shopify unfortunately its still 400 bad request error, not sure if merchant will keep the app installed for longer :frowning:

@Liam-Shopify @Alan_G i’m getting the 302 as well on my dev store in the new Dev environment. I’ve reinstalled the app, but no luck.

Request ID: 2a957c81-1ebd-40ab-9c64-3b4b4d494e89-1760290276

GCP europe-west4

We asked merchant to re-install but we are still seeing 302 :frowning:

Thanks @AdminGh and @Kets_Patel for the followup and apologies for the late reply on my end. I’m reached out to some folks internally to investigate further on my end. I’ll loop back with you when I have more info.

@Kets_Patel , if you’re able to share a new example request ID as well, that would be super helpful.

Thanks again for your patience on this all, it’s really appreciated.

Hi all, I’ve done some digging into this, and wanted to share this post if you all haven’t checked it out yet as it may help resolve the issue:

The same guidance to check the shop-configured URL path in the store admins for 404s would apply to 302s. If you are still seeing issue if you can confirm the URL is as expected there, just let me know here and I can take a closer look.

@Alan_G No we have had issue specific to invalid proxy Url in the app settings but thats not the case for this Shop

Hi @Alan_G this is still the case. If you need more info that this then hit me up with a DM, but hope this helps:

Thanks for clarifying folks, and thanks @AdminGh for the screenshots. We’ll keep digging into this and I’ll loop back once I have more info.

Hi @Alan_G,

Any updates?

Hey @AdminGh , thanks for following up, I don’t have a concrete update on my end, but just wanted to confirm that we’re still looking into this for you. I’ll keep you updated here in this thread.

Hey @AdminGh, thanks for your patience on this one. I was able to work with some folks internally, and we dug into the logs around the 302 response you were seeing.

What we found is that the redirect is actually coming from your app server at the cloudflare tunnel URL rather than from Shopify’s App Proxy itself.

The flow is essentially that our App Proxy forwards the request to your proxy URL, and then whatever response your server sends back (in this case a 302 redirect) gets passed through to the browser client. Based on this, I’d recommend checking your app server configuration and the Cloudflare tunnel setup to see why it might be returning a redirect instead of the expected response. Let me know if you have any questions about this or need any clarification on what we’re seeing from our end, more than happy to help.

Hey @AdminGh - wondering if the above helped or if we can still assist, just let me know :slight_smile:

Hey guys coming back to this thread, @Alan_G are you seeing 302 to redirects from our server as well, from what I can see in our logs, Requests made to proxy never hits our server