App reviews, troubleshooting, and recommendations
Hi,
I'm trying to fire an API call from my theme app extension to my app backend.
I've set up an app proxy and I am setting my proxy URL to my APP URL from the Partners Platform, for example https://xxxxxxx-xxxxxxx-xxxxxxxx-xxxxxxxxx.trycloudflare.com/ is set to be routed if hit from "/apps/uni". I am aware that it changes every time npm run dev is executed, and I am updating it accordingly.
After this, I'm trying to hit an API to the same endpoint, /apps/uni/v1/product.
I expect this to be handled in web/index.js which is run after running the npm run dev command.
Sample: app.get("/v1/addresses", async (req, res) => { console.log("Request Received"); // const countData = await Product.count({ session }); res.status(200).send("Success"); });
This gives me an HTTP 200 status response and goes through the app proxy, as checked on the network tab. However, there is no console.log statement output.
Make the shift from discounts to donations, and witness your business not only thrive fina...
By Holly Dec 4, 2023On 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, 2023