Closed deiop closed 6 months ago
Does anything actually go wrong on the client with regards to viewing the shared link? The error you posted is from the websocket connection, which is expected to fail as the viewing user is not authenticated, but this should not affect the shared link content.
Hi bo0tzz - you are correct - shared link content is not affected, works.
Fixed
The bug
When sharing an album via link, CommunicationRespository throws Authentication required Exception
The OS that Immich Server is running on
Ubuntu 22.04.3 LTS
Version of Immich Server
1.84.0
Version of Immich Mobile App
1.84.0 108
Platform with the issue
Your docker-compose.yml content
Your .env content
Reproduction steps
Additional information
[Nest] 6 - 11/06/2023, 12:13:18 PM LOG [CommunicationRepository] Websocket Connect: DIEN7leiGuntS6GGAACf immich_server | [Nest] 6 - 11/06/2023, 12:13:18 PM ERROR [CommunicationRepository] Websocket connection error: UnauthorizedException: Authentication required immich_server | UnauthorizedException: Authentication required immich_server | at AuthService.validate (/usr/src/app/dist/domain/auth/auth.service.js:113:15) immich_server | at CommunicationRepository.handleConnection (/usr/src/app/dist/infra/repositories/communication.repository.js:30:49) immich_server | at Object.next (/usr/src/app/node_modules/@nestjs/websockets/web-sockets-controller.js:77:47) immich_server | at ConsumerObserver.next (/usr/src/app/node_modules/rxjs/dist/cjs/internal/Subscriber.js:113:33) immich_server | at Subscriber._next (/usr/src/app/node_modules/rxjs/dist/cjs/internal/Subscriber.js:80:26) immich_server | at Subscriber.next (/usr/src/app/node_modules/rxjs/dist/cjs/internal/Subscriber.js:51:18) immich_server | at /usr/src/app/node_modules/rxjs/dist/cjs/internal/operators/distinctUntilChanged.js:18:28 immich_server | at OperatorSubscriber._this._next (/usr/src/app/node_modules/rxjs/dist/cjs/internal/operators/OperatorSubscriber.js:33:21) immich_server | at Subscriber.next (/usr/src/app/node_modules/rxjs/dist/cjs/internal/Subscriber.js:51:18) immich_server | at /usr/src/app/node_modules/rxjs/dist/cjs/internal/Subject.js:69:34 immich_server | [Nest] 6 - 11/06/2023, 12:13:18 PM LOG [CommunicationRepository] Websocket Disconnect: DIEN7leiGuntS6GGAACf