Discord connection issues
tornelliotavio
PROOP

4 months ago

I host my bot within railway for some time, and today(or yesterday depending on the timezone) it simply stopped responding, I tried to restart and it got stuck in the logging in state.

Deployment id:

24268d0a-8b38-4409-943c-a7ba2443815c

23 Replies

4 months ago

By restart do you mean redeploying it? Can you share some logs?


tornelliotavio
PROOP

4 months ago

Yes, reseploying and restarting too


tornelliotavio
PROOP

4 months ago

Deploy logs you mean?


tornelliotavio
PROOP

4 months ago

If I change to metal will static outbound IP change?


4 months ago

No, it will only change if you move your service region.


4 months ago

yes


tornelliotavio
PROOP

4 months ago

Starting Container

node index.js

[ENV] node version: v20.19.6

[ENV] discord.js version: 14.14.1

Welcome to SERVICE HANDLER /--/ By https://milrato.eu /--/ Discord: Tomato#6966

.------------------------------.

| Commands |

|------------------------------|

| Command | Load status |

|----------------|-------------|

| admin.js | Ready |

| alllista.js | Ready |

| sendPayment.js | Ready |

| vip.js | Ready |

| ajuda.js | Ready |

| cotar.js | Ready |

| dados.js | Ready |

| lista.js | Ready |

| recarregar.js | Ready |

| usuarios.js | Ready |

'------------------------------'

npm warn config production Use --omit=dev instead.

[BOT] token length: 72

[BOT] token last 4: xxxx


discord-js-handler-template@1.0.0 start

[DJS DEBUG] Preparing to connect to the gateway...

Server running at http://localhost:8080

.---------------------------------.

| Events |

|---------------------------------|

| Events | Load status |

|-------------------|-------------|

| disconnect | Ready |

| error | Ready |

| ready | Ready |

| reconnecting | Ready |

| shardDisconnect | Ready |

| shardError | Ready |

| shardReconnecting | Ready |

| warn | Ready |

| messageCreate | Ready |

'---------------------------------'

┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓

┃ ┃

┃ Logging into the BOT... ┃

┃ ┃

┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛

Info: Connected...


tornelliotavio
PROOP

4 months ago

Maybe some railway network change?


tornelliotavio
PROOP

4 months ago

Tested something:

🧪 [NET-TEST] HTTPS status: 429

🧪 [NET-TEST] HTTPS body: {"code":0,"message":"You are being blocked from accessing our API temporarily due to exceeding global rate limits. Refer

🧪 [NET-TEST] WSS -> wss://gateway.discord.gg/?v=10&encoding=json

🧪 [NET-TEST] WSS open ✅

🧪 [NET-TEST] WSS message: {"t":null,"s":null,"op":10,"d":{"heartbeat_interval":41250,"_trace":["["gateway-prd-arm-us-east1-d-

🧪 [NET-TEST] WSS close: { code: 1005, reason: '' }


tornelliotavio
PROOP

4 months ago

This IP is being limited


tornelliotavio
PROOP

4 months ago

Static ips are shared right?


tornelliotavio
PROOP

4 months ago

Are there any options of dedicated ip?



Try adding an authorization header if you haven't yet.


tornelliotavio
PROOP

4 months ago

This test its, its not done multiple times, the bot it self uses a login auth


tornelliotavio
PROOP

4 months ago

?


According to Discord docs, if you have already provided an auth header, then running into a global rate limit is on the code side.

Rate limits are applied to a bot, not an IP if an auth header is valid.


tornelliotavio
PROOP

4 months ago

Hey??


4 months ago

There is not, Railway only offers static outbound IPs and there is no guarantee that the address assigned to your service is dedicated.


tornelliotavio
PROOP

4 months ago

But is there a option to change IP?


tornelliotavio
PROOP

4 months ago

If i change region will it use a different ip


4 months ago

Yes


tornelliotavio
PROOP

4 months ago

because I tried to change ip in the same region, and it used the same as last time


Welcome!

Sign in to your Railway account to join the conversation.

Loading...