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

Caching error #20

Closed cheesycod closed 12 months ago

cheesycod commented 12 months ago

Seems to have an issue with caching

Dec 06 03:33:01 hepatitis splashtail[609387]: Flare (0) [ERROR] [Discord] => Uncaught Exception TypeError: Cannot read properties of undefined (reading 'length') Dec 06 03:33:01 hepatitis splashtail[609387]: at GuildEmoji.equals (/home/antiraid/splashtail/staging/bot/node_modules/discord.js/src/structures/GuildEmoji.js:141:21) Dec 06 03:33:01 hepatitis splashtail[609387]: at GuildEmojisUpdateAction.handle (/home/antiraid/splashtail/staging/bot/node_modules/discord.js/src/client/actions/GuildEmojisUpdate.js:17:26) Dec 06 03:33:01 hepatitis splashtail[609387]: at Guild._patch (/home/antiraid/splashtail/staging/bot/node_modules/discord.js/src/structures/Guild.js:451:45) Dec 06 03:33:01 hepatitis splashtail[609387]: at module.exports [as GUILD_CREATE] (/home/antiraid/splashtail/staging/bot/node_modules/discord.js/src/client/websocket/handlers/GUILD_CREATE.js:11:13) Dec 06 03:33:01 hepatitis splashtail[609387]: at WebSocketManager.handlePacket (/home/antiraid/splashtail/staging/bot/node_modules/discord.js/src/client/websocket/WebSocketManager.js:355:31) Dec 06 03:33:01 hepatitis splashtail[609387]: at WebSocketManager. (/home/antiraid/splashtail/staging/bot/node_modules/discord.js/src/client/websocket/WebSocketManager.js:239:12) Dec 06 03:33:01 hepatitis splashtail[609387]: at WebSocketManager.emit (/home/antiraid/splashtail/staging/bot/node_modules/@vladfrangu/async_event_emitter/dist/index.js:282:31) Dec 06 03:33:01 hepatitis splashtail[609387]: at WebSocketShard. (/home/antiraid/splashtail/staging/bot/node_modules/@discordjs/ws/dist/index.js:1173:51) Dec 06 03:33:01 hepatitis splashtail[609387]: at WebSocketShard.emit (/home/antiraid/splashtail/staging/bot/node_modules/@vladfrangu/async_event_emitter/dist/index.js:282:31) Dec 06 03:33:01 hepatitis splashtail[609387]: at WebSocketShard.onMessage (/home/antiraid/splashtail/staging/bot/node_modules/@discordjs/ws/dist/index.js:988:14) Dec 06 03:33:01 hepatitis splashtail[609387]: Flare (0) [ERROR] [Discord] => Uncaught Exception TypeError: Cannot read properties of undefined (reading 'length') Dec 06 03:33:01 hepatitis splashtail[609387]: at GuildEmoji.equals (/home/antiraid/splashtail/staging/bot/node_modules/discord.js/src/structures/GuildEmoji.js:141:21)

Gelbpunkt commented 12 months ago

Seems like an issue with your discord.js and less of an issue in the proxy. Unless you can provide the specific payload I can't tell you more than this.

cheesycod commented 12 months ago

Ah ok (this is stock djs btw), another issue i faced was:

Dec 07 12:28:04 hepatitis splashtail[1797175]: Waffle (1) [DEBUG] [Discord] => [WS => Shard 2] Destroying shard Dec 07 12:28:04 hepatitis splashtail[1797175]: Reason: Zombie connection Dec 07 12:28:04 hepatitis splashtail[1797175]: Code: 4200 Dec 07 12:28:04 hepatitis splashtail[1797175]: Recover: Resume Dec 07 12:28:04 hepatitis splashtail[1797175]: Waffle (1) [DEBUG] [Discord] => [WS => Shard 2] Connection status during destroy Dec 07 12:28:04 hepatitis splashtail[1797175]: Needs closing: true Dec 07 12:28:04 hepatitis splashtail[1797175]: Ready state: 1 Dec 07 12:28:05 hepatitis splashtail[1797175]: Waffle (1) [DEBUG] [Discord] => [WS => Shard 2] Connecting to ws://127.0.0.1:7878?v=10&encoding=json

cheesycod commented 12 months ago

@Gelbpunkt