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

iOS - UnauthorizedException but logged in #16801

Open
2 of 4 tasks
maximilianvonamerongen opened this issue Mar 11, 2025 · 2 comments
Open
2 of 4 tasks

iOS - UnauthorizedException but logged in #16801

maximilianvonamerongen opened this issue Mar 11, 2025 · 2 comments

Comments

@maximilianvonamerongen
Copy link

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

@alextran1502
Copy link
Contributor

Are you login via local IP or something else?

@maximilianvonamerongen
Copy link
Author

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.

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

No branches or pull requests

2 participants