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

11 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.
11 days ago
i cant send screenshots but i can download logs
Attachments
k1n9ka1
i cant send screenshots but i can download logs
11 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?
11 days ago
nope. build logs attached
Attachments
11 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
11 days ago
oh
11 days ago
cant send
11 days ago
exceeds limit
11 days ago
got dc?
11 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)
11 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)
11 days ago
k1n9ka1
https://gist.github.com/K1n9Ka1/be096563e8e700e75246da401bd866ea
11 days ago
deploy logs there
11 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
11 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
11 days ago
maybe wrked actually
11 days ago
yup!
11 days ago
new problem! no commands appear
11 days ago
im asleep! leave ideas, ill read later
11 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
11 days ago
where do i find the .env.example bit?
11 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 • 11 days ago
