App proxy returns 404

Jurbs
Visitor
3 0 0

I’ve gone through this tutorial:
https://help.shopify.com/en/api/guides/application-proxies

…and setup my app proxy as follows:

Screen Shot 2019-06-28 at 8.23.46 AM.png

If I test the following URL https://jspizza.myshopify.com/apps/my-app-proxy/app_path/

…I receive a 404.

Should that redirect to this url?:
https://my-app-proxy.com/app_proxy/app_path 

 

Replies 5 (5)

oscprofessional
Shopify Partner
15830 2369 3071

Hello 

Get pass your Store Core Web Vital Free Speed Optimization Audit, Chat on WhatsApp | Skype : oscprofessionals-87 | Email: pallavi@oscprofessionals.com | Custom Pricing Wholesale App : Free | Hire us | Guaranteed Site Speed Optimization | Website Free Audit | Shopify Theme Customization | Build Shopify Private App | Shopify SEO | Digital Marketing
Jurbs
Visitor
3 0 0

1) still gives me a 404

2) I’ve not created a route. I’m not sure how to create a route to the app proxy or how that piece works. The Shopify App Proxy documentation is lacking in that area.

oscprofessional
Shopify Partner
15830 2369 3071

Which language you are using to develop this. Laravel,codeignter or any other.

 

Get pass your Store Core Web Vital Free Speed Optimization Audit, Chat on WhatsApp | Skype : oscprofessionals-87 | Email: pallavi@oscprofessionals.com | Custom Pricing Wholesale App : Free | Hire us | Guaranteed Site Speed Optimization | Website Free Audit | Shopify Theme Customization | Build Shopify Private App | Shopify SEO | Digital Marketing
Jurbs
Visitor
3 0 0

Shopify App CLI (Node JS version) https://github.com/Shopify/shopify-app-cli

josephmcdermott
Visitor
3 0 0

Just in case it helps some people, as I was banging my head against the wall on this. I was using a local dev environment to test the Shopify App signup and App page processes, which work fine as the requests come from directly your browser.

The app-proxy, on the other hand, involves Shopify's backend (not your browser) making an HTTP request to your Proxy URL to download the contents of your page.

In my case, the Proxy URL I was using was not publicly accessible, so once I switched to use Ngrok it worked fine.