3 months ago
I’m trying to make a Discord bot for a server but when I run it it goes online for a bit then crashes showing “update voiceStateUpdate.js”. It keeps on showing it every time i restart. Any help?
Pinned Solution
3 months ago
on the github repo, there's an .env.example file that show all the required variables needed for your application
42 Replies
Status changed to Open Railway • 3 months ago
mayori
can you share the error message? should be in the deploy logs
3 months ago
I can’t find it
mayori
can't find the error message or the deploy logs?
3 months ago
Error
3 months ago
nope
mayori
so where do u saw the "update voiceStateUpdate.js" error?
3 months ago
when i pressed the thing
3 months ago
cuz if it's crashed it should show something like this as an example
Attachments
mayori
cuz if it's crashed it should show something like this as an example 
3 months ago
oh
mayori
cuz if it's crashed it should show something like this as an example 
3 months ago
same thing i think its the script bc its in the github
mayori
is it a public repo?
3 months ago
yea
3 months ago
can you share the link here? I'll try to reproduce the bug to see where's the error
mayori
can you share the link here? I'll try to reproduce the bug to see where's the error
3 months ago
3 months ago
please tell me when done
3 months ago
weird, it is successfully deployed for me, can you check the deploy tab?
Attachments
3 months ago
hmm
k1n9ka1

3 months ago
"update voiceStateUpdate.js" is the commit message, not the error. Just click on the failed deployment, and check your logs. Take a screenshot of the logs so we can have a look.
darseen
"update voiceStateUpdate.js" is the commit message, not the error. Just click on the failed deployment, and check your logs. Take a screenshot of the logs so we can have a look.
3 months ago
i cant send screenshots but i can download logs
Attachments
k1n9ka1
i cant send screenshots but i can download logs
3 months ago
That's a generic error message; it's not very helpful in determining the cause of the issue. Do you see anything else in the logs?
darseen
That's a generic error message; it's not very helpful in determining the cause of the issue. Do you see anything else in the logs?
3 months ago
nope. build logs attached
Attachments
3 months ago
those logs just show this
error "Error occurred while processing request"
i dont know if this is the actual logs or error from station when serving files
you can just go to logs and click download button and copy as text
Attachments
3 months ago
oh
3 months ago
cant send
3 months ago
exceeds limit
3 months ago
got dc?
3 months ago
connect your discord account with your railway account, and open a help thread on the server
or if its too long, upload the copied text to gist (https://gist.github.com) and share the gist link here (since discord messages have a limit for text messages too)
mayori
connect your discord account with your railway account, and open a help thread on the server or if its too long, upload the copied text to gist (https://gist.github.com) and share the gist link here (since discord messages have a limit for text messages too)
3 months ago
ok
mayori
connect your discord account with your railway account, and open a help thread on the server or if its too long, upload the copied text to gist (https://gist.github.com) and share the gist link here (since discord messages have a limit for text messages too)
3 months ago
k1n9ka1
https://gist.github.com/K1n9Ka1/be096563e8e700e75246da401bd866ea
3 months ago
deploy logs there
3 months ago
since the authentication error come from discord.js websocket, i would assume that your token is invalid or not specified in the env variable, try reset your token, copy and paste it in the variables tab in your bot service on railway
mayori
since the authentication error come from discord.js websocket, i would assume that your token is invalid or not specified in the env variable, try reset your token, copy and paste it in the variables tab in your bot service on railway
3 months ago
ok
mayori
since the authentication error come from discord.js websocket, i would assume that your token is invalid or not specified in the env variable, try reset your token, copy and paste it in the variables tab in your bot service on railway
3 months ago
maybe wrked actually
3 months ago
yup!
3 months ago
new problem! no commands appear
3 months ago
im asleep! leave ideas, ill read later
3 months ago
make sure you have defined all environment variables as showed on the .env.example file
mayori
make sure you have defined all environment variables as showed on the `.env.example` file
3 months ago
where do i find the .env.example bit?
3 months ago
on the github repo, there's an .env.example file that show all the required variables needed for your application
Status changed to Solved mykal • 3 months ago
