Open Ace3DPrints opened 6 years ago
Same error I'm getting across Windows or Linux.
yes i been getting this on new update
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
got it solved. Download the Notify.js and swap your with this. http://www.mediafire.com/file/nott5ve6ai5ijww/Notify.js.zip
[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)``