Skip to content

Conversation

paultranvan
Copy link
Contributor

@paultranvan paultranvan commented Feb 7, 2025

This is a good one: after a token refresh made by cozy-client, the handler onClientTokenRefreshed is called.
It is supposed to reconnect, as mentioned in the function comments. However, probably due to exhaustion or evil clipboard, the realtime was revoked rather than reconnected.

This was probably causing the realtime failures that we noticed before without spotting the source.

This is a good one: after a token refresh made by cozy-client, the
handler `onClientTokenRefreshed` is called.
It is supposed to reconnect, as mentioned in the function comments.
However, probably due to exhaustion or evil clipboard, the realtime was
**revoked** rather than reconnected.

This was probably causing the realtime failures that we noticed before
without spotting the source.
@paultranvan paultranvan force-pushed the fix-refreshtokenrealtime branch from 8a8bf11 to 97110b8 Compare February 7, 2025 17:12
@paultranvan paultranvan merged commit 7d7e331 into master Feb 10, 2025
2 checks passed
@paultranvan paultranvan deleted the fix-refreshtokenrealtime branch February 10, 2025 09:19
paultranvan added a commit to cozy/cozy-web-data-proxy that referenced this pull request Feb 11, 2025
Ldoppea added a commit to cozy/cozy-flagship-app that referenced this pull request Feb 11, 2025
`cozy-realtime` has been upgraded to `5.6.4` in order to retrieve a fix
on refreshToken mechanism that would break the realtime stream

Related PR: cozy/cozy-libs#2731
Ldoppea added a commit to cozy/cozy-flagship-app that referenced this pull request Feb 11, 2025
`cozy-realtime` has been upgraded to `5.6.4` in order to retrieve a fix
on refreshToken mechanism that would break the realtime stream

Related PR: cozy/cozy-libs#2731
Ldoppea added a commit to cozy/cozy-flagship-app that referenced this pull request Feb 12, 2025
`cozy-realtime` has been upgraded to `5.6.4` in order to retrieve a fix
on refreshToken mechanism that would break the realtime stream

Related PR: cozy/cozy-libs#2731
Ldoppea added a commit to cozy/cozy-flagship-app that referenced this pull request Feb 12, 2025
`cozy-realtime` has been upgraded to `5.6.4` in order to retrieve a fix
on refreshToken mechanism that would break the realtime stream

Related PR: cozy/cozy-libs#2731
paultranvan added a commit to cozy/cozy-drive that referenced this pull request May 20, 2025
paultranvan added a commit to cozy/cozy-drive that referenced this pull request May 20, 2025
zatteo pushed a commit to cozy/cozy-drive that referenced this pull request May 21, 2025
JF-Cozy pushed a commit to cozy/cozy-drive that referenced this pull request Jun 26, 2025
JF-Cozy pushed a commit to cozy/cozy-drive that referenced this pull request Jul 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants