Proxy issue 500 response

Solved
Highlighted
Tourist
3 1 0

Hi 

I've developed a custom app that simply serves static files for PWA features , which is served at , https://cb.pwa.mcjb.enterprises/d/manifest.json

Proxy configuration

Screenshot from 2020-09-10 12-05-39.png

Response when installed in the app.

Screenshot from 2020-09-10 12-08-12.png

Any idea?

Much appreciated 

Matt

0 Likes
Highlighted
Tourist
5 0 1

I've been experiencing major issues with the App Proxy since the beginning of the month.

I'm convinced they changed something recently, and have reached out to support for more info.

1 Like
Highlighted
Tourist
3 1 0

Could be something to do with this, notice that content-encoding is stripped from the header, https://stackoverflow.com/questions/48931350/content-encoding-header-not-returned-from-cloudfront

0 Likes
Highlighted
Tourist
3 1 0

This is an accepted solution.

Turns out it was a few problems, for anyone reading this if you use the shopify koa app and implement server.use to serve static files make sure you implement it before createShopifyAuth as requests to /a/proxy/manifest.json for example will attempt to re-authenticate if implemented afterwards and return a 302 redirect back to root.

Calling the wrong URL was my first problem once I sorted that out I still had the same issues, turns out that if you are calling static files in this way it will not work on a development store due to the store being password protected.

0 Likes