Shopify / shopify-express

“Get up and running quickly with Express.js and the Shopify API.”
MIT License
137 stars 87 forks source link

Getting error while receiving webhook after server restarted #124

Closed ramaiahkethana closed 5 years ago

ramaiahkethana commented 5 years ago

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)