simulot / immich-go

An alternative to the immich-CLI command that doesn't depend on nodejs installation. It tries its best for importing google photos takeout archives.
GNU Affero General Public License v3.0
1.48k stars 47 forks source link

Program errors out due to no ping API response despite API responding #393

Closed aestellic closed 1 month ago

aestellic commented 1 month ago
➜  ./immich-go -server http://umbrel.local:2283 -key <redacted> -skip-verify-ssl upload -exclude-files=backup/ -exclude-files=draft/ -dry-run -google-photos -keep-untitled-albums /mnt/2tb/Backups/Photos/takeout-*.zip
immich-go  0.20.1, commit 9a48344615138c11f637b952be15bde8711a2892, built at 2024-07-16T17:27:12Z
. _ _  _ _ . _|_     _  _ 
|| | || | ||(_| | ─ (_|(_)
            v 0.20.1 _)   

Check the log file:  /home/stella/.cache/immich-go/immich-go_2024-07-19_16-33-40.log
the ping API end point doesn't respond at this address: http://umbrel.local:2283/api/server-info/ping
➜  curl http://umbrel.local:2283/api/server-info/ping
{"res":"pong"}%

Accessing http://umbrel.local:2283/api/server-info/ping from curl returns {"res": "pong"}, so the API is accessible, yet immich-go errors due to not receiving a response from the API.

The log file does not provide any further information:

INFO | Connection to the server http://umbrel.local:2283 | time="2024-07-19T04:33.40 EDT"
INFO | the ping API end point doesn't respond at this address: http://umbrel.local:2283/api/server-info/ping | time="2024-07-19T04:33.40 EDT"
simulot commented 1 month ago

The exact error is hidden because it was confusing for novice users... And the trace starts right after the ping...

chengguangnan commented 1 month ago

I had the same problem today with version 0.21.1.

I guess this has not been released which is okay, I can work around.