shopify-monitor icon indicating copy to clipboard operation
shopify-monitor copied to clipboard

throw er; // Unhandled 'error' event

Open Ace3DPrints opened this issue 6 years ago • 4 comments

[Fri May 04 2018 08:07:24] [LOG] [undefeated.com] Changes were made [Fri May 04 2018 08:07:27] [LOG] [undefeated.com]: Restock/Price Change: https://undefeated.com/products/undefeated-icon-tee [Fri May 04 2018 08:07:27] [LOG] { port: 3000, mongodb_uri: 'mongodb://127.0.0.1:27017', slack: { active: false, webhook_url: '' }, discord: { active: 'checked', webhook_url: 'https://discordapp.com/api/webhooks/428567064068751371/owqGYZ7ciDP05z0kzwaQ3ooadi70nr2Np2vWsAx5krRyKmelJL1reUFQSdGBTjn231Ud' } } events.js:183 throw er; // Unhandled 'error' event ^

ReferenceError: stock is not defined at DiscordWebhook.myWebhook.on (C:\Users\Administrator\Desktop\shopify-monitor\src\classes\Notify.js:55:15) at emitNone (events.js:106:13) at DiscordWebhook.emit (events.js:208:7) at Request.DiscordWebhook.request [as _callback] (C:\Users\Administrator\Desktop\shopify-monitor\node_modules\discord-webhooks\index.js:33:12) at Request.self.callback (C:\Users\Administrator\Desktop\shopify-monitor\node_modules\request\request.js:186:22) at emitTwo (events.js:126:13) at Request.emit (events.js:214:7) at Request. (C:\Users\Administrator\Desktop\shopify-monitor\node_modules\request\request.js:1163:10) at emitOne (events.js:116:13) at Request.emit (events.js:211:7) at IncomingMessage. (C:\Users\Administrator\Desktop\shopify-monitor\node_modules\request\request.js:1085:12) at Object.onceWrapper (events.js:313:30) at emitNone (events.js:111:20) at IncomingMessage.emit (events.js:208:7) at endReadableNT (_stream_readable.js:1064:12) at _combinedTickCallback (internal/process/next_tick.js:138:11)``

Ace3DPrints avatar May 04 '18 12:05 Ace3DPrints

Same error I'm getting across Windows or Linux.

theianmartin avatar May 04 '18 12:05 theianmartin

yes i been getting this on new update

Ace3DPrints avatar May 04 '18 12:05 Ace3DPrints

This has stabilized things for me, I assume I'll lose any stock counts sent to the webhooks, unsure of any other ill effects, but the crashes have stopped and updates are being sent to my discord server

https://gist.github.com/vanhoof/0d98d50a17a9c4c1c3df11487c70f259

vanhoof avatar May 04 '18 20:05 vanhoof

got it solved. Download the Notify.js and swap your with this. http://www.mediafire.com/file/nott5ve6ai5ijww/Notify.js.zip

chiefshez avatar Jun 06 '18 16:06 chiefshez