Bot seems to be uploading the same media file multiple times?
Bot has been perfectly fine for the past week. However, when simply posting a message as a bot that only contains a media file, the bot seems to be spam uploading it, again, and again.
14 Replies
• What's your exact discord.js
npm list discord.js
and node node -v
version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.`-- [email protected]
node v16.14.0
For some reason, this is uploading again, and again, until I kill the bot. The media is uploading, probably the bot 'retrying' again?
What event are you responding to?
when someone posts a instagram url, the bot would grab that url.
The bot only logs the 'yay downloaded' and 'file exists' once, but it seems to upload the file over and over.
maybe when the bot sends the file, it triggers the event again?
the bot never chats a url, and if it was to trigger the event again, the console log should show 'yay downloaded' and 'file exists' again.
dunno sorry
my only idea is discord.js thinks the file upload failed, and tries again...
worked just fine till tonight, bot would only post once and be alright.
it never prints 'end' anymore.
seems to be that specific media file
https://www.instagram.com/reel/CteRZEMPzuT/?igshid=MTI1ZDU5ODQ3Yw==
Any tags I can apply to the send message request to only try once?
Is there any other options to adjust in the future regards to this? Would be nice if there could be a way to just only set retries count on the uploading message part.