SpikeHD / AmazonMonitor

Amazon price checker, item monitor and stock monitor, all shoved into a Discord bot
GNU General Public License v3.0
221 stars 38 forks source link

Cannot read properties of null #83

Closed nouveau25 closed 2 years ago

nouveau25 commented 2 years ago

Hi,

after entering a watch command like !watch -q iphone+12, I get the following error message

[LOG] Checking item prices... [MESSAGE] Type: headless [MESSAGE] Waiting a couple seconds for JavaScript to load... [DEBUG] Got page in 3164ms C:\Users\ME\Desktop\AmazonMonitor-master\common\util.js:254 const itemsToCompare = newItems.filter(ni => obj.cache.find(o => o.asin === ni.asin)) ^

TypeError: Cannot read properties of null (reading 'filter') at doCheck (C:\Users\ME\Desktop\AmazonMonitor-master\common\util.js:254:39) at processTicksAndRejections (node:internal/process/task_queues:96:5)

Many thanks in advance for your support

SpikeHD commented 2 years ago

Should be fixed in the most recent commit!