Android App "Server is not reachable" but works on browser
I have been using Immich just fine for the last year over Cloudflare tunnels and today the Android app stopped connecting. I tried reinstalling it and all it says is "Server is not reachable", but I can connect without any problems to my server though the web browser on the same device to the same URL.
This is the log:
Error while checking server availability:
FormatException: Unexpected character (at character 1)
<!DOCTYPE html>
^
0 _ChunkedJsonParser.fail (dart:convert-patch/convert_patch.dart:1463)
1 _ChunkedJsonParser.parseNumber (dart:convert-patch/convert_patch.dart:1329)
2 _ChunkedJsonParser.parse (dart:convert-patch/convert_patch.dart:931)
3 _parseJson (dart:convert-patch/convert_patch.dart:35)
4 JsonDecoder.convert (dart:convert/json.dart:641)
5 JsonCodec.decode (dart:convert/json.dart:223)
6 ApiClient.deserialize.<anonymous closure> (package:openapi/api_client.dart:158)
7 compute.<anonymous closure> (package:flutter/src/foundation/_isolates_io.dart:23)
8 _RemoteRunner._run (dart:isolate:1116)
9 _RemoteRunner._remoteExecute (dart:isolate:1110)
10 _delayEntrypointInvocation.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:317)
11 _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:193)
- I have allowed self-signed certs just in case.
- I have restarted the server.
- Both the app and the server are on v1.138.0
This is the log:
Error while checking server availability:
FormatException: Unexpected character (at character 1)
<!DOCTYPE html>
^
0 _ChunkedJsonParser.fail (dart:convert-patch/convert_patch.dart:1463)
1 _ChunkedJsonParser.parseNumber (dart:convert-patch/convert_patch.dart:1329)
2 _ChunkedJsonParser.parse (dart:convert-patch/convert_patch.dart:931)
3 _parseJson (dart:convert-patch/convert_patch.dart:35)
4 JsonDecoder.convert (dart:convert/json.dart:641)
5 JsonCodec.decode (dart:convert/json.dart:223)
6 ApiClient.deserialize.<anonymous closure> (package:openapi/api_client.dart:158)
7 compute.<anonymous closure> (package:flutter/src/foundation/_isolates_io.dart:23)
8 _RemoteRunner._run (dart:isolate:1116)
9 _RemoteRunner._remoteExecute (dart:isolate:1110)
10 _delayEntrypointInvocation.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:317)
11 _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:193)