Deployment getting crashed
arickprog
FREEOP

10 months ago

I basically made a discord bot and I wanna make it 24/7 active, I asked gpt it told me railway, I went to railway did everything good but in the end the deployment always got crashed... I want help!

Solved$10 Bounty

44 Replies

arickprog
FREEOP

10 months ago

N/A


10 months ago

Hey, please elaborate more on it and provide logs.


pedrroeduardo
PRO

10 months ago

Could you send your logs and, if possible, a link to your GitHub repository? @𝓢𝓲𝓬𝓴𝓷𝓸𝓵𝔁


arickprog
FREEOP

10 months ago

sure


pedrroeduardo
PRO

10 months ago

Thanks!! :D



arickprog
FREEOP

10 months ago

there we go


pedrroeduardo
PRO

10 months ago

Thank you. Could you please send me the crash logs so I can check the exact error? @𝓢𝓲𝓬𝓴𝓷𝓸𝓵𝔁


10 months ago

Hey, please change your Discord bot token immediately, it has been leaked as you have committed your .env file.


arickprog
FREEOP

10 months ago

I dont think i have it rn, But lemme check please


arickprog
FREEOP

10 months ago

Oh yeahhh


pedrroeduardo
PRO

10 months ago

You do have, just changed it. :)


arickprog
FREEOP

10 months ago

Alright


arickprog
FREEOP

10 months ago

so


arickprog
FREEOP

10 months ago

What do I do now?



arickprog
FREEOP

10 months ago

heres the link


arickprog
FREEOP

10 months ago

to the project


10 months ago

Please send the error logs, other users can't view your project as it is not public.


arickprog
FREEOP

10 months ago

How to send the logs?


pedrroeduardo
PRO

10 months ago

Screen Shot or just copy it


arickprog
FREEOP

10 months ago

Aright


arickprog
FREEOP

10 months ago

Starting Container

[dotenv@17.0.1] injecting env (0) from .env – [tip] encrypt with dotenvx: https://dotenvx.com

237 | shard.gotGuild(data.d.id);

238 | }

239 | });

240 |

241 | this._ws.on(WSWebSocketShardEvents.Ready, ({ data, shardId }) => {

242 | this.shards.get(shardId).onReadyPacket(data);

                        ^

error: An invalid token was provided.

code: "TokenInvalid"

  at /app/node_modules/discord.js/src/client/websocket/WebSocketManager.js:242:23

Bun v1.2.10 (Linux x64)

[dotenv@17.0.1] injecting env (0) from .env – [tip] encrypt with dotenvx: https://dotenvx.com

237 | shard.gotGuild(data.d.id);

238 | }

239 | });

240 |

241 | this._ws.on(WSWebSocketShardEvents.Ready, ({ data, shardId }) => {

242 | this.shards.get(shardId).onReadyPacket(data);

                        ^

error: An invalid token was provided.

code: "TokenInvalid"

  at /app/node_modules/discord.js/src/client/websocket/WebSocketManager.js:242:23

Bun v1.2.10 (Linux x64)

[dotenv@17.0.1] injecting env (0) from .env – [tip] encrypt with dotenvx: https://dotenvx.com

237 | shard.gotGuild(data.d.id);

238 | }

239 | });

240 |

241 | this._ws.on(WSWebSocketShardEvents.Ready, ({ data, shardId }) => {

242 | this.shards.get(shardId).onReadyPacket(data);

                        ^

error: An invalid token was provided.

code: "TokenInvalid"

  at /app/node_modules/discord.js/src/client/websocket/WebSocketManager.js:242:23

Bun v1.2.10 (Linux x64)

[dotenv@17.0.1] injecting env (0) from .env – [tip] encrypt with dotenvx: https://dotenvx.com

237 | shard.gotGuild(data.d.id);

238 | }

239 | });

240 |

241 | this._ws.on(WSWebSocketShardEvents.Ready, ({ data, shardId }) => {

242 | this.shards.get(shardId).onReadyPacket(data);

                        ^

error: An invalid token was provided.

code: "TokenInvalid"


arickprog
FREEOP

10 months ago

its saying invalid token


pedrroeduardo
PRO

10 months ago

The issue is that the bot can’t find the Discord token in the environment variables. That’s why you’re getting the error.


pedrroeduardo
PRO

10 months ago

Did you add the token correctly in the “Variables” section on Railway?


arickprog
FREEOP

10 months ago

I think so


arickprog
FREEOP

10 months ago

Yes


pedrroeduardo
PRO

10 months ago

Are you sure the token is Valid? Does the bot work Locally?


arickprog
FREEOP

10 months ago

I changed the token after this attempt of deploying.


arickprog
FREEOP

10 months ago

The token was completely different before this attempt


pedrroeduardo
PRO

10 months ago

The problem is that the variable is not being found. Either you haven’t set the variable in Railway, or you are using an invalid token.


arickprog
FREEOP

10 months ago

Okay, Can I have a minute to try again this whole thing?


pedrroeduardo
PRO

10 months ago

Yesssss :D


arickprog
FREEOP

10 months ago

Thank You


arickprog
FREEOP

10 months ago

@PrinhO_ uh is that how its done?

1393568951648256060


pedrroeduardo
PRO

10 months ago

Exactly, but again u leaked ur Token 🫠


arickprog
FREEOP

10 months ago

<:lfg:786867302888505364>


arickprog
FREEOP

10 months ago

sorry


arickprog
FREEOP

10 months ago

@PrinhO_ Thank you very much, It's now active. Thanks for the help


arickprog
FREEOP

10 months ago

It worked properly


pedrroeduardo
PRO

10 months ago

Amazinggg!!! Have fun 🤩


arickprog
FREEOP

10 months ago

Thanks!


10 months ago

!s


Status changed to Solved uxuz 10 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...