App reviews, troubleshooting, and recommendations
Hi!
I'm creating a subscription for a "product/update" topic. It works fine on my development store, but I have issues when I try to launch it in prouction.
const webhook = new Webhook({ session: session }); webhook.topic = "products/update"; webhook.address = "https://api.splashup.co/items/update"; webhook.format = "json"; console.log("first update"); try { await webhook.save({ update: true, }); } catch (error) { console.log(error); }
This is what I see in logs:
first update HttpRequestError: Failed to make Shopify HTTP request: FetchError: invalid json response body at https://noel-the-label.myshopify.com/admin/api/2022-04/webhooks.json reason: Unexpected end of JSON input
Could you please tell me, what can be the cause of this problem? I have a feeling that something maybe wrong with access restrictions. The current Scope of the app is "write products".
Any help is massively appreciated 🙂
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025