Firstly, I registered webhook and then I am successfully getting webhook events without errors. After restarting my node server, I am not able to get any webhook.
After troubleshooting, I came to know that error is present in "withWebhook". Maybe I don't know if it was an error or not. I am attaching the log, please once check.
TypeError: Cannot destructure property accessToken of 'undefined' or 'null'.
at shopStore.getShop (/home/arjuna/richpanel/projects/sample-shopify-node-app/node_modules/@shopify/shopify-express/middleware/webhooks.js:26:49)
at MemoryStrategy.getShop (/home/arjuna/richpanel/projects/sample-shopify-node-app/node_modules/@shopify/shopify-express/strategies/MemoryStrategy.js:17:12)
at withWebhook (/home/arjuna/richpanel/projects/sample-shopify-node-app/node_modules/@shopify/shopify-express/middleware/webhooks.js:26:19)
at
at process._tickCallback (internal/process/next_tick.js:188:7)
Firstly, I registered webhook and then I am successfully getting webhook events without errors. After restarting my node server, I am not able to get any webhook.
After troubleshooting, I came to know that error is present in "withWebhook". Maybe I don't know if it was an error or not. I am attaching the log, please once check.
TypeError: Cannot destructure property
at process._tickCallback (internal/process/next_tick.js:188:7)
accessToken
of 'undefined' or 'null'. at shopStore.getShop (/home/arjuna/richpanel/projects/sample-shopify-node-app/node_modules/@shopify/shopify-express/middleware/webhooks.js:26:49) at MemoryStrategy.getShop (/home/arjuna/richpanel/projects/sample-shopify-node-app/node_modules/@shopify/shopify-express/strategies/MemoryStrategy.js:17:12) at withWebhook (/home/arjuna/richpanel/projects/sample-shopify-node-app/node_modules/@shopify/shopify-express/middleware/webhooks.js:26:19) at