File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
packages/common/src/client/sync/stream Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -396,9 +396,17 @@ export abstract class AbstractRemote {
396
396
syncQueueRequestSize , // The initial N amount
397
397
{
398
398
onError : ( e ) => {
399
- if ( e . message . includes ( 'Authorization failed' ) || e . message . includes ( 'PSYNC_S21' ) ) {
400
- this . invalidateCredentials ( ) ;
399
+ if ( e . message . includes ( 'PSYNC_' ) ) {
400
+ if ( e . message . includes ( 'PSYNC_S21' ) ) {
401
+ this . invalidateCredentials ( ) ;
402
+ }
403
+ } else {
404
+ // Possible that connection is with an older service, always invalidate to be safe
405
+ if ( e . message !== 'Closed. ' ) {
406
+ this . invalidateCredentials ( ) ;
407
+ }
401
408
}
409
+
402
410
// Don't log closed as an error
403
411
if ( e . message !== 'Closed. ' ) {
404
412
this . logger . error ( e ) ;
You can’t perform that action at this time.
0 commit comments