Deployment getting crashed
arickprog
FREEOP

8 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

8 months ago

N/A


8 months ago

Hey, please elaborate more on it and provide logs.


pedrroeduardo
PRO

8 months ago

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


arickprog
FREEOP

8 months ago

sure


pedrroeduardo
PRO

8 months ago

Thanks!! :D



arickprog
FREEOP

8 months ago

there we go


pedrroeduardo
PRO

8 months ago

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


8 months ago

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


arickprog
FREEOP

8 months ago

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


arickprog
FREEOP

8 months ago

Oh yeahhh


pedrroeduardo
PRO

8 months ago

You do have, just changed it. :)


arickprog
FREEOP

8 months ago

Alright


arickprog
FREEOP

8 months ago

so


arickprog
FREEOP

8 months ago

What do I do now?



arickprog
FREEOP

8 months ago

heres the link


arickprog
FREEOP

8 months ago

to the project


8 months ago

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


arickprog
FREEOP

8 months ago

How to send the logs?


pedrroeduardo
PRO

8 months ago

Screen Shot or just copy it


arickprog
FREEOP

8 months ago

Aright


arickprog
FREEOP

8 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

8 months ago

its saying invalid token


pedrroeduardo
PRO

8 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

8 months ago

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


arickprog
FREEOP

8 months ago

I think so


arickprog
FREEOP

8 months ago

Yes


pedrroeduardo
PRO

8 months ago

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


arickprog
FREEOP

8 months ago

I changed the token after this attempt of deploying.


arickprog
FREEOP

8 months ago

The token was completely different before this attempt


pedrroeduardo
PRO

8 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

8 months ago

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


pedrroeduardo
PRO

8 months ago

Yesssss :D


arickprog
FREEOP

8 months ago

Thank You


arickprog
FREEOP

8 months ago

@PrinhO_ uh is that how its done?

1393568951648256000


pedrroeduardo
PRO

8 months ago

Exactly, but again u leaked ur Token 🫠


arickprog
FREEOP

8 months ago

<:lfg:786867302888505364>


arickprog
FREEOP

8 months ago

sorry


arickprog
FREEOP

8 months ago

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


arickprog
FREEOP

8 months ago

It worked properly


pedrroeduardo
PRO

8 months ago

Amazinggg!!! Have fun 🤩


arickprog
FREEOP

8 months ago

Thanks!


8 months ago

!s


Status changed to Solved uxuz 8 months ago


Loading...