App can't hit .well_known, hits incorrect API endpoint, then logs out #3271

Closed
opened 2026-02-05 08:07:57 +03:00 by OVERLORD · 0 comments
Owner

Originally created by @ddshd on GitHub (May 25, 2024).

The bug

> 172.24.0.7 - - [21/May/2024:21:36:52 +0000] "GET /api/server-info HTTP/1.1" 404 131 "-" "Dart/3.3 (dart:io)" "174.206.38.109" "<domain>" "/api/server-info" "-" "-"
> 172.24.0.7 - - [21/May/2024:21:36:52 +0000] "GET /api/asset/device/bf001c7874f972a4ddfceb3774bdce8261c269ce025ed8fe3882800fbc68e5bf HTTP/1.1" 200 36458 "-" "Dart/3.3 (dart:io)" "174.206.38.109" "<domain>" "/api/asset/device/bf001c7874f972a4ddfceb3774bdce8261c269ce025ed8fe3882800fbc68e5bf" "immich" "192.168.176.3:3001"
> 172.24.0.7 - - [21/May/2024:21:36:55 +0000] "GET /api/socket.io/?EIO=4&transport=websocket HTTP/1.1" 101 362 "-" "Dart/3.3 (dart:io)" "174.206.38.109" "<domain>" "/api/socket.io/?EIO=4&transport=websocket" "immich" "192.168.176.3:3001"
> 172.24.0.7 - - [22/May/2024:04:00:36 +0000] "GET /api/server-info/ping HTTP/1.1" 200 14 "-" "Dart/3.3 (dart:io)" "<ip>" "<domain>" "/api/server-info/ping" "immich" "192.168.176.3:3001"
> 172.24.0.7 - - [22/May/2024:04:00:36 +0000] "GET /.well-known/immich HTTP/1.1" 200 56 "-" "Dart/3.3 (dart:io)" "<ip>" "<domain>" "/.well-known/immich" "immich" "192.168.176.3:3001"
> 172.24.0.7 - - [22/May/2024:05:00:42 +0000] "GET /user/me HTTP/1.1" 204 0 "-" "Dart/3.3 (dart:io)" "<ip>" "<domain>" "/user/me" "-" "-"
> 172.24.0.7 - - [22/May/2024:05:00:42 +0000] "POST /auth/logout HTTP/1.1" 204 0 "-" "Dart/3.3 (dart:io)" "<ip>" "<domain>" "/auth/logout" "-" "-"

204 response is due to my reverse proxy which is set to not send 404, 503 etc..

My /.well-known/immich response:

{
     "api": {
         "endpoint": "/api"
    }
}

image

The OS that Immich Server is running on

Ubuntu 20.04

Version of Immich Server

v1.105

Version of Immich Mobile App

v1.105.1

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

N/A

Your .env content

N/A

Reproduction steps

1.
2.
3.
...

Relevant log output

No response

Additional information

Discord discussion: https://discord.com/channels/979116623879368755/1049703391762321418

Originally created by @ddshd on GitHub (May 25, 2024). ### The bug ``` > 172.24.0.7 - - [21/May/2024:21:36:52 +0000] "GET /api/server-info HTTP/1.1" 404 131 "-" "Dart/3.3 (dart:io)" "174.206.38.109" "<domain>" "/api/server-info" "-" "-" > 172.24.0.7 - - [21/May/2024:21:36:52 +0000] "GET /api/asset/device/bf001c7874f972a4ddfceb3774bdce8261c269ce025ed8fe3882800fbc68e5bf HTTP/1.1" 200 36458 "-" "Dart/3.3 (dart:io)" "174.206.38.109" "<domain>" "/api/asset/device/bf001c7874f972a4ddfceb3774bdce8261c269ce025ed8fe3882800fbc68e5bf" "immich" "192.168.176.3:3001" > 172.24.0.7 - - [21/May/2024:21:36:55 +0000] "GET /api/socket.io/?EIO=4&transport=websocket HTTP/1.1" 101 362 "-" "Dart/3.3 (dart:io)" "174.206.38.109" "<domain>" "/api/socket.io/?EIO=4&transport=websocket" "immich" "192.168.176.3:3001" > 172.24.0.7 - - [22/May/2024:04:00:36 +0000] "GET /api/server-info/ping HTTP/1.1" 200 14 "-" "Dart/3.3 (dart:io)" "<ip>" "<domain>" "/api/server-info/ping" "immich" "192.168.176.3:3001" > 172.24.0.7 - - [22/May/2024:04:00:36 +0000] "GET /.well-known/immich HTTP/1.1" 200 56 "-" "Dart/3.3 (dart:io)" "<ip>" "<domain>" "/.well-known/immich" "immich" "192.168.176.3:3001" > 172.24.0.7 - - [22/May/2024:05:00:42 +0000] "GET /user/me HTTP/1.1" 204 0 "-" "Dart/3.3 (dart:io)" "<ip>" "<domain>" "/user/me" "-" "-" > 172.24.0.7 - - [22/May/2024:05:00:42 +0000] "POST /auth/logout HTTP/1.1" 204 0 "-" "Dart/3.3 (dart:io)" "<ip>" "<domain>" "/auth/logout" "-" "-" ``` `204` response is due to my reverse proxy which is set to not send `404`, `503` etc.. My `/.well-known/immich` response: ``` { "api": { "endpoint": "/api" } } ``` ![image](https://github.com/immich-app/immich/assets/17243132/56636edc-a4ab-4da0-b5ef-a14491a5737a) ### The OS that Immich Server is running on Ubuntu 20.04 ### Version of Immich Server v1.105 ### Version of Immich Mobile App v1.105.1 ### Platform with the issue - [ ] Server - [ ] Web - [X] Mobile ### Your docker-compose.yml content ```YAML N/A ``` ### Your .env content ```Shell N/A ``` ### Reproduction steps ```bash 1. 2. 3. ... ``` ### Relevant log output _No response_ ### Additional information Discord discussion: https://discord.com/channels/979116623879368755/1049703391762321418
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#3271