App reviews, troubleshooting, and recommendations
Hello!
I have set up an app proxy but it does not work, there is no redirection.
It is set up like this:
Subpath prefix: apps
Subpath: test
Proxy URL: https://my.devsite.com/api
I have added a link in a theme section, with href="/apps/test/endpoint" and expected that a GET to https://my-shop.myshopify.com/apps/test/endpoint will reach https://my.devsite.com/api/endpoint
It doesn't happen, no redirection at all, the browser just loads https://my-shop.myshopify.com/apps/test/endpoint with a 500 error.
I have read dozens of posts and docs, no luck yet.
Anybody has an idea of what might be wrong please?
Best Regards,
Robert
EDIT: a day later it suddenly worked without any changes so I assume there is some kind of lag/caching involved in this proxy app business.
Should this have been documented it would have spared me a full day hassle 😞
Still there is an issue, the parameter logged_in_customer_id comes empty although the request is sent with a logged in customer.
I'll wait for another day maybe it gets solved automatically again 🙂
EDIT2: this is driving me crazy, no wonder many devs run away from Shopify 😞
Removed the old proxy URL to subdomain, created a new proxy URl with domain instead of subdomain, removed the app from the dev shop and installed it again.
Since then, couple of days ago, I get the 500 error again.
You don't want to use a standard link with a href. The proxy only works if you make fetch calls from the client JS to the proxy endpoint
On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023You've downloaded the Search & Discovery app from the Shopify App store, and as you're ...
By Skye Nov 8, 2023The year-end shopping season is just around the corner. Is a flash sale on your radar? Are...
By Jasonh Nov 6, 2023