I keep getting 404 on the API and I can't upload via the immich CLI — I'm using the latest immich version. The web UI and the mobile app work normally and I can upload through those respectively, but when I use the CLI it responds with 404 for /api and other /api/[...] routes
Here is the command I'm running:
immich upload -r -A "Edited Photos" .
And the output is very long (node fetch object) but the gist of it is:
node:internal/process/promises:289
triggerUncaughtException(err, true /* fromPromise */);
^
AxiosError: Request failed with status code 404
at settle (/Users/tjs/Library/pnpm/global/5/.pnpm/[email protected]/node_modules/axios/dist/node/axios.cjs:1967:12)
at IncomingMessage.handleStreamEnd (/Users/tjs/Library/pnpm/global/5/.pnpm/[email protected]/node_modules/axios/dist/node/axios.cjs:3066:11)
at IncomingMessage.emit (node:events:531:35)
at endReadableNT (node:internal/streams/readable:1696:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
at Axios.request (/Users/tjs/Library/pnpm/global/5/.pnpm/[email protected]/node_modules/axios/dist/node/axios.cjs:3877:41)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Upload.run (/Users/tjs/Library/pnpm/global/5/.pnpm/@[email protected]/node_modules/@immich/cli/dist/src/commands/upload.js:52:33)
at async Command.<anonymous> (/Users/tjs/Library/pnpm/global/5/.pnpm/@[email protected]/node_modules/@immich/cli/dist/src/index.js:43:5) {
code: 'ERR_BAD_REQUEST',
config: {
transitional: {
silentJSONParsing: true,
forcedJSONParsing: true,
clarifyTimeoutError: false
},
adapter: [ 'xhr', 'http' ],
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
Immich CLI version 2.0.6, immich version 1.106.4, and http://localhost:8128/api returns 404 (cannot GET /api)
.