NEW PROBLEM: It’s in my server just the commands don’t show
k1n9ka1
FREEOP

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?

Solved$10 Bounty

Pinned Solution

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


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

k1n9ka1
FREEOP

5 days ago

I can’t find it


k1n9ka1

I can’t find it

can't find the error message or the deploy logs?


mayoriii

can't find the error message or the deploy logs?

k1n9ka1
FREEOP

5 days ago

Error


k1n9ka1

Error

nothing in the build logs too?


k1n9ka1
FREEOP

5 days ago

nope


so where do u saw the "update voiceStateUpdate.js" error?


mayoriii

so where do u saw the "update voiceStateUpdate.js" error?

k1n9ka1
FREEOP

5 days ago

when i pressed the thing


k1n9ka1
FREEOP

5 days ago

IMG_0595.jpeg

Attachments


try redeploy and check the deploy logs


cuz if it's crashed it should show something like this as an example

Screenshot_2026-05-29-04-50-19-28_40deb401b9ffe8e1df2f1cc5ba480b12.jpg

Attachments


mayoriii

cuz if it's crashed it should show something like this as an example ![Screenshot_2026-05-29-04-50-19-28_40deb401b9ffe8e1df2f1cc5ba480b12.jpg](https://station-server.railway.com/attachments/att_01ksr93hznecr8dpc8fqep9tgb)

k1n9ka1
FREEOP

5 days ago

oh


mayoriii

cuz if it's crashed it should show something like this as an example ![Screenshot_2026-05-29-04-50-19-28_40deb401b9ffe8e1df2f1cc5ba480b12.jpg](https://station-server.railway.com/attachments/att_01ksr93hznecr8dpc8fqep9tgb)

k1n9ka1
FREEOP

5 days ago

same thing i think its the script bc its in the github


is it a public repo?


mayoriii

is it a public repo?

k1n9ka1
FREEOP

5 days ago

yea


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

k1n9ka1
FREEOP

5 days ago


k1n9ka1
FREEOP

5 days ago

please tell me when done


weird, it is successfully deployed for me, can you check the deploy tab?

Screenshot_2026-05-29-05-02-49-03_40deb401b9ffe8e1df2f1cc5ba480b12.jpg

Attachments


k1n9ka1
FREEOP

5 days ago

hmm


k1n9ka1

![IMG_0595.jpeg](https://station-server.railway.com/attachments/att_01ksr8x619exvr74620600f7jh)

"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.

k1n9ka1
FREEOP

5 days ago

i cant send screenshots but i can download logs

Attachments


k1n9ka1

i cant send screenshots but i can download logs

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?

k1n9ka1
FREEOP

5 days ago

nope. build logs attached

Attachments


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

image.png

Attachments


k1n9ka1
FREEOP

5 days ago

oh


k1n9ka1
FREEOP

5 days ago

cant send


k1n9ka1
FREEOP

5 days ago

exceeds limit


k1n9ka1
FREEOP

5 days ago

got dc?


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)

k1n9ka1
FREEOP

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)

k1n9ka1
FREEOP

5 days ago


k1n9ka1

https://gist.github.com/K1n9Ka1/be096563e8e700e75246da401bd866ea

k1n9ka1
FREEOP

5 days ago

deploy logs there


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

k1n9ka1
FREEOP

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

k1n9ka1
FREEOP

5 days ago

maybe wrked actually


k1n9ka1
FREEOP

5 days ago

yup!


k1n9ka1
FREEOP

5 days ago

new problem! no commands appear


k1n9ka1
FREEOP

5 days ago

im asleep! leave ideas, ill read later


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

k1n9ka1
FREEOP

4 days ago

where do i find the .env.example bit?


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


Welcome!

Sign in to your Railway account to join the conversation.

Loading...