#API 404 error (v1.106)

1 messages · Page 1 of 1 (latest)

unkempt veldt
#

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)

coarse heartBOT
#

:wave: Hey @unkempt veldt,

Thanks for reaching out to us. Please follow the recommended actions below; this will help us be more effective in our support effort and leave more time for building Immich immich.

References

Checklist

  1. :ballot_box_with_check: I have verified I'm on the latest release(note that mobile app releases may take some time).
  2. :ballot_box_with_check: I have read applicable release notes.
  3. :ballot_box_with_check: I have reviewed the FAQs for known issues.
  4. :ballot_box_with_check: I have reviewed Github for known issues.
  5. :ballot_box_with_check: I have tried accessing Immich via local ip (without a custom reverse proxy).
  6. :blue_square: I have uploaded the relevant logs, docker compose, and .env files using the buttons below or the /upload command.
  7. :ballot_box_with_check: I have tried an incognito window, disabled extensions, cleared mobile app cache, logged out and back in, different browsers, etc. as applicable

(an item can be marked as "complete" by reacting with the appropriate number)

If this ticket can be closed you can use the /close command, and re-open it later if needed.

unkempt veldt
#

The WebUI is also working fine to upload as is the mobile app

coarse heartBOT
inner ice
#

You need to update the cli

unkempt veldt
#

@inner ice It's on the latest version

visual agate
#

You have the legacy version

#

Install the new version here https://www.npmjs.com/package/@immich/cli