SwiftcordApp/Swiftcord

Decoding errors prevent gateway connection

tonyarnold opened this issue · 0 comments

Describe the bug
Upon launching Swiftcord, I am presented with an endless "Establishing connection" view.

When I look at the logs (running in Xcode), I see a couple of decoding errors that seem to be stalling the process:

dataCorrupted(Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "t", intValue: nil)], debugDescription: "Cannot initialize GatewayEvent from invalid String value READY_SUPPLEMENTAL", underlyingError: nil))
[…]
dataCorrupted(Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "t", intValue: nil)], debugDescription: "Cannot initialize GatewayEvent from invalid String value SESSIONS_REPLACE", underlyingError: nil))
{"t":"SESSIONS_REPLACE","s":3,"op":0,"d":[{"status":"online","session_id":"my-session-id-is-here","client_info":{"version":0,"os":"osx","client":"desktop"},"activities":[]}]}