You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.
Sometimes the uninstall webhook route throws an error, and sometimes it works fine. Additionally, the error is misleading, as the uninstall webhook route is getting hit, which means the webhook is registered successfully and it is received by my server.
Failed to process webhook: Error: No webhook is registered for topic app/uninstalled
Expected behavior
The uninstall webhook should be processed consistently.
Actual behavior
Inconsistant behavior by the Shopify.Webhooks.Registry.process(ctx.req, ctx.res)
router.post("/webhooks/app_uninstall",async(ctx)=>{try{awaitShopify.Webhooks.Registry.process(ctx.req,ctx.res);console.log(`Webhook processed, returned status code 200`);}catch(error){console.log(`Failed to process webhook: ${error}`);}});
The text was updated successfully, but these errors were encountered:
Hi @mkamalkayani ! :) This is a known issue due to the current architecture of the library.
The PR #226 is covering this issue and is currently waiting to be approved by the core team.
Until the PR is merged and pushed on NPM (due to the lack of response from the core team, I think it's gonna take a while...), you can try to apply this hack (#205 (comment)).
Issue summary
Sometimes the uninstall webhook route throws an error, and sometimes it works fine. Additionally, the error is misleading, as the uninstall webhook route is getting hit, which means the webhook is registered successfully and it is received by my server.
Failed to process webhook: Error: No webhook is registered for topic app/uninstalled
Expected behavior
The uninstall webhook should be processed consistently.
Actual behavior
Inconsistant behavior by the
Shopify.Webhooks.Registry.process(ctx.req, ctx.res)
Relavent code
access mode is online.
The text was updated successfully, but these errors were encountered: