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.91k stars 55 forks source link

Server error - unexpected response #452

Closed Soda47 closed 3 months ago

Soda47 commented 3 months ago

Hi everybody,

I want to import my pictures using immich-go but I get an the error : "unexpected response from server"

I'm running Ubuntu 24.04 und my command is like this : ./immich-go -server=https://192.168.178.20:7202 -key=***** upload -date 2019-07 {/media/myuser/mydrive/pictures}

When I enter the following adress in my browser https://192.168.178.20:7202/user-settings?isOpen=api-keys, I see a message "response pong". I guess then that the server works.

So I don't understand the problem ? What am I missing ?

Thanks for the support

simulot commented 3 months ago

The log should show it can't find the the server at https://192.168.178.20:7202/api. Immich-go expect to find the API at the url of the WEB page + /api

Apparently the API is at https://192.168.178.20:7202 You can either:

Soda47 commented 3 months ago

Merci Jean-Francois pour les explications,

I'll try that at home.

Have a nice day

Soda47 commented 3 months ago

So I tested and found some things. The correct adress for me is https://192.168.178.20:7202/api/server-info/ping and in my browser, I see the response pong.

I wanted to use immich-go directly on my server but I still can't make if find the server.

However, I tested it on another machine and it works there.

simulot commented 3 months ago

When using the -server=URL, the API is found at URL+"/api'" When using the -api=URL, the URL is used as provided.