zkvvoob
zkvvoob
IImmich
Created by zkvvoob on 9/21/2023 in #help-desk-support
OIDC with Authelia / Error: Unexpected token e in JSON at position 0
Hello, I've migrated Immich to a new server. The database and photos have been imported successfully. The previous server used Authentik and used to work just fine. On this server I'd like to migrate to Authelia and Traefik. Redirect and certificates are working as expected. I can log in to Immich using my password. In Administration I've reset the OAuth settings to the ones configured in Authelia. When I click the "Login with OAuth" button on the login page, I'm redirected to Authelia, I can log in successfully, but after that I'm redirected to Immich's login page where there's a message saying "Internal Server Error". The Docker logs list the following:
[Nest] 193 - 09/21/2023, 9:41:46 PM ERROR [ExceptionsHandler] Unexpected token e in JSON at position 0
SyntaxError: Unexpected token e in JSON at position 0
at JSON.parse (<anonymous>)
at Client.userinfo (/app/immich/server/node_modules/openid-client/lib/client.js:1264:23)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async AuthService.callback (/app/immich/server/dist/domain/auth/auth.service.js:167:25)
at async OAuthController.callback (/app/immich/server/dist/immich/controllers/oauth.controller.js:39:38)
at async /app/immich/server/node_modules/@nestjs/core/router/router-execution-context.js:46:28
at async /app/immich/server/node_modules/@nestjs/core/router/router-proxy.js:9:17
[Nest] 193 - 09/21/2023, 9:41:46 PM ERROR [ExceptionsHandler] Unexpected token e in JSON at position 0
SyntaxError: Unexpected token e in JSON at position 0
at JSON.parse (<anonymous>)
at Client.userinfo (/app/immich/server/node_modules/openid-client/lib/client.js:1264:23)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async AuthService.callback (/app/immich/server/dist/domain/auth/auth.service.js:167:25)
at async OAuthController.callback (/app/immich/server/dist/immich/controllers/oauth.controller.js:39:38)
at async /app/immich/server/node_modules/@nestjs/core/router/router-execution-context.js:46:28
at async /app/immich/server/node_modules/@nestjs/core/router/router-proxy.js:9:17
I'll post the Authelia configuration in another message.
12 replies