The alternative would be to check for a response from {api_host}/server-info and otherwise try {api_host}/api/server-info - and exit with an error if neither works.
Sidenote, you don't actually need to explicitly activate the virtualenv, poetry run im ... works
Turns out that https://github.com/alvistar/immich-albums/issues/5 is also exactly the error you get when missing
/api
on your server URL. Clarifying the readme to hopefully help others.The alternative would be to check for a response from
{api_host}/server-info
and otherwise try{api_host}/api/server-info
- and exit with an error if neither works.Sidenote, you don't actually need to explicitly activate the virtualenv,
poetry run im ...
worksThanks again for an amazingly useful project!