Frequent inconsistent connection timeout on Raspberry Pi 5

I made a bot that works fine on my pc and decided to purchase a RPi 5 so I can keep it running even when my pc is off. However it seems to have random connection timeout error which happens randomly when I use node deploy-commands.js or node ., mostly when I tried a /ping command and see that i didn't get a respond. There is also the delay on RPi 5 which is a lesser concern (e.g starting up bot and bot responding is seamless while on RPi 5 there is a few second delay) - I have tried using deferReply() and it not seem to fix the issue - RPi is running on the same WiFi as my pc, so I don't think its the network - Code is exact same as my pc which I have not encounter the error even once before ( same as discordjs.guide "CREATING A BOT" )
6 Replies
d.js toolkit
d.js toolkit6mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by OP
This
This6mo ago
- 1st time crashed and I have to start it up again) - 2nd time works fine but crashed after I did another ping
treble/luna
treble/luna6mo ago
Both errors do point towards a network issue though
This
This6mo ago
Yea but I have no clue how it timeout if its on the same network as me but just on RPi, I tried pinging discord and its 0% packet loss too..
treble/luna
treble/luna6mo ago
if it works on your pc but not on your pi, the issue is not related to djs both errors indicate a network issue which djs cant do anything about or just slow code execution
This
This6mo ago
Alright thanks, I'll ask in the non-djs channel and see if anyone have experience with pi