#Shard closing randomly : Code 1006

1 messages · Page 1 of 1 (latest)

rugged raft
#

I see this error talked about in previous versions, all other people mention error code 1000 instead but I'm not sure if this is related? I looked up the code in the discord API but I see nothing, closest I could could is 1006X but it's all for unknown REST stuff it seems (https://discord.com/developers/docs/topics/opcodes-and-status-codes#json)

For context I was writing up some documentation for my code, left the bot running since I didn't think to stop it. Looked back an hour later and I saw the log. No interactions or events of any kind (bot is only in my one server), I checked it was online and operational and it was but then spat the same error right afterwards

No errors in REST server
No errors in Gateway server

steep dove
#

so that is the reason discord does not document it, it is already documented by the websocket RFC

rugged raft
#

Ah alright, any fix or do I not need to worry?

steep dove
#

I'd say don't worry about it, unless it starts to happen very often

rugged raft
#

It's a small bot just for testing so should be fine then, I don't plan to add full sharding for a while haha

steep dove
rugged raft
#

I'll see how it goes over the next few days. It's not uncommon my internet cuts out for a moment but I haven't seen any other libraries report on it so never knew it was an issue lol

steep dove