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.
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.
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 @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.
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 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