Gateway doesn't reject an empty token

(#4479) Bug Open: Needs triage

Reproduction steps

  1. Connect to the gateway.
  2. Wait for Hello event.
  3. Send Identify but with the token set to an empty string.
(...And optionally send heartbeats in the heartbeat interval if you want to stay connected.)

Expected behaviour

The gateway should close the connection with code 4004 and "Invalid token".

Actual behaviour

The gateway doesn't respond to the Identify at all but does respond to heartbeats with HeartbeatAck (as expected). This is the same behavior as if Fluxer is currently down and the gateway is just keeping connections alive but not letting anyone identify.

Platform

API

Evidence

https://gist.github.com/PilkeySEK/60a9cb78b1b7c5100621577bb694a0e8 Notable lines are:
  • 60: Hello event received
  • 62: Sending Identify
  • 94: Sending Heartbeat
  • 138: Receiving HeartbeatAck

Comments

Sign in with Fluxer to comment and vote.

No comments yet.