2 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
2 months ago
By restart do you mean redeploying it? Can you share some logs?
2 months ago
No, it will only change if you move your service region.
2 months ago
yes
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=devinstead.
[BOT] token length: 72
[BOT] token last 4: xxxxdiscord-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…
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":{"heartbeatinterval":41250,"trace":["[\"gateway-prd-arm-us-east1-d-
🧪 [NET-TEST] WSS close: { code: 1005, reason: '' }
2 months ago
2 months ago
Try adding an authorization header if you haven't yet.
This test its, its not done multiple times, the bot it self uses a login auth
2 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.
2 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.
2 months ago
Yes
because I tried to change ip in the same region, and it used the same as last time