API Key Error attempting to use CLI upload

immich upload --key <key> --server 192.168.1.114:2283/api --recursive /mnt/dataZFS/pictures --album

results in the output:

Checking connectivity with Immich instance...
Server status: OK
Checking credentials...
Login status: OK
Successful authentication for user <user@email.com>
Error logging in - check api key

If I type a deliberately incorrect API key, I get a different output (no "successful authentication" message):

connectivity with Immich instance...
Server status: OK
Checking credentials...
Error logging in - check api key

Any idea what I am doing wrong that could cause this to fail even with a correct API key?
Was this page helpful?