Gelbpunkt / gateway-proxy

Drop-in proxy for Discord gateway connections and sessions allowing for zero downtime deploys
GNU Affero General Public License v3.0
88 stars 17 forks source link

Requesting guild chunks takes a lot of time since the switch to tokio-websockets library #19

Closed PredaaA closed 5 months ago

PredaaA commented 1 year ago

Since this commit https://github.com/Gelbpunkt/gateway-proxy/commit/e41d6a48054e824493f3893ba38b10a668afe432 I'm mostly unable to chunk guilds, using discord.py, I'm seeing "Shard ID %s timed out waiting for chunks for guild_id %s." For reference https://github.com/Rapptz/discord.py/blob/a5d03d4a1e6f4314518f6f55d8b7130ab3f4336e/discord/state.py#L577. I have tried to increase this manually to 1 minute but it still couldn't get chunks.

I have switched back to tokio_tungstenite on a fork and it's all working correctly.

Gelbpunkt commented 1 year ago

Can you provide logs please? I doubt that this is a websocket library issue.

Gelbpunkt commented 5 months ago

I believe this is a discord.py issue that was fixed in dpy 2.4.