iOS - UnauthorizedException but logged in #5602

Closed
opened 2026-02-05 11:35:35 +03:00 by OVERLORD · 3 comments
Owner

Originally created by @maximilianvonamerongen on GitHub (Mar 11, 2025).

I have searched the existing issues, both open and closed, to make sure this is not a duplicate report.

  • Yes

The bug

Currently, I am facing some issues with Immich. I have noticed that when I try to log in via the iOS app, the logs show the message Authentication required.
However, the login itself is successful.

Login via Web with the same credential is running fine.

The OS that Immich Server is running on

Unraid 6.12.6

Version of Immich Server

1.129.0

Version of Immich Mobile App

1.129.0 build.197

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

Not available, settings just available on edit page. However I can provide screens if necessaray.

Your .env content

Not available, settings just available on edit page. However I can provide screens if necessaray.

Reproduction steps

Normal login process.

Relevant log output

[Nest] 210  - 03/11/2025, 10:58:18 AM   ERROR [Api:EventRepository] Websocket connection error: UnauthorizedException: Authentication required
UnauthorizedException: Authentication required
    at AuthService.validate (/app/immich/server/dist/services/auth.service.js:121:15)
    at AuthService.authenticate (/app/immich/server/dist/services/auth.service.js:89:36)
    at EventRepository.authFn (/app/immich/server/dist/app.module.js:111:75)
    at EventRepository.authenticate (/app/immich/server/dist/repositories/event.repository.js:146:21)
    at EventRepository.handleConnection (/app/immich/server/dist/repositories/event.repository.js:93:37)
    at Object.next (/app/immich/server/node_modules/@nestjs/websockets/web-sockets-controller.js:77:47)
    at ConsumerObserver.next (/app/immich/server/node_modules/rxjs/dist/cjs/internal/Subscriber.js:113:33)
    at Subscriber._next (/app/immich/server/node_modules/rxjs/dist/cjs/internal/Subscriber.js:80:26)
    at Subscriber.next (/app/immich/server/node_modules/rxjs/dist/cjs/internal/Subscriber.js:51:18)
    at /app/immich/server/node_modules/rxjs/dist/cjs/internal/operators/distinctUntilChanged.js:18:28
[Nest] 210  - 03/11/2025, 10:58:18 AM     LOG [Api:EventRepository] Websocket Disconnect: K8OrN1ID9JK4Q1CTAAAP

Additional information

No response

Originally created by @maximilianvonamerongen on GitHub (Mar 11, 2025). ### I have searched the existing issues, both open and closed, to make sure this is not a duplicate report. - [x] Yes ### The bug Currently, I am facing some issues with Immich. I have noticed that when I try to log in via the iOS app, the logs show the message Authentication required. However, the login itself is successful. Login via Web with the same credential is running fine. ### The OS that Immich Server is running on Unraid 6.12.6 ### Version of Immich Server 1.129.0 ### Version of Immich Mobile App 1.129.0 build.197 ### Platform with the issue - [ ] Server - [ ] Web - [x] Mobile ### Your docker-compose.yml content ```YAML Not available, settings just available on edit page. However I can provide screens if necessaray. ``` ### Your .env content ```Shell Not available, settings just available on edit page. However I can provide screens if necessaray. ``` ### Reproduction steps Normal login process. ### Relevant log output ```shell [Nest] 210 - 03/11/2025, 10:58:18 AM ERROR [Api:EventRepository] Websocket connection error: UnauthorizedException: Authentication required UnauthorizedException: Authentication required at AuthService.validate (/app/immich/server/dist/services/auth.service.js:121:15) at AuthService.authenticate (/app/immich/server/dist/services/auth.service.js:89:36) at EventRepository.authFn (/app/immich/server/dist/app.module.js:111:75) at EventRepository.authenticate (/app/immich/server/dist/repositories/event.repository.js:146:21) at EventRepository.handleConnection (/app/immich/server/dist/repositories/event.repository.js:93:37) at Object.next (/app/immich/server/node_modules/@nestjs/websockets/web-sockets-controller.js:77:47) at ConsumerObserver.next (/app/immich/server/node_modules/rxjs/dist/cjs/internal/Subscriber.js:113:33) at Subscriber._next (/app/immich/server/node_modules/rxjs/dist/cjs/internal/Subscriber.js:80:26) at Subscriber.next (/app/immich/server/node_modules/rxjs/dist/cjs/internal/Subscriber.js:51:18) at /app/immich/server/node_modules/rxjs/dist/cjs/internal/operators/distinctUntilChanged.js:18:28 [Nest] 210 - 03/11/2025, 10:58:18 AM LOG [Api:EventRepository] Websocket Disconnect: K8OrN1ID9JK4Q1CTAAAP ``` ### Additional information _No response_
Author
Owner

@alextran1502 commented on GitHub (Mar 11, 2025):

Are you login via local IP or something else?

@alextran1502 commented on GitHub (Mar 11, 2025): Are you login via local IP or something else?
Author
Owner

@maximilianvonamerongen commented on GitHub (Mar 11, 2025):

I just tested it with an iPhone via local IP and mobile network, and in both cases, the error message appeared. It's strange because I can use the app as usual. 😄 Means I can see all pictures etc. but the message for the websocket appears always in the logs. A restart of the server is not helping. A full log is also not shown more details.

@maximilianvonamerongen commented on GitHub (Mar 11, 2025): I just tested it with an iPhone via local IP and mobile network, and in both cases, the error message appeared. It's strange because I can use the app as usual. 😄 Means I can see all pictures etc. but the message for the websocket appears always in the logs. A restart of the server is not helping. A full log is also not shown more details.
Author
Owner

@maximilianvonamerongen commented on GitHub (Mar 26, 2025):

With version 130.1 issue is gone.

@maximilianvonamerongen commented on GitHub (Mar 26, 2025): With version 130.1 issue is gone.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#5602