ImmichI
Immich3y ago
ddshd

immich CLI import 500 internal server error

Error asset:  {
  file: '/mnt/b2/PPTestd/MP4/IMG_0037.MP4',
  reason: Error: Request failed with status code 500
      at createError (/usr/src/app/node_modules/axios/lib/core/createError.js:16:15)
      at settle (/usr/src/app/node_modules/axios/lib/core/settle.js:17:12)
      at IncomingMessage.handleStreamEnd (/usr/src/app/node_modules/axios/lib/adapters/http.js:322:11)
      at IncomingMessage.emit (node:events:525:35)
      at endReadableNT (node:internal/streams/readable:1359:12)
      at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
    config: {
      transitional: [Object],
      adapter: [Function: httpAdapter],
      transformRequest: [Array],
      transformResponse: [Array],
      timeout: 0,
      xsrfCookieName: 'XSRF-TOKEN',
      xsrfHeaderName: 'X-XSRF-TOKEN',
      maxContentLength: Infinity,
      maxBodyLength: Infinity,
      validateStatus: [Function: validateStatus],
      headers: [Object],
      method: 'post',
      maxRedirects: 0,
      url: 'http://immich-proxy:8080/api/asset/import',
      data: '{"deviceAssetId":"IMG_0037.MP4-2363969","deviceId":"CLI","assetType":"VIDEO","fileCreatedAt":"2023-01-07T05:22:16.474Z","fileModifiedAt":"2023-01-07T05:22:16.474Z","isFavorite":"false","fileExtension":".MP4","duration":"0:00:00.000000","isReadOnly":"true","assetPath":"/mnt/b2/PPTestd/MP4/IMG_0037.MP4"}'
    },
  response: { statusCode: 500, message: 'Internal server error' }
}


Getting this error for all the files when imported using the CLI (from within immich-server)

immich upload --key key --server http://immich-proxy:8080/api -r /mnt/b2/PPTestd/ --import
Was this page helpful?