Code Monkey home page Code Monkey logo

Comments (26)

adityasanehi avatar adityasanehi commented on August 18, 2024

Got this while installing.

npm WARN deprecated [email protected]: request-promise has been deprecated because it extends the now deprecated request package, see request/request#3142
npm WARN deprecated [email protected]: request has been deprecated, see request/request#3142
npm WARN deprecated [email protected]: request-promise-native has been deprecated because it extends the now deprecated request package, see request/request#3142
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated

from amazonmonitor.

SpikeHD avatar SpikeHD commented on August 18, 2024

Warnings during installation are fine, you can ignore those. Can you enable debug mode through the config? I can't really pinpoint at what point the bot is attempting to send a message in your instance, so it would be helpful if you could recreate it and include the relevant debugger info as well

from amazonmonitor.

adityasanehi avatar adityasanehi commented on August 18, 2024

Tried to add this.
Screenshot_5

Got this.

[DEBUG] []
[DEBUG] { link: undefined, category: '', query: '', priceLimit: 0 }
[DEBUG] Price Limit: 0
[ERROR] TypeError: Cannot read property 'length' of undefined
at Object.module.exports.run (C:\Users\adity\Desktop\Sneaker-Monitors-master\AmazonMonitor-master\commands\watch.js:33:19)
at exec (C:\Users\adity\Desktop\Sneaker-Monitors-master\AmazonMonitor-master\index.js:75:13)
at Client. (C:\Users\adity\Desktop\Sneaker-Monitors-master\AmazonMonitor-master\index.js:67:61)
at Client.emit (events.js:315:20)
at Client.EventEmitter.emit (domain.js:467:12)
at MessageCreateAction.handle (C:\Users\adity\Desktop\Sneaker-Monitors-master\AmazonMonitor-master\node_modules\discord.js\src\client\actions\MessageCreate.js:31:14)
at Object.module.exports [as MESSAGE_CREATE] (C:\Users\adity\Desktop\Sneaker-Monitors-master\AmazonMonitor-master\node_modules\discord.js\src\client\websocket\handlers\MESSAGE_CREATE.js:4:32)
at WebSocketManager.handlePacket (C:\Users\adity\Desktop\Sneaker-Monitors-master\AmazonMonitor-master\node_modules\discord.js\src\client\websocket\WebSocketManager.js:384:31)
at WebSocketShard.onPacket (C:\Users\adity\Desktop\Sneaker-Monitors-master\AmazonMonitor-master\node_modules\discord.js\src\client\websocket\WebSocketShard.js:444:22)
at WebSocketShard.onMessage (C:\Users\adity\Desktop\Sneaker-Monitors-master\AmazonMonitor-master\node_modules\discord.js\src\client\websocket\WebSocketShard.js:301:10)
(node:27200) UnhandledPromiseRejectionWarning: DiscordAPIError: Cannot send an empty message
at RequestHandler.execute (C:\Users\adity\Desktop\Sneaker-Monitors-master\AmazonMonitor-master\node_modules\discord.js\src\rest\RequestHandler.js:154:13)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async RequestHandler.push (C:\Users\adity\Desktop\Sneaker-Monitors-master\AmazonMonitor-master\node_modules\discord.js\src\rest\RequestHandler.js:39:14)
(node:27200) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 7)

from amazonmonitor.

SpikeHD avatar SpikeHD commented on August 18, 2024

You need to specify the link before the -l bit

from amazonmonitor.

adityasanehi avatar adityasanehi commented on August 18, 2024

!watch https://www.amazon.com/MAXSUN-RX-550-Computer-DisplayPort/dp/B08VHWFWSD/ref=sr_1_3?dchild=1&keywords=gpu&qid=1618829580&sr=8-3 -l

from amazonmonitor.

adityasanehi avatar adityasanehi commented on August 18, 2024

I was verifying w an instock link.

from amazonmonitor.

SpikeHD avatar SpikeHD commented on August 18, 2024

Format the command like this: !watch -l https://www.amazon.com/MAXSUN-RX-550-Computer-DisplayPort/dp/B08VHWFWSD/ref=sr_1_3?dchild=1&keywords=gpu&qid=1618829580&sr=8-3

from amazonmonitor.

adityasanehi avatar adityasanehi commented on August 18, 2024

Still not working. only the !help command works.

Got this message now.

(node:54764) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 5)

from amazonmonitor.

SpikeHD avatar SpikeHD commented on August 18, 2024

There should be more to that message than just that. Is there more debug output/error output before or after that message?

from amazonmonitor.

adityasanehi avatar adityasanehi commented on August 18, 2024

got this when i ran it first
Screenshot_8

after the command, !watch -l https://www.amazon.com/MAXSUN-RX-550-Computer-DisplayPort/dp/B08VHWFWSD/ref=sr_1_3?dchild=1&keywords=gpu&qid=1618829580&sr=8-3

Screenshot_9

from amazonmonitor.

SpikeHD avatar SpikeHD commented on August 18, 2024

I'm not sure, that may be a puppeteer issue, so try deleting the node_modules folder and reinstalling the dependencies.

from amazonmonitor.

adityasanehi avatar adityasanehi commented on August 18, 2024

I've tried all, still does not work for me.
Installed it on a different OS as well. Nothing except !watchlist and !help gets a respond.

from amazonmonitor.

SpikeHD avatar SpikeHD commented on August 18, 2024

That is very very odd. Are the error messages different depending on the command?

from amazonmonitor.

adityasanehi avatar adityasanehi commented on August 18, 2024

Yes, it says Discord API error w everything, maybe some problem w Discord connection. I've verified the token and its the same as on the developer portal. Does the bot still work for you?

from amazonmonitor.

SpikeHD avatar SpikeHD commented on August 18, 2024

If it was a problem with the API itself it would be giving a different error. Your empty message error suggests there is data that isn't being output somewhere, which could happen for a myriad of reasons.

from amazonmonitor.

adityasanehi avatar adityasanehi commented on August 18, 2024

Would it be because of permissions, will try creating the application bot again.

from amazonmonitor.

SpikeHD avatar SpikeHD commented on August 18, 2024

It very likely is not about permissions unfortunately

from amazonmonitor.

adityasanehi avatar adityasanehi commented on August 18, 2024

If it was a problem with the API itself it would be giving a different error. Your empty message error suggests there is data that isn't being output somewhere, which could happen for a myriad of reasons.

Can you name some, I could reallly use this monitor!

from amazonmonitor.

SpikeHD avatar SpikeHD commented on August 18, 2024

Well in this instance I believe it could be a problem with the data being returned from Amazon, perhaps a page is loading correctly or something. Was it working beforehand at all? Or was this happening as soon as you set it up?

from amazonmonitor.

adityasanehi avatar adityasanehi commented on August 18, 2024

This has been happening since i set it up. Does the monitor still work for you?

from amazonmonitor.

SpikeHD avatar SpikeHD commented on August 18, 2024

Yup, still working just fine for me. I assume you can still access Amazon through your regular web browser?
image

from amazonmonitor.

adityasanehi avatar adityasanehi commented on August 18, 2024

I tried w the Linux district again it didn’t work. Will try again tomorrow and w a fresh clone. Don’t know what’s going wrong. Maybe something to do w region? Shouldn’t be a problem though.

from amazonmonitor.

SpikeHD avatar SpikeHD commented on August 18, 2024

Shouldn't be anything to do with the region, maybe that error involving the temp directory not being able to made could be related but I would have no idea how to fix that, since I've never seen it before, and you may have to go on a bit of a Googling adventure to figure that one out.

from amazonmonitor.

adityasanehi avatar adityasanehi commented on August 18, 2024

Works for me now, the problem was with the permissions var in the config file. Also, how many products can I track w this?

from amazonmonitor.

adityasanehi avatar adityasanehi commented on August 18, 2024

Also, does it need any proxies and whats the lowest refresh delay it can handle?

from amazonmonitor.

SpikeHD avatar SpikeHD commented on August 18, 2024

You can technically track any amount of items, although that may start bogging your machine down performance wise, so judge based off of your computer resources.

It does not require proxies but it is much more effective if you use them. With proxies you can bring down refresh delays to less than a minute although that too could cause performance issues, so just judge the best you can.

from amazonmonitor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.