Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suspended connection goes to failed state on resume attempt #638

Open
mclark-ably opened this issue May 13, 2024 · 2 comments
Open

Suspended connection goes to failed state on resume attempt #638

mclark-ably opened this issue May 13, 2024 · 2 comments
Assignees
Labels
bug Something isn't working. It's clear that this does need to be fixed.

Comments

@mclark-ably
Copy link

mclark-ably commented May 13, 2024

Appears to be a regression since v1.2.15 where a clients connection fails when connectivity is restored after the client has gone to suspended state

Realtime Connection: closed Connection event: FAILED state=FAILED reason=[ErrorInfo :invalid connectionKey: . (See https://help.ably.io/error/80018 for help.) code=80018 invalid connection id (invalid format) statusCode=400]

in v1.2.14 this behaves as expected as per https://sdk.ably.com/builds/ably/specification/main/features/#RTN15g and https://sdk.ably.com/builds/ably/specification/main/features/#RTN15c

Connection event: CONNECTING state=CONNECTING reason=<nil>2024/05/13 12:04:42 [VERBOSE] Realtime Connection: received (action="connected", id="ruNl7HJn8g", details=&ably.connectionDetails{ClientID:"*", ConnectionKey:"108IqSz2gBbkBu!ruNl7HJn8giSf98t-13974b", MaxMessageSize:65536, MaxFrameSize:262144, MaxInboundRate:75, ConnectionStateTTL:120000000000, MaxIdleInterval:15000000000})
2024/05/13 12:04:42 [VERBOSE] connection readlimit set to 65536
Connection event: CONNECTED state=CONNECTED reason=[ErrorInfo :Unable to recover connection: not found (CqObEu_PIL6XXDjn) code=80008 unable to recover connection (connection expired) statusCode=400] See https://help.ably.io/error/80008

2024/05/13 12:04:57 [VERBOSE] Realtime Connection: received (action="heartbeat")
2024/05/13 12:05:12 [VERBOSE] Realtime Connection: received (action="heartbeat")
2024/05/13 12:05:27 [VERBOSE] Realtime Connection: received (action="heartbeat")
2024/05/13 12:05:42 [VERBOSE] Realtime Connection: received (action="heartbeat")

┆Issue is synchronized with this Jira Task by Unito

@VeskeR VeskeR added the bug Something isn't working. It's clear that this does need to be fixed. label May 14, 2024
@VeskeR
Copy link

VeskeR commented May 14, 2024

Copying steps to reproduce from slack conversation:

All I did was create a realtime connection, disconnect network for 2 minutes until connection state is suspended and then reconnect in both latest and 1.2.14. So a basic script with _, err := ably.NewRealtime(ably.WithKey(<API_KEY>),ably.WithLogLevel(4)) can reproduce

It seems related to no-connection-serial changes done in 1.2.15. We're working on a fix.

@sacOO7 sacOO7 self-assigned this May 14, 2024
@sacOO7
Copy link
Collaborator

sacOO7 commented May 16, 2024

Looking into it, expect update by next week 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working. It's clear that this does need to be fixed.
Development

No branches or pull requests

3 participants