5 days 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
4 days 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 • 5 days ago
5 days ago
can you share the error message? should be in the deploy logs
mayoriii
can you share the error message? should be in the deploy logs
5 days ago
I can’t find it
k1n9ka1
I can’t find it
5 days ago
can't find the error message or the deploy logs?
mayoriii
can't find the error message or the deploy logs?
5 days ago
Error
5 days ago
nope
mayoriii
so where do u saw the "update voiceStateUpdate.js" error?
5 days ago
when i pressed the thing
5 days ago
cuz if it's crashed it should show something like this as an example
Attachments
mayoriii
cuz if it's crashed it should show something like this as an example 
5 days ago
oh
mayoriii
cuz if it's crashed it should show something like this as an example 
5 days ago
same thing i think its the script bc its in the github
mayoriii
is it a public repo?
5 days ago
yea
5 days ago
can you share the link here? I'll try to reproduce the bug to see where's the error
mayoriii
can you share the link here? I'll try to reproduce the bug to see where's the error
5 days ago
5 days ago
please tell me when done
5 days ago
weird, it is successfully deployed for me, can you check the deploy tab?
Attachments
5 days ago
hmm
k1n9ka1

5 days 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.
5 days ago
i cant send screenshots but i can download logs
Attachments
k1n9ka1
i cant send screenshots but i can download logs
5 days 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?
5 days ago
nope. build logs attached
Attachments
5 days 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
5 days ago
oh
5 days ago
cant send
5 days ago
exceeds limit
5 days ago
got dc?
5 days 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)
mayoriii
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)
5 days ago
ok
mayoriii
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)
5 days ago
k1n9ka1
https://gist.github.com/K1n9Ka1/be096563e8e700e75246da401bd866ea
5 days ago
deploy logs there
5 days 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
mayoriii
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
5 days ago
ok
mayoriii
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
5 days ago
maybe wrked actually
5 days ago
yup!
5 days ago
new problem! no commands appear
5 days ago
im asleep! leave ideas, ill read later
4 days ago
make sure you have defined all environment variables as showed on the .env.example file
mayoriii
make sure you have defined all environment variables as showed on the `.env.example` file
4 days ago
where do i find the .env.example bit?
4 days 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 • 4 days ago
