Cli import tool failing import attempts #2104

Closed
opened 2026-02-05 05:09:06 +03:00 by OVERLORD · 0 comments
Owner

Originally created by @masn4747 on GitHub (Feb 2, 2024).

The bug

I have been attempting to import my photo library like I have a few times now. I have botched my app installs multiple times on Truenas scale. This time when trying to use the cli import tool to import again it is erroring out with a long line of errors. I tried understanding it but couldn't make sense of any of it.

The OS that Immich Server is running on

Truenas Scale

Version of Immich Server

v1.94.1

Version of Immich Mobile App

v1.93.2

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

unable to access yaml file from Truenas interface.

Your .env content

stock from Truenas

Reproduction steps

1. updated immich cli tool, node.js, and npm
2. used API Key and logged into cli instance in windows using instructions for cli tool and tried importing.
3. I used the following commands
immich login-key http://192.168.12.182:30041/api svdtRopSuDdmQyKrZDTEqDolfqGJJEakEiFgytDI
immich upload --dry-run --recursive D:\immich
immich upload --recursive D:\immich

...

Additional information

The dry run starts up just fine. There are a lot of pictures so I always quit out of it before it is done. When I try doing the acutal command without the dry run flag it errors out.

Here are the errors I received:

C:\Windows\System32>immich upload --recursive D:\photos
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ | 0% | ETA: 0s | 0/488.8 GB: D:\photos\2001\2001-08-03\Amy Robinson.jpg

node:internal/process/promises:289
triggerUncaughtException(err, true /* fromPromise */);
^
AxiosError: Request failed with status code 500
at settle (C:\Users\Mason\AppData\Roaming\npm\node_modules@immich\cli\node_modules\axios\dist\node\axios.cjs:1967:12)
at IncomingMessage.handleStreamEnd (C:\Users\Mason\AppData\Roaming\npm\node_modules@immich\cli\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 (C:\Users\Mason\AppData\Roaming\npm\node_modules@immich\cli\node_modules\axios\dist\node\axios.cjs:3877:41)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Upload.uploadAsset (C:\Users\Mason\AppData\Roaming\npm\node_modules@immich\cli\dist\src\commands\upload.js:155:21)
at async Upload.run (C:\Users\Mason\AppData\Roaming\npm\node_modules@immich\cli\dist\src\commands\upload.js:79:41)
at async Command. (C:\Users\Mason\AppData\Roaming\npm\node_modules@immich\cli\dist\src\index.js:43:5) {
code: 'ERR_BAD_RESPONSE',
config: {
transitional: {
silentJSONParsing: true,
forcedJSONParsing: true,
clarifyTimeoutError: false
},
adapter: [ 'xhr', 'http' ],
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: Infinity,
maxBodyLength: Infinity,
env: {
FormData: [Function: FormData] {
LINE_BREAK: '\r\n',
DEFAULT_CONTENT_TYPE: 'application/octet-stream'
},
Blob: [class Blob]
},
validateStatus: [Function: validateStatus],
headers: Object [AxiosHeaders] {
Accept: 'application/json, text/plain, /',
'Content-Type': 'multipart/form-data; boundary=--------------------------403194602116791681534902',
'x-api-key': 'svdtRopSuDdmQyKrZDTEqDolfqGJJEakEiFgytDI',
'User-Agent': 'axios/1.6.7',
'Content-Length': '2611196',
'Accept-Encoding': 'gzip, compress, deflate, br'
},
method: 'post',
maxRedirects: 0,
url: 'http://192.168.12.182:30041/api/asset/upload',
data: FormData {
_overheadLength: 716,
_valueLength: 79,
_valuesToMeasure: [
ReadStream {
fd: 3,
path: 'D:\photos\2001\2001-08-03\Amy Robinson.jpg',
flags: 'r',
mode: 438,
start: undefined,
end: Infinity,
pos: undefined,
bytesRead: 262144,
_events: {
close: undefined,
error: [Function (anonymous)],
data: [Function: bound ],
end: undefined,
readable: undefined,
[Symbol(kConstruct)]: undefined
},
_readableState: ReadableState {
highWaterMark: 65536,
buffer: [Array],
bufferIndex: 0,
length: 65536,
pipes: [],
awaitDrainWriters: null,
[Symbol(kState)]: 244850956
},
_maxListeners: undefined,
_eventsCount: 2,
emit: [Function (anonymous)],
[Symbol(kFs)]: {
appendFile: [Function: appendFile],
appendFileSync: [Function: appendFileSync],
access: [Function: access],
accessSync: [Function: accessSync],
chown: [Function: chown],
chownSync: [Function: chownSync],
chmod: [Function: chmod],
chmodSync: [Function: chmodSync],
close: [Function: close],
closeSync: [Function: closeSync],
copyFile: [Function: copyFile],
copyFileSync: [Function: copyFileSync],
cp: [Function: cp],
cpSync: [Function: cpSync],
createReadStream: [Function: createReadStream],
createWriteStream: [Function: createWriteStream],
exists: [Function: exists],
existsSync: [Function: existsSync],
fchown: [Function: fchown],
fchownSync: [Function: fchownSync],
fchmod: [Function: fchmod],
fchmodSync: [Function: fchmodSync],
fdatasync: [Function: fdatasync],
fdatasyncSync: [Function: fdatasyncSync],
fstat: [Function: fstat],
fstatSync: [Function: fstatSync],
fsync: [Function: fsync],
fsyncSync: [Function: fsyncSync],
ftruncate: [Function: ftruncate],
ftruncateSync: [Function: ftruncateSync],
futimes: [Function: futimes],
futimesSync: [Function: futimesSync],
lchown: [Function: lchown],
lchownSync: [Function: lchownSync],
lchmod: undefined,
lchmodSync: undefined,
link: [Function: link],
linkSync: [Function: linkSync],
lstat: [Function: lstat],
lstatSync: [Function: lstatSync],
lutimes: [Function: lutimes],
lutimesSync: [Function: lutimesSync],
mkdir: [Function: mkdir],
mkdirSync: [Function: mkdirSync],
mkdtemp: [Function: mkdtemp],
mkdtempSync: [Function: mkdtempSync],
open: [Function: open],
openSync: [Function: openSync],
openAsBlob: [Function: openAsBlob],
readdir: [Function: readdir],
readdirSync: [Function: readdirSync],
read: [Function: read],
readSync: [Function: readSync],
readv: [Function: readv],
readvSync: [Function: readvSync],
readFile: [Function: readFile],
readFileSync: [Function: readFileSync],
readlink: [Function: readlink],
readlinkSync: [Function: readlinkSync],
realpath: [Function],
realpathSync: [Function],
rename: [Function: rename],
renameSync: [Function: renameSync],
rm: [Function: rm],
rmSync: [Function: rmSync],
rmdir: [Function: rmdir],
rmdirSync: [Function: rmdirSync],
stat: [Function: stat],
statfs: [Function: statfs],
statSync: [Function: statSync],
statfsSync: [Function: statfsSync],
symlink: [Function: symlink],
symlinkSync: [Function: symlinkSync],
truncate: [Function: truncate],
truncateSync: [Function: truncateSync],
unwatchFile: [Function: unwatchFile],
unlink: [Function: unlink],
unlinkSync: [Function: unlinkSync],
utimes: [Function: utimes],
utimesSync: [Function: utimesSync],
watch: [Function: watch],
watchFile: [Function: watchFile],
writeFile: [Function: writeFile],
writeFileSync: [Function: writeFileSync],
write: [Function: write],
writeSync: [Function: writeSync],
writev: [Function: writev],
writevSync: [Function: writevSync],
Dirent: [class Dirent],
Stats: [Function: Stats],
ReadStream: [Getter/Setter],
WriteStream: [Getter/Setter],
FileReadStream: [Getter/Setter],
FileWriteStream: [Getter/Setter],
_toUnixTimestamp: [Function: toUnixTimestamp],
Dir: [class Dir],
opendir: [Function: opendir],
opendirSync: [Function: opendirSync],
F_OK: 0,
R_OK: 4,
W_OK: 2,
X_OK: 1,
constants: [Object: null prototype],
promises: [Getter]
},
[Symbol(kIsPerformingIO)]: false,
[Symbol(shapeMode)]: true,
[Symbol(kCapture)]: false
}
],
writable: true,
readable: true,
dataSize: 0,
maxDataSize: 2097152,
pauseStreams: true,
_released: true,
_streams: [
[Function: bound ],
'----------------------------403194602116791681534902\r\n' +
'Content-Disposition: form-data; name="deviceAssetId"\r\n' +
'\r\n',
'AmyRobinson.jpg-2610345',
[Function: bound ],
'----------------------------403194602116791681534902\r\n' +
'Content-Disposition: form-data; name="deviceId"\r\n' +
'\r\n',
'CLI',
[Function: bound ],
'----------------------------403194602116791681534902\r\n' +
'Content-Disposition: form-data; name="fileCreatedAt"\r\n' +
'\r\n',
'2023-10-12T17:50:19.171Z',
[Function: bound ],
'----------------------------403194602116791681534902\r\n' +
'Content-Disposition: form-data; name="fileModifiedAt"\r\n' +
'\r\n',
'2023-10-12T17:50:19.171Z',
[Function: bound ],
'----------------------------403194602116791681534902\r\n' +
'Content-Disposition: form-data; name="isFavorite"\r\n' +
'\r\n',
'false',
[Function: bound ]
],
_currentStream: DelayedStream {
source: ReadStream {
fd: 3,
path: 'D:\photos\2001\2001-08-03\Amy Robinson.jpg',
flags: 'r',
mode: 438,
start: undefined,
end: Infinity,
pos: undefined,
bytesRead: 262144,
_events: {
close: undefined,
error: [Function (anonymous)],
data: [Function: bound ],
end: undefined,
readable: undefined,
[Symbol(kConstruct)]: undefined
},
_readableState: ReadableState {
highWaterMark: 65536,
buffer: [Array],
bufferIndex: 0,
length: 65536,
pipes: [],
awaitDrainWriters: null,
[Symbol(kState)]: 244850956
},
_maxListeners: undefined,
_eventsCount: 2,
emit: [Function (anonymous)],
[Symbol(kFs)]: {
appendFile: [Function: appendFile],
appendFileSync: [Function: appendFileSync],
access: [Function: access],
accessSync: [Function: accessSync],
chown: [Function: chown],
chownSync: [Function: chownSync],
chmod: [Function: chmod],
chmodSync: [Function: chmodSync],
close: [Function: close],
closeSync: [Function: closeSync],
copyFile: [Function: copyFile],
copyFileSync: [Function: copyFileSync],
cp: [Function: cp],
cpSync: [Function: cpSync],
createReadStream: [Function: createReadStream],
createWriteStream: [Function: createWriteStream],
exists: [Function: exists],
existsSync: [Function: existsSync],
fchown: [Function: fchown],
fchownSync: [Function: fchownSync],
fchmod: [Function: fchmod],
fchmodSync: [Function: fchmodSync],
fdatasync: [Function: fdatasync],
fdatasyncSync: [Function: fdatasyncSync],
fstat: [Function: fstat],
fstatSync: [Function: fstatSync],
fsync: [Function: fsync],
fsyncSync: [Function: fsyncSync],
ftruncate: [Function: ftruncate],
ftruncateSync: [Function: ftruncateSync],
futimes: [Function: futimes],
futimesSync: [Function: futimesSync],
lchown: [Function: lchown],
lchownSync: [Function: lchownSync],
lchmod: undefined,
lchmodSync: undefined,
link: [Function: link],
linkSync: [Function: linkSync],
lstat: [Function: lstat],
lstatSync: [Function: lstatSync],
lutimes: [Function: lutimes],
lutimesSync: [Function: lutimesSync],
mkdir: [Function: mkdir],
mkdirSync: [Function: mkdirSync],
mkdtemp: [Function: mkdtemp],
mkdtempSync: [Function: mkdtempSync],
open: [Function: open],
openSync: [Function: openSync],
openAsBlob: [Function: openAsBlob],
readdir: [Function: readdir],
readdirSync: [Function: readdirSync],
read: [Function: read],
readSync: [Function: readSync],
readv: [Function: readv],
readvSync: [Function: readvSync],
readFile: [Function: readFile],
readFileSync: [Function: readFileSync],
readlink: [Function: readlink],
readlinkSync: [Function: readlinkSync],
realpath: [Function],
realpathSync: [Function],
rename: [Function: rename],
renameSync: [Function: renameSync],
rm: [Function: rm],
rmSync: [Function: rmSync],
rmdir: [Function: rmdir],
rmdirSync: [Function: rmdirSync],
stat: [Function: stat],
statfs: [Function: statfs],
statSync: [Function: statSync],
statfsSync: [Function: statfsSync],
symlink: [Function: symlink],
symlinkSync: [Function: symlinkSync],
truncate: [Function: truncate],
truncateSync: [Function: truncateSync],
unwatchFile: [Function: unwatchFile],
unlink: [Function: unlink],
unlinkSync: [Function: unlinkSync],
utimes: [Function: utimes],
utimesSync: [Function: utimesSync],
watch: [Function: watch],
watchFile: [Function: watchFile],
writeFile: [Function: writeFile],
writeFileSync: [Function: writeFileSync],
write: [Function: write],
writeSync: [Function: writeSync],
writev: [Function: writev],
writevSync: [Function: writevSync],
Dirent: [class Dirent],
Stats: [Function: Stats],
ReadStream: [Getter/Setter],
WriteStream: [Getter/Setter],
FileReadStream: [Getter/Setter],
FileWriteStream: [Getter/Setter],
_toUnixTimestamp: [Function: toUnixTimestamp],
Dir: [class Dir],
opendir: [Function: opendir],
opendirSync: [Function: opendirSync],
F_OK: 0,
R_OK: 4,
W_OK: 2,
X_OK: 1,
constants: [Object: null prototype],
promises: [Getter]
},
[Symbol(kIsPerformingIO)]: false,
[Symbol(shapeMode)]: true,
[Symbol(kCapture)]: false
},
dataSize: 0,
maxDataSize: Infinity,
pauseStream: true,
_maxDataSizeExceeded: false,
_released: true,
_bufferedEvents: [],
_events: [Object: null prototype] {
error: [ [Function: onerror], [Function (anonymous)] ],
end: [ [Function: bound ], [Function: cleanup] ],
data: [Function: ondata],
close: [Function: cleanup]
},
_eventsCount: 4
},
_insideLoop: false,
_pendingNext: false,
_boundary: '--------------------------403194602116791681534902',
_events: [Object: null prototype] {
end: [
[Function (anonymous)],
[Function: onend],
[Function: cleanup]
],
error: [
[Function: onerror],
[Function: onerror],
[Function: bound onceWrapper] {
listener: [Function (anonymous)]
}
],
close: [
[Function (anonymous)],
[Function: onclose],
[Function: cleanup],
[Function: cleanup]
],
data: [Function: ondata],
drain: [Function: ondrain]
},
_eventsCount: 5
}
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
error: [ [Function: onerror], [Function: handleRequestError] ],
socket: [Function: handleRequestSocket],
drain: [Function: ondrain],
close: [Function: cleanup],
finish: [Function: requestOnFinish]
},
_eventsCount: 5,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: false,
chunkedEncoding: false,
shouldKeepAlive: true,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
strictContentLength: false,
_contentLength: '2611196',
_hasBody: true,
_trailer: '',
finished: false,
_headerSent: true,
_closed: false,
_header: 'POST /api/asset/upload HTTP/1.1\r\n' +
'Accept: application/json, text/plain, /\r\n' +
'Content-Type: multipart/form-data; boundary=--------------------------403194602116791681534902\r\n' +
'x-api-key: svdtRopSuDdmQyKrZDTEqDolfqGJJEakEiFgytDI\r\n' +
'User-Agent: axios/1.6.7\r\n' +
'Content-Length: 2611196\r\n' +
'Accept-Encoding: gzip, compress, deflate, br\r\n' +
'Host: 192.168.12.182:30041\r\n' +
'Connection: keep-alive\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype] {
free: [Function (anonymous)],
newListener: [Function: maybeEnableKeylog]
},
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 80,
protocol: 'http:',
options: [Object: null prototype] {
keepAlive: true,
scheduling: 'lifo',
timeout: 5000,
noDelay: true,
path: null
},
requests: [Object: null prototype] {},
sockets: [Object: null prototype] {
'192.168.12.182:30041:': [
Socket {
connecting: false,
_hadError: false,
_parent: null,
_host: null,
_closeAfterHandlingError: false,
_events: [Object],
_readableState: [ReadableState],
_writableState: [WritableState],
allowHalfOpen: false,
_maxListeners: undefined,
_eventsCount: 6,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: null,
_server: null,
timeout: 5000,
parser: null,
_httpMessage: [Circular *1],
[Symbol(async_id_symbol)]: 77285,
[Symbol(kHandle)]: [TCP],
[Symbol(lastWriteQueueSize)]: 65536,
[Symbol(timeout)]: [Timeout],
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(shapeMode)]: true,
[Symbol(kCapture)]: false,
[Symbol(kSetNoDelay)]: true,
[Symbol(kSetKeepAlive)]: true,
[Symbol(kSetKeepAliveInitialDelay)]: 60,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0
}
]
},
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: true,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
[Symbol(shapeMode)]: false,
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
joinDuplicateHeaders: undefined,
path: '/api/asset/upload',
_ended: true,
res: IncomingMessage {
_events: {
close: undefined,
error: [Function: handleStreamError],
data: [Function: handleStreamData],
end: [ [Function: responseOnEnd], [Function: handleStreamEnd] ],
readable: undefined,
finish: undefined,
aborted: [Function: handlerStreamAborted]
},
_readableState: ReadableState {
highWaterMark: 16384,
buffer: [],
bufferIndex: 0,
length: 0,
pipes: [],
awaitDrainWriters: null,
[Symbol(kState)]: 194779004
},
_maxListeners: undefined,
socket: <ref *2> Socket {
connecting: false,
_hadError: false,
_parent: null,
_host: null,
_closeAfterHandlingError: false,
_events: {
close: [ [Function: onClose], [Function: socketCloseListener] ],
error: [Function: socketErrorListener],
prefinish: undefined,
finish: undefined,
drain: undefined,
data: undefined,
end: [Function: onReadableStreamEnd],
readable: undefined,
connect: undefined,
free: [Function: onFree],
timeout: [Function: onTimeout],
agentRemove: [Function: onRemove]
},
_readableState: ReadableState {
highWaterMark: 16384,
buffer: [],
bufferIndex: 0,
length: 0,
pipes: [],
awaitDrainWriters: null,
[Symbol(kState)]: 60303620
},
_writableState: WritableState {
highWaterMark: 16384,
length: 65536,
corked: 0,
onwrite: [Function: bound onwrite],
writelen: 65536,
bufferedIndex: 0,
pendingcb: 1,
[Symbol(kState)]: 118262020,
[Symbol(kBufferedValue)]: null,
[Symbol(kWriteCbValue)]: [Function: nop],
[Symbol(kAfterWriteTickInfoValue)]: null
},
allowHalfOpen: false,
_maxListeners: undefined,
_eventsCount: 6,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: null,
_server: null,
timeout: 5000,
parser: null,
_httpMessage: [Circular *1],
[Symbol(async_id_symbol)]: 77285,
[Symbol(kHandle)]: <ref *3> TCP {
reading: true,
onconnection: null,
[Symbol(owner_symbol)]: [Circular *2],
[Symbol(resource_symbol)]: ReusedHandle { type: 40, handle: [Circular *3] }
},
[Symbol(lastWriteQueueSize)]: 65536,
[Symbol(timeout)]: <ref *4> Timeout {
_idleTimeout: 5000,
_idlePrev: TimersList {
_idleNext: [Circular *4],
_idlePrev: [Circular *4],
expiry: 5165,
id: -9007199254740991,
msecs: 5000,
priorityQueuePosition: 1
},
_idleNext: TimersList {
_idleNext: [Circular *4],
_idlePrev: [Circular *4],
expiry: 5165,
id: -9007199254740991,
msecs: 5000,
priorityQueuePosition: 1
},
_idleStart: 4290,
_onTimeout: [Function: bound ],
_timerArgs: undefined,
_repeat: null,
_destroyed: false,
[Symbol(refed)]: false,
[Symbol(kHasPrimitive)]: false,
[Symbol(asyncId)]: 77279,
[Symbol(triggerId)]: 77277
},
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(shapeMode)]: true,
[Symbol(kCapture)]: false,
[Symbol(kSetNoDelay)]: true,
[Symbol(kSetKeepAlive)]: true,
[Symbol(kSetKeepAliveInitialDelay)]: 60,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0
},
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [
'X-Powered-By',
'Express',
'Content-Type',
'application/json; charset=utf-8',
'Content-Length',
'84',
'ETag',
'"54-sQojqNZnpXrSuerOtcfoJmKKJXs"',
'Date',
'Thu, 01 Feb 2024 23:47:04 GMT',
'Connection',
'keep-alive',
'Keep-Alive',
'timeout=5'
],
rawTrailers: [],
joinDuplicateHeaders: undefined,
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 500,
statusMessage: 'Internal Server Error',
client: <ref *2> Socket {
connecting: false,
_hadError: false,
_parent: null,
_host: null,
_closeAfterHandlingError: false,
_events: {
close: [ [Function: onClose], [Function: socketCloseListener] ],
error: [Function: socketErrorListener],
prefinish: undefined,
finish: undefined,
drain: undefined,
data: undefined,
end: [Function: onReadableStreamEnd],
readable: undefined,
connect: undefined,
free: [Function: onFree],
timeout: [Function: onTimeout],
agentRemove: [Function: onRemove]
},
_readableState: ReadableState {
highWaterMark: 16384,
buffer: [],
bufferIndex: 0,
length: 0,
pipes: [],
awaitDrainWriters: null,
[Symbol(kState)]: 60303620
},
_writableState: WritableState {
highWaterMark: 16384,
length: 65536,
corked: 0,
onwrite: [Function: bound onwrite],
writelen: 65536,
bufferedIndex: 0,
pendingcb: 1,
[Symbol(kState)]: 118262020,
[Symbol(kBufferedValue)]: null,
[Symbol(kWriteCbValue)]: [Function: nop],
[Symbol(kAfterWriteTickInfoValue)]: null
},
allowHalfOpen: false,
_maxListeners: undefined,
_eventsCount: 6,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: null,
_server: null,
timeout: 5000,
parser: null,
_httpMessage: [Circular *1],
[Symbol(async_id_symbol)]: 77285,
[Symbol(kHandle)]: <ref *3> TCP {
reading: true,
onconnection: null,
[Symbol(owner_symbol)]: [Circular *2],
[Symbol(resource_symbol)]: ReusedHandle { type: 40, handle: [Circular *3] }
},
[Symbol(lastWriteQueueSize)]: 65536,
[Symbol(timeout)]: <ref *4> Timeout {
_idleTimeout: 5000,
_idlePrev: TimersList {
_idleNext: [Circular *4],
_idlePrev: [Circular *4],
expiry: 5165,
id: -9007199254740991,
msecs: 5000,
priorityQueuePosition: 1
},
_idleNext: TimersList {
_idleNext: [Circular *4],
_idlePrev: [Circular *4],
expiry: 5165,
id: -9007199254740991,
msecs: 5000,
priorityQueuePosition: 1
},
_idleStart: 4290,
_onTimeout: [Function: bound ],
_timerArgs: undefined,
_repeat: null,
_destroyed: false,
[Symbol(refed)]: false,
[Symbol(kHasPrimitive)]: false,
[Symbol(asyncId)]: 77279,
[Symbol(triggerId)]: 77277
},
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(shapeMode)]: true,
[Symbol(kCapture)]: false,
[Symbol(kSetNoDelay)]: true,
[Symbol(kSetKeepAlive)]: true,
[Symbol(kSetKeepAliveInitialDelay)]: 60,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0
},
_consuming: false,
_dumped: false,
req: [Circular *1],
_eventsCount: 4,
[Symbol(shapeMode)]: true,
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: {
'x-powered-by': 'Express',
'content-type': 'application/json; charset=utf-8',
'content-length': '84',
etag: '"54-sQojqNZnpXrSuerOtcfoJmKKJXs"',
date: 'Thu, 01 Feb 2024 23:47:04 GMT',
connection: 'keep-alive',
'keep-alive': 'timeout=5'
},
[Symbol(kHeadersCount)]: 14,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0
},
aborted: false,
timeoutCb: [Function: emitRequestTimeout],
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: true,
host: '192.168.12.182',
protocol: 'http:',
[Symbol(shapeMode)]: false,
[Symbol(kCapture)]: false,
[Symbol(kBytesWritten)]: 0,
[Symbol(kNeedDrain)]: true,
[Symbol(corked)]: 0,
[Symbol(kChunkedBuffer)]: [],
[Symbol(kChunkedLength)]: 0,
[Symbol(kSocket)]: <ref *2> Socket {
connecting: false,
_hadError: false,
_parent: null,
_host: null,
_closeAfterHandlingError: false,
_events: {
close: [ [Function: onClose], [Function: socketCloseListener] ],
error: [Function: socketErrorListener],
prefinish: undefined,
finish: undefined,
drain: undefined,
data: undefined,
end: [Function: onReadableStreamEnd],
readable: undefined,
connect: undefined,
free: [Function: onFree],
timeout: [Function: onTimeout],
agentRemove: [Function: onRemove]
},
_readableState: ReadableState {
highWaterMark: 16384,
buffer: [],
bufferIndex: 0,
length: 0,
pipes: [],
awaitDrainWriters: null,
[Symbol(kState)]: 60303620
},
_writableState: WritableState {
highWaterMark: 16384,
length: 65536,
corked: 0,
onwrite: [Function: bound onwrite],
writelen: 65536,
bufferedIndex: 0,
pendingcb: 1,
[Symbol(kState)]: 118262020,
[Symbol(kBufferedValue)]: null,
[Symbol(kWriteCbValue)]: [Function: nop],
[Symbol(kAfterWriteTickInfoValue)]: null
},
allowHalfOpen: false,
_maxListeners: undefined,
_eventsCount: 6,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: null,
_server: null,
timeout: 5000,
parser: null,
_httpMessage: [Circular *1],
[Symbol(async_id_symbol)]: 77285,
[Symbol(kHandle)]: <ref *3> TCP {
reading: true,
onconnection: null,
[Symbol(owner_symbol)]: [Circular *2],
[Symbol(resource_symbol)]: ReusedHandle { type: 40, handle: [Circular *3] }
},
[Symbol(lastWriteQueueSize)]: 65536,
[Symbol(timeout)]: <ref *4> Timeout {
_idleTimeout: 5000,
_idlePrev: TimersList {
_idleNext: [Circular *4],
_idlePrev: [Circular *4],
expiry: 5165,
id: -9007199254740991,
msecs: 5000,
priorityQueuePosition: 1
},
_idleNext: TimersList {
_idleNext: [Circular *4],
_idlePrev: [Circular *4],
expiry: 5165,
id: -9007199254740991,
msecs: 5000,
priorityQueuePosition: 1
},
_idleStart: 4290,
_onTimeout: [Function: bound ],
_timerArgs: undefined,
_repeat: null,
_destroyed: false,
[Symbol(refed)]: false,
[Symbol(kHasPrimitive)]: false,
[Symbol(asyncId)]: 77279,
[Symbol(triggerId)]: 77277
},
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(shapeMode)]: true,
[Symbol(kCapture)]: false,
[Symbol(kSetNoDelay)]: true,
[Symbol(kSetKeepAlive)]: true,
[Symbol(kSetKeepAliveInitialDelay)]: 60,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0
},
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [ 'Accept', 'application/json, text/plain, /' ],
'content-type': [
'Content-Type',
'multipart/form-data; boundary=--------------------------403194602116791681534902'
],
'x-api-key': [ 'x-api-key', 'svdtRopSuDdmQyKrZDTEqDolfqGJJEakEiFgytDI' ],
'user-agent': [ 'User-Agent', 'axios/1.6.7' ],
'content-length': [ 'Content-Length', '2611196' ],
'accept-encoding': [ 'Accept-Encoding', 'gzip, compress, deflate, br' ],
host: [ 'Host', '192.168.12.182:30041' ]
},
[Symbol(errored)]: null,
[Symbol(kHighWaterMark)]: 16384,
[Symbol(kRejectNonStandardBodyWrites)]: false,
[Symbol(kUniqueHeaders)]: null
},
response: {
status: 500,
statusText: 'Internal Server Error',
headers: Object [AxiosHeaders] {
'x-powered-by': 'Express',
'content-type': 'application/json; charset=utf-8',
'content-length': '84',
etag: '"54-sQojqNZnpXrSuerOtcfoJmKKJXs"',
date: 'Thu, 01 Feb 2024 23:47:04 GMT',
connection: 'keep-alive',
'keep-alive': 'timeout=5'
},
config: {
transitional: {
silentJSONParsing: true,
forcedJSONParsing: true,
clarifyTimeoutError: false
},
adapter: [ 'xhr', 'http' ],
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: Infinity,
maxBodyLength: Infinity,
env: {
FormData: [Function: FormData] {
LINE_BREAK: '\r\n',
DEFAULT_CONTENT_TYPE: 'application/octet-stream'
},
Blob: [class Blob]
},
validateStatus: [Function: validateStatus],
headers: Object [AxiosHeaders] {
Accept: 'application/json, text/plain, /',
'Content-Type': 'multipart/form-data; boundary=--------------------------403194602116791681534902',
'x-api-key': 'svdtRopSuDdmQyKrZDTEqDolfqGJJEakEiFgytDI',
'User-Agent': 'axios/1.6.7',
'Content-Length': '2611196',
'Accept-Encoding': 'gzip, compress, deflate, br'
},
method: 'post',
maxRedirects: 0,
url: 'http://192.168.12.182:30041/api/asset/upload',
data: FormData {
_overheadLength: 716,
_valueLength: 79,
_valuesToMeasure: [
ReadStream {
fd: 3,
path: 'D:\photos\2001\2001-08-03\Amy Robinson.jpg',
flags: 'r',
mode: 438,
start: undefined,
end: Infinity,
pos: undefined,
bytesRead: 262144,
_events: [Object],
_readableState: [ReadableState],
_maxListeners: undefined,
_eventsCount: 2,
emit: [Function (anonymous)],
[Symbol(kFs)]: [Object],
[Symbol(kIsPerformingIO)]: false,
[Symbol(shapeMode)]: true,
[Symbol(kCapture)]: false
}
],
writable: true,
readable: true,
dataSize: 0,
maxDataSize: 2097152,
pauseStreams: true,
_released: true,
_streams: [
[Function: bound ],
'----------------------------403194602116791681534902\r\n' +
'Content-Disposition: form-data; name="deviceAssetId"\r\n' +
'\r\n',
'AmyRobinson.jpg-2610345',
[Function: bound ],
'----------------------------403194602116791681534902\r\n' +
'Content-Disposition: form-data; name="deviceId"\r\n' +
'\r\n',
'CLI',
[Function: bound ],
'----------------------------403194602116791681534902\r\n' +
'Content-Disposition: form-data; name="fileCreatedAt"\r\n' +
'\r\n',
'2023-10-12T17:50:19.171Z',
[Function: bound ],
'----------------------------403194602116791681534902\r\n' +
'Content-Disposition: form-data; name="fileModifiedAt"\r\n' +
'\r\n',
'2023-10-12T17:50:19.171Z',
[Function: bound ],
'----------------------------403194602116791681534902\r\n' +
'Content-Disposition: form-data; name="isFavorite"\r\n' +
'\r\n',
'false',
[Function: bound ]
],
_currentStream: DelayedStream {
source: ReadStream {
fd: 3,
path: 'D:\photos\2001\2001-08-03\Amy Robinson.jpg',
flags: 'r',
mode: 438,
start: undefined,
end: Infinity,
pos: undefined,
bytesRead: 262144,
_events: [Object],
_readableState: [ReadableState],
_maxListeners: undefined,
_eventsCount: 2,
emit: [Function (anonymous)],
[Symbol(kFs)]: [Object],
[Symbol(kIsPerformingIO)]: false,
[Symbol(shapeMode)]: true,
[Symbol(kCapture)]: false
},
dataSize: 0,
maxDataSize: Infinity,
pauseStream: true,
_maxDataSizeExceeded: false,
_released: true,
_bufferedEvents: [],
_events: [Object: null prototype] {
error: [Array],
end: [Array],
data: [Function: ondata],
close: [Function: cleanup]
},
_eventsCount: 4
},
_insideLoop: false,
_pendingNext: false,
_boundary: '--------------------------403194602116791681534902',
_events: [Object: null prototype] {
end: [
[Function (anonymous)],
[Function: onend],
[Function: cleanup]
],
error: [ [Function: onerror], [Function: onerror], [Function] ],
close: [
[Function (anonymous)],
[Function: onclose],
[Function: cleanup],
[Function: cleanup]
],
data: [Function: ondata],
drain: [Function: ondrain]
},
_eventsCount: 5
}
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
error: [ [Function: onerror], [Function: handleRequestError] ],
socket: [Function: handleRequestSocket],
drain: [Function: ondrain],
close: [Function: cleanup],
finish: [Function: requestOnFinish]
},
_eventsCount: 5,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: false,
chunkedEncoding: false,
shouldKeepAlive: true,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
strictContentLength: false,
_contentLength: '2611196',
_hasBody: true,
_trailer: '',
finished: false,
_headerSent: true,
_closed: false,
_header: 'POST /api/asset/upload HTTP/1.1\r\n' +
'Accept: application/json, text/plain, /\r\n' +
'Content-Type: multipart/form-data; boundary=--------------------------403194602116791681534902\r\n' +
'x-api-key: svdtRopSuDdmQyKrZDTEqDolfqGJJEakEiFgytDI\r\n' +
'User-Agent: axios/1.6.7\r\n' +
'Content-Length: 2611196\r\n' +
'Accept-Encoding: gzip, compress, deflate, br\r\n' +
'Host: 192.168.12.182:30041\r\n' +
'Connection: keep-alive\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype] {
free: [Function (anonymous)],
newListener: [Function: maybeEnableKeylog]
},
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 80,
protocol: 'http:',
options: [Object: null prototype] {
keepAlive: true,
scheduling: 'lifo',
timeout: 5000,
noDelay: true,
path: null
},
requests: [Object: null prototype] {},
sockets: [Object: null prototype] {
'192.168.12.182:30041:': [ [Socket] ]
},
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: true,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
[Symbol(shapeMode)]: false,
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
joinDuplicateHeaders: undefined,
path: '/api/asset/upload',
_ended: true,
res: IncomingMessage {
_events: {
close: undefined,
error: [Function: handleStreamError],
data: [Function: handleStreamData],
end: [ [Function: responseOnEnd], [Function: handleStreamEnd] ],
readable: undefined,
finish: undefined,
aborted: [Function: handlerStreamAborted]
},
_readableState: ReadableState {
highWaterMark: 16384,
buffer: [],
bufferIndex: 0,
length: 0,
pipes: [],
awaitDrainWriters: null,
[Symbol(kState)]: 194779004
},
_maxListeners: undefined,
socket: <ref *2> Socket {
connecting: false,
_hadError: false,
_parent: null,
_host: null,
_closeAfterHandlingError: false,
_events: {
close: [Array],
error: [Function: socketErrorListener],
prefinish: undefined,
finish: undefined,
drain: undefined,
data: undefined,
end: [Function: onReadableStreamEnd],
readable: undefined,
connect: undefined,
free: [Function: onFree],
timeout: [Function: onTimeout],
agentRemove: [Function: onRemove]
},
_readableState: ReadableState {
highWaterMark: 16384,
buffer: [],
bufferIndex: 0,
length: 0,
pipes: [],
awaitDrainWriters: null,
[Symbol(kState)]: 60303620
},
_writableState: WritableState {
highWaterMark: 16384,
length: 65536,
corked: 0,
onwrite: [Function: bound onwrite],
writelen: 65536,
bufferedIndex: 0,
pendingcb: 1,
[Symbol(kState)]: 118262020,
[Symbol(kBufferedValue)]: null,
[Symbol(kWriteCbValue)]: [Function: nop],
[Symbol(kAfterWriteTickInfoValue)]: null
},
allowHalfOpen: false,
_maxListeners: undefined,
_eventsCount: 6,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: null,
_server: null,
timeout: 5000,
parser: null,
_httpMessage: [Circular *1],
[Symbol(async_id_symbol)]: 77285,
[Symbol(kHandle)]: <ref *3> TCP {
reading: true,
onconnection: null,
[Symbol(owner_symbol)]: [Circular *2],
[Symbol(resource_symbol)]: [ReusedHandle]
},
[Symbol(lastWriteQueueSize)]: 65536,
[Symbol(timeout)]: <ref *4> Timeout {
_idleTimeout: 5000,
_idlePrev: [TimersList],
_idleNext: [TimersList],
_idleStart: 4290,
_onTimeout: [Function: bound ],
_timerArgs: undefined,
_repeat: null,
_destroyed: false,
[Symbol(refed)]: false,
[Symbol(kHasPrimitive)]: false,
[Symbol(asyncId)]: 77279,
[Symbol(triggerId)]: 77277
},
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(shapeMode)]: true,
[Symbol(kCapture)]: false,
[Symbol(kSetNoDelay)]: true,
[Symbol(kSetKeepAlive)]: true,
[Symbol(kSetKeepAliveInitialDelay)]: 60,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0
},
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [
'X-Powered-By',
'Express',
'Content-Type',
'application/json; charset=utf-8',
'Content-Length',
'84',
'ETag',
'"54-sQojqNZnpXrSuerOtcfoJmKKJXs"',
'Date',
'Thu, 01 Feb 2024 23:47:04 GMT',
'Connection',
'keep-alive',
'Keep-Alive',
'timeout=5'
],
rawTrailers: [],
joinDuplicateHeaders: undefined,
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 500,
statusMessage: 'Internal Server Error',
client: <ref *2> Socket {
connecting: false,
_hadError: false,
_parent: null,
_host: null,
_closeAfterHandlingError: false,
_events: {
close: [Array],
error: [Function: socketErrorListener],
prefinish: undefined,
finish: undefined,
drain: undefined,
data: undefined,
end: [Function: onReadableStreamEnd],
readable: undefined,
connect: undefined,
free: [Function: onFree],
timeout: [Function: onTimeout],
agentRemove: [Function: onRemove]
},
_readableState: ReadableState {
highWaterMark: 16384,
buffer: [],
bufferIndex: 0,
length: 0,
pipes: [],
awaitDrainWriters: null,
[Symbol(kState)]: 60303620
},
_writableState: WritableState {
highWaterMark: 16384,
length: 65536,
corked: 0,
onwrite: [Function: bound onwrite],
writelen: 65536,
bufferedIndex: 0,
pendingcb: 1,
[Symbol(kState)]: 118262020,
[Symbol(kBufferedValue)]: null,
[Symbol(kWriteCbValue)]: [Function: nop],
[Symbol(kAfterWriteTickInfoValue)]: null
},
allowHalfOpen: false,
_maxListeners: undefined,
_eventsCount: 6,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: null,
_server: null,
timeout: 5000,
parser: null,
_httpMessage: [Circular *1],
[Symbol(async_id_symbol)]: 77285,
[Symbol(kHandle)]: <ref *3> TCP {
reading: true,
onconnection: null,
[Symbol(owner_symbol)]: [Circular *2],
[Symbol(resource_symbol)]: [ReusedHandle]
},
[Symbol(lastWriteQueueSize)]: 65536,
[Symbol(timeout)]: <ref *4> Timeout {
_idleTimeout: 5000,
_idlePrev: [TimersList],
_idleNext: [TimersList],
_idleStart: 4290,
_onTimeout: [Function: bound ],
_timerArgs: undefined,
_repeat: null,
_destroyed: false,
[Symbol(refed)]: false,
[Symbol(kHasPrimitive)]: false,
[Symbol(asyncId)]: 77279,
[Symbol(triggerId)]: 77277
},
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(shapeMode)]: true,
[Symbol(kCapture)]: false,
[Symbol(kSetNoDelay)]: true,
[Symbol(kSetKeepAlive)]: true,
[Symbol(kSetKeepAliveInitialDelay)]: 60,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0
},
_consuming: false,
_dumped: false,
req: [Circular *1],
_eventsCount: 4,
[Symbol(shapeMode)]: true,
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: {
'x-powered-by': 'Express',
'content-type': 'application/json; charset=utf-8',
'content-length': '84',
etag: '"54-sQojqNZnpXrSuerOtcfoJmKKJXs"',
date: 'Thu, 01 Feb 2024 23:47:04 GMT',
connection: 'keep-alive',
'keep-alive': 'timeout=5'
},
[Symbol(kHeadersCount)]: 14,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0
},
aborted: false,
timeoutCb: [Function: emitRequestTimeout],
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: true,
host: '192.168.12.182',
protocol: 'http:',
[Symbol(shapeMode)]: false,
[Symbol(kCapture)]: false,
[Symbol(kBytesWritten)]: 0,
[Symbol(kNeedDrain)]: true,
[Symbol(corked)]: 0,
[Symbol(kChunkedBuffer)]: [],
[Symbol(kChunkedLength)]: 0,
[Symbol(kSocket)]: <ref *2> Socket {
connecting: false,
_hadError: false,
_parent: null,
_host: null,
_closeAfterHandlingError: false,
_events: {
close: [ [Function: onClose], [Function: socketCloseListener] ],
error: [Function: socketErrorListener],
prefinish: undefined,
finish: undefined,
drain: undefined,
data: undefined,
end: [Function: onReadableStreamEnd],
readable: undefined,
connect: undefined,
free: [Function: onFree],
timeout: [Function: onTimeout],
agentRemove: [Function: onRemove]
},
_readableState: ReadableState {
highWaterMark: 16384,
buffer: [],
bufferIndex: 0,
length: 0,
pipes: [],
awaitDrainWriters: null,
[Symbol(kState)]: 60303620
},
_writableState: WritableState {
highWaterMark: 16384,
length: 65536,
corked: 0,
onwrite: [Function: bound onwrite],
writelen: 65536,
bufferedIndex: 0,
pendingcb: 1,
[Symbol(kState)]: 118262020,
[Symbol(kBufferedValue)]: null,
[Symbol(kWriteCbValue)]: [Function: nop],
[Symbol(kAfterWriteTickInfoValue)]: null
},
allowHalfOpen: false,
_maxListeners: undefined,
_eventsCount: 6,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: null,
_server: null,
timeout: 5000,
parser: null,
_httpMessage: [Circular *1],
[Symbol(async_id_symbol)]: 77285,
[Symbol(kHandle)]: <ref *3> TCP {
reading: true,
onconnection: null,
[Symbol(owner_symbol)]: [Circular *2],
[Symbol(resource_symbol)]: ReusedHandle { type: 40, handle: [Circular *3] }
},
[Symbol(lastWriteQueueSize)]: 65536,
[Symbol(timeout)]: <ref *4> Timeout {
_idleTimeout: 5000,
_idlePrev: TimersList {
_idleNext: [Circular *4],
_idlePrev: [Circular *4],
expiry: 5165,
id: -9007199254740991,
msecs: 5000,
priorityQueuePosition: 1
},
_idleNext: TimersList {
_idleNext: [Circular *4],
_idlePrev: [Circular *4],
expiry: 5165,
id: -9007199254740991,
msecs: 5000,
priorityQueuePosition: 1
},
_idleStart: 4290,
_onTimeout: [Function: bound ],
_timerArgs: undefined,
_repeat: null,
_destroyed: false,
[Symbol(refed)]: false,
[Symbol(kHasPrimitive)]: false,
[Symbol(asyncId)]: 77279,
[Symbol(triggerId)]: 77277
},
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(shapeMode)]: true,
[Symbol(kCapture)]: false,
[Symbol(kSetNoDelay)]: true,
[Symbol(kSetKeepAlive)]: true,
[Symbol(kSetKeepAliveInitialDelay)]: 60,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0
},
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [ 'Accept', 'application/json, text/plain, /' ],
'content-type': [
'Content-Type',
'multipart/form-data; boundary=--------------------------403194602116791681534902'
],
'x-api-key': [ 'x-api-key', 'svdtRopSuDdmQyKrZDTEqDolfqGJJEakEiFgytDI' ],
'user-agent': [ 'User-Agent', 'axios/1.6.7' ],
'content-length': [ 'Content-Length', '2611196' ],
'accept-encoding': [ 'Accept-Encoding', 'gzip, compress, deflate, br' ],
host: [ 'Host', '192.168.12.182:30041' ]
},
[Symbol(errored)]: null,
[Symbol(kHighWaterMark)]: 16384,
[Symbol(kRejectNonStandardBodyWrites)]: false,
[Symbol(kUniqueHeaders)]: null
},
data: {
message: 'Failed to upload file',
error: 'Internal Server Error',
statusCode: 500
}
}
}

Node.js v21.6.1

C:\Windows\System32>

Originally created by @masn4747 on GitHub (Feb 2, 2024). ### The bug I have been attempting to import my photo library like I have a few times now. I have botched my app installs multiple times on Truenas scale. This time when trying to use the cli import tool to import again it is erroring out with a long line of errors. I tried understanding it but couldn't make sense of any of it. ### The OS that Immich Server is running on Truenas Scale ### Version of Immich Server v1.94.1 ### Version of Immich Mobile App v1.93.2 ### Platform with the issue - [X] Server - [ ] Web - [ ] Mobile ### Your docker-compose.yml content ```YAML unable to access yaml file from Truenas interface. ``` ### Your .env content ```Shell stock from Truenas ``` ### Reproduction steps ```bash 1. updated immich cli tool, node.js, and npm 2. used API Key and logged into cli instance in windows using instructions for cli tool and tried importing. 3. I used the following commands immich login-key http://192.168.12.182:30041/api svdtRopSuDdmQyKrZDTEqDolfqGJJEakEiFgytDI immich upload --dry-run --recursive D:\immich immich upload --recursive D:\immich ... ``` ### Additional information The dry run starts up just fine. There are a lot of pictures so I always quit out of it before it is done. When I try doing the acutal command without the dry run flag it errors out. Here are the errors I received: C:\Windows\System32>immich upload --recursive D:\photos ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ | 0% | ETA: 0s | 0/488.8 GB: D:\photos\2001\2001-08-03\Amy Robinson.jpg node:internal/process/promises:289 triggerUncaughtException(err, true /* fromPromise */); ^ AxiosError: Request failed with status code 500 at settle (C:\Users\Mason\AppData\Roaming\npm\node_modules\@immich\cli\node_modules\axios\dist\node\axios.cjs:1967:12) at IncomingMessage.handleStreamEnd (C:\Users\Mason\AppData\Roaming\npm\node_modules\@immich\cli\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 (C:\Users\Mason\AppData\Roaming\npm\node_modules\@immich\cli\node_modules\axios\dist\node\axios.cjs:3877:41) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Upload.uploadAsset (C:\Users\Mason\AppData\Roaming\npm\node_modules\@immich\cli\dist\src\commands\upload.js:155:21) at async Upload.run (C:\Users\Mason\AppData\Roaming\npm\node_modules\@immich\cli\dist\src\commands\upload.js:79:41) at async Command.<anonymous> (C:\Users\Mason\AppData\Roaming\npm\node_modules\@immich\cli\dist\src\index.js:43:5) { code: 'ERR_BAD_RESPONSE', config: { transitional: { silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false }, adapter: [ 'xhr', 'http' ], transformRequest: [ [Function: transformRequest] ], transformResponse: [ [Function: transformResponse] ], timeout: 0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: Infinity, maxBodyLength: Infinity, env: { FormData: [Function: FormData] { LINE_BREAK: '\r\n', DEFAULT_CONTENT_TYPE: 'application/octet-stream' }, Blob: [class Blob] }, validateStatus: [Function: validateStatus], headers: Object [AxiosHeaders] { Accept: 'application/json, text/plain, */*', 'Content-Type': 'multipart/form-data; boundary=--------------------------403194602116791681534902', 'x-api-key': 'svdtRopSuDdmQyKrZDTEqDolfqGJJEakEiFgytDI', 'User-Agent': 'axios/1.6.7', 'Content-Length': '2611196', 'Accept-Encoding': 'gzip, compress, deflate, br' }, method: 'post', maxRedirects: 0, url: 'http://192.168.12.182:30041/api/asset/upload', data: FormData { _overheadLength: 716, _valueLength: 79, _valuesToMeasure: [ ReadStream { fd: 3, path: 'D:\\photos\\2001\\2001-08-03\\Amy Robinson.jpg', flags: 'r', mode: 438, start: undefined, end: Infinity, pos: undefined, bytesRead: 262144, _events: { close: undefined, error: [Function (anonymous)], data: [Function: bound ], end: undefined, readable: undefined, [Symbol(kConstruct)]: undefined }, _readableState: ReadableState { highWaterMark: 65536, buffer: [Array], bufferIndex: 0, length: 65536, pipes: [], awaitDrainWriters: null, [Symbol(kState)]: 244850956 }, _maxListeners: undefined, _eventsCount: 2, emit: [Function (anonymous)], [Symbol(kFs)]: { appendFile: [Function: appendFile], appendFileSync: [Function: appendFileSync], access: [Function: access], accessSync: [Function: accessSync], chown: [Function: chown], chownSync: [Function: chownSync], chmod: [Function: chmod], chmodSync: [Function: chmodSync], close: [Function: close], closeSync: [Function: closeSync], copyFile: [Function: copyFile], copyFileSync: [Function: copyFileSync], cp: [Function: cp], cpSync: [Function: cpSync], createReadStream: [Function: createReadStream], createWriteStream: [Function: createWriteStream], exists: [Function: exists], existsSync: [Function: existsSync], fchown: [Function: fchown], fchownSync: [Function: fchownSync], fchmod: [Function: fchmod], fchmodSync: [Function: fchmodSync], fdatasync: [Function: fdatasync], fdatasyncSync: [Function: fdatasyncSync], fstat: [Function: fstat], fstatSync: [Function: fstatSync], fsync: [Function: fsync], fsyncSync: [Function: fsyncSync], ftruncate: [Function: ftruncate], ftruncateSync: [Function: ftruncateSync], futimes: [Function: futimes], futimesSync: [Function: futimesSync], lchown: [Function: lchown], lchownSync: [Function: lchownSync], lchmod: undefined, lchmodSync: undefined, link: [Function: link], linkSync: [Function: linkSync], lstat: [Function: lstat], lstatSync: [Function: lstatSync], lutimes: [Function: lutimes], lutimesSync: [Function: lutimesSync], mkdir: [Function: mkdir], mkdirSync: [Function: mkdirSync], mkdtemp: [Function: mkdtemp], mkdtempSync: [Function: mkdtempSync], open: [Function: open], openSync: [Function: openSync], openAsBlob: [Function: openAsBlob], readdir: [Function: readdir], readdirSync: [Function: readdirSync], read: [Function: read], readSync: [Function: readSync], readv: [Function: readv], readvSync: [Function: readvSync], readFile: [Function: readFile], readFileSync: [Function: readFileSync], readlink: [Function: readlink], readlinkSync: [Function: readlinkSync], realpath: [Function], realpathSync: [Function], rename: [Function: rename], renameSync: [Function: renameSync], rm: [Function: rm], rmSync: [Function: rmSync], rmdir: [Function: rmdir], rmdirSync: [Function: rmdirSync], stat: [Function: stat], statfs: [Function: statfs], statSync: [Function: statSync], statfsSync: [Function: statfsSync], symlink: [Function: symlink], symlinkSync: [Function: symlinkSync], truncate: [Function: truncate], truncateSync: [Function: truncateSync], unwatchFile: [Function: unwatchFile], unlink: [Function: unlink], unlinkSync: [Function: unlinkSync], utimes: [Function: utimes], utimesSync: [Function: utimesSync], watch: [Function: watch], watchFile: [Function: watchFile], writeFile: [Function: writeFile], writeFileSync: [Function: writeFileSync], write: [Function: write], writeSync: [Function: writeSync], writev: [Function: writev], writevSync: [Function: writevSync], Dirent: [class Dirent], Stats: [Function: Stats], ReadStream: [Getter/Setter], WriteStream: [Getter/Setter], FileReadStream: [Getter/Setter], FileWriteStream: [Getter/Setter], _toUnixTimestamp: [Function: toUnixTimestamp], Dir: [class Dir], opendir: [Function: opendir], opendirSync: [Function: opendirSync], F_OK: 0, R_OK: 4, W_OK: 2, X_OK: 1, constants: [Object: null prototype], promises: [Getter] }, [Symbol(kIsPerformingIO)]: false, [Symbol(shapeMode)]: true, [Symbol(kCapture)]: false } ], writable: true, readable: true, dataSize: 0, maxDataSize: 2097152, pauseStreams: true, _released: true, _streams: [ [Function: bound ], '----------------------------403194602116791681534902\r\n' + 'Content-Disposition: form-data; name="deviceAssetId"\r\n' + '\r\n', 'AmyRobinson.jpg-2610345', [Function: bound ], '----------------------------403194602116791681534902\r\n' + 'Content-Disposition: form-data; name="deviceId"\r\n' + '\r\n', 'CLI', [Function: bound ], '----------------------------403194602116791681534902\r\n' + 'Content-Disposition: form-data; name="fileCreatedAt"\r\n' + '\r\n', '2023-10-12T17:50:19.171Z', [Function: bound ], '----------------------------403194602116791681534902\r\n' + 'Content-Disposition: form-data; name="fileModifiedAt"\r\n' + '\r\n', '2023-10-12T17:50:19.171Z', [Function: bound ], '----------------------------403194602116791681534902\r\n' + 'Content-Disposition: form-data; name="isFavorite"\r\n' + '\r\n', 'false', [Function: bound ] ], _currentStream: DelayedStream { source: ReadStream { fd: 3, path: 'D:\\photos\\2001\\2001-08-03\\Amy Robinson.jpg', flags: 'r', mode: 438, start: undefined, end: Infinity, pos: undefined, bytesRead: 262144, _events: { close: undefined, error: [Function (anonymous)], data: [Function: bound ], end: undefined, readable: undefined, [Symbol(kConstruct)]: undefined }, _readableState: ReadableState { highWaterMark: 65536, buffer: [Array], bufferIndex: 0, length: 65536, pipes: [], awaitDrainWriters: null, [Symbol(kState)]: 244850956 }, _maxListeners: undefined, _eventsCount: 2, emit: [Function (anonymous)], [Symbol(kFs)]: { appendFile: [Function: appendFile], appendFileSync: [Function: appendFileSync], access: [Function: access], accessSync: [Function: accessSync], chown: [Function: chown], chownSync: [Function: chownSync], chmod: [Function: chmod], chmodSync: [Function: chmodSync], close: [Function: close], closeSync: [Function: closeSync], copyFile: [Function: copyFile], copyFileSync: [Function: copyFileSync], cp: [Function: cp], cpSync: [Function: cpSync], createReadStream: [Function: createReadStream], createWriteStream: [Function: createWriteStream], exists: [Function: exists], existsSync: [Function: existsSync], fchown: [Function: fchown], fchownSync: [Function: fchownSync], fchmod: [Function: fchmod], fchmodSync: [Function: fchmodSync], fdatasync: [Function: fdatasync], fdatasyncSync: [Function: fdatasyncSync], fstat: [Function: fstat], fstatSync: [Function: fstatSync], fsync: [Function: fsync], fsyncSync: [Function: fsyncSync], ftruncate: [Function: ftruncate], ftruncateSync: [Function: ftruncateSync], futimes: [Function: futimes], futimesSync: [Function: futimesSync], lchown: [Function: lchown], lchownSync: [Function: lchownSync], lchmod: undefined, lchmodSync: undefined, link: [Function: link], linkSync: [Function: linkSync], lstat: [Function: lstat], lstatSync: [Function: lstatSync], lutimes: [Function: lutimes], lutimesSync: [Function: lutimesSync], mkdir: [Function: mkdir], mkdirSync: [Function: mkdirSync], mkdtemp: [Function: mkdtemp], mkdtempSync: [Function: mkdtempSync], open: [Function: open], openSync: [Function: openSync], openAsBlob: [Function: openAsBlob], readdir: [Function: readdir], readdirSync: [Function: readdirSync], read: [Function: read], readSync: [Function: readSync], readv: [Function: readv], readvSync: [Function: readvSync], readFile: [Function: readFile], readFileSync: [Function: readFileSync], readlink: [Function: readlink], readlinkSync: [Function: readlinkSync], realpath: [Function], realpathSync: [Function], rename: [Function: rename], renameSync: [Function: renameSync], rm: [Function: rm], rmSync: [Function: rmSync], rmdir: [Function: rmdir], rmdirSync: [Function: rmdirSync], stat: [Function: stat], statfs: [Function: statfs], statSync: [Function: statSync], statfsSync: [Function: statfsSync], symlink: [Function: symlink], symlinkSync: [Function: symlinkSync], truncate: [Function: truncate], truncateSync: [Function: truncateSync], unwatchFile: [Function: unwatchFile], unlink: [Function: unlink], unlinkSync: [Function: unlinkSync], utimes: [Function: utimes], utimesSync: [Function: utimesSync], watch: [Function: watch], watchFile: [Function: watchFile], writeFile: [Function: writeFile], writeFileSync: [Function: writeFileSync], write: [Function: write], writeSync: [Function: writeSync], writev: [Function: writev], writevSync: [Function: writevSync], Dirent: [class Dirent], Stats: [Function: Stats], ReadStream: [Getter/Setter], WriteStream: [Getter/Setter], FileReadStream: [Getter/Setter], FileWriteStream: [Getter/Setter], _toUnixTimestamp: [Function: toUnixTimestamp], Dir: [class Dir], opendir: [Function: opendir], opendirSync: [Function: opendirSync], F_OK: 0, R_OK: 4, W_OK: 2, X_OK: 1, constants: [Object: null prototype], promises: [Getter] }, [Symbol(kIsPerformingIO)]: false, [Symbol(shapeMode)]: true, [Symbol(kCapture)]: false }, dataSize: 0, maxDataSize: Infinity, pauseStream: true, _maxDataSizeExceeded: false, _released: true, _bufferedEvents: [], _events: [Object: null prototype] { error: [ [Function: onerror], [Function (anonymous)] ], end: [ [Function: bound ], [Function: cleanup] ], data: [Function: ondata], close: [Function: cleanup] }, _eventsCount: 4 }, _insideLoop: false, _pendingNext: false, _boundary: '--------------------------403194602116791681534902', _events: [Object: null prototype] { end: [ [Function (anonymous)], [Function: onend], [Function: cleanup] ], error: [ [Function: onerror], [Function: onerror], [Function: bound onceWrapper] { listener: [Function (anonymous)] } ], close: [ [Function (anonymous)], [Function: onclose], [Function: cleanup], [Function: cleanup] ], data: [Function: ondata], drain: [Function: ondrain] }, _eventsCount: 5 } }, request: <ref *1> ClientRequest { _events: [Object: null prototype] { error: [ [Function: onerror], [Function: handleRequestError] ], socket: [Function: handleRequestSocket], drain: [Function: ondrain], close: [Function: cleanup], finish: [Function: requestOnFinish] }, _eventsCount: 5, _maxListeners: undefined, outputData: [], outputSize: 0, writable: true, destroyed: false, _last: false, chunkedEncoding: false, shouldKeepAlive: true, maxRequestsOnConnectionReached: false, _defaultKeepAlive: true, useChunkedEncodingByDefault: true, sendDate: false, _removedConnection: false, _removedContLen: false, _removedTE: false, strictContentLength: false, _contentLength: '2611196', _hasBody: true, _trailer: '', finished: false, _headerSent: true, _closed: false, _header: 'POST /api/asset/upload HTTP/1.1\r\n' + 'Accept: application/json, text/plain, */*\r\n' + 'Content-Type: multipart/form-data; boundary=--------------------------403194602116791681534902\r\n' + 'x-api-key: svdtRopSuDdmQyKrZDTEqDolfqGJJEakEiFgytDI\r\n' + 'User-Agent: axios/1.6.7\r\n' + 'Content-Length: 2611196\r\n' + 'Accept-Encoding: gzip, compress, deflate, br\r\n' + 'Host: 192.168.12.182:30041\r\n' + 'Connection: keep-alive\r\n' + '\r\n', _keepAliveTimeout: 0, _onPendingData: [Function: nop], agent: Agent { _events: [Object: null prototype] { free: [Function (anonymous)], newListener: [Function: maybeEnableKeylog] }, _eventsCount: 2, _maxListeners: undefined, defaultPort: 80, protocol: 'http:', options: [Object: null prototype] { keepAlive: true, scheduling: 'lifo', timeout: 5000, noDelay: true, path: null }, requests: [Object: null prototype] {}, sockets: [Object: null prototype] { '192.168.12.182:30041:': [ Socket { connecting: false, _hadError: false, _parent: null, _host: null, _closeAfterHandlingError: false, _events: [Object], _readableState: [ReadableState], _writableState: [WritableState], allowHalfOpen: false, _maxListeners: undefined, _eventsCount: 6, _sockname: null, _pendingData: null, _pendingEncoding: '', server: null, _server: null, timeout: 5000, parser: null, _httpMessage: [Circular *1], [Symbol(async_id_symbol)]: 77285, [Symbol(kHandle)]: [TCP], [Symbol(lastWriteQueueSize)]: 65536, [Symbol(timeout)]: [Timeout], [Symbol(kBuffer)]: null, [Symbol(kBufferCb)]: null, [Symbol(kBufferGen)]: null, [Symbol(shapeMode)]: true, [Symbol(kCapture)]: false, [Symbol(kSetNoDelay)]: true, [Symbol(kSetKeepAlive)]: true, [Symbol(kSetKeepAliveInitialDelay)]: 60, [Symbol(kBytesRead)]: 0, [Symbol(kBytesWritten)]: 0 } ] }, freeSockets: [Object: null prototype] {}, keepAliveMsecs: 1000, keepAlive: true, maxSockets: Infinity, maxFreeSockets: 256, scheduling: 'lifo', maxTotalSockets: Infinity, totalSocketCount: 1, [Symbol(shapeMode)]: false, [Symbol(kCapture)]: false }, socketPath: undefined, method: 'POST', maxHeaderSize: undefined, insecureHTTPParser: undefined, joinDuplicateHeaders: undefined, path: '/api/asset/upload', _ended: true, res: IncomingMessage { _events: { close: undefined, error: [Function: handleStreamError], data: [Function: handleStreamData], end: [ [Function: responseOnEnd], [Function: handleStreamEnd] ], readable: undefined, finish: undefined, aborted: [Function: handlerStreamAborted] }, _readableState: ReadableState { highWaterMark: 16384, buffer: [], bufferIndex: 0, length: 0, pipes: [], awaitDrainWriters: null, [Symbol(kState)]: 194779004 }, _maxListeners: undefined, socket: <ref *2> Socket { connecting: false, _hadError: false, _parent: null, _host: null, _closeAfterHandlingError: false, _events: { close: [ [Function: onClose], [Function: socketCloseListener] ], error: [Function: socketErrorListener], prefinish: undefined, finish: undefined, drain: undefined, data: undefined, end: [Function: onReadableStreamEnd], readable: undefined, connect: undefined, free: [Function: onFree], timeout: [Function: onTimeout], agentRemove: [Function: onRemove] }, _readableState: ReadableState { highWaterMark: 16384, buffer: [], bufferIndex: 0, length: 0, pipes: [], awaitDrainWriters: null, [Symbol(kState)]: 60303620 }, _writableState: WritableState { highWaterMark: 16384, length: 65536, corked: 0, onwrite: [Function: bound onwrite], writelen: 65536, bufferedIndex: 0, pendingcb: 1, [Symbol(kState)]: 118262020, [Symbol(kBufferedValue)]: null, [Symbol(kWriteCbValue)]: [Function: nop], [Symbol(kAfterWriteTickInfoValue)]: null }, allowHalfOpen: false, _maxListeners: undefined, _eventsCount: 6, _sockname: null, _pendingData: null, _pendingEncoding: '', server: null, _server: null, timeout: 5000, parser: null, _httpMessage: [Circular *1], [Symbol(async_id_symbol)]: 77285, [Symbol(kHandle)]: <ref *3> TCP { reading: true, onconnection: null, [Symbol(owner_symbol)]: [Circular *2], [Symbol(resource_symbol)]: ReusedHandle { type: 40, handle: [Circular *3] } }, [Symbol(lastWriteQueueSize)]: 65536, [Symbol(timeout)]: <ref *4> Timeout { _idleTimeout: 5000, _idlePrev: TimersList { _idleNext: [Circular *4], _idlePrev: [Circular *4], expiry: 5165, id: -9007199254740991, msecs: 5000, priorityQueuePosition: 1 }, _idleNext: TimersList { _idleNext: [Circular *4], _idlePrev: [Circular *4], expiry: 5165, id: -9007199254740991, msecs: 5000, priorityQueuePosition: 1 }, _idleStart: 4290, _onTimeout: [Function: bound ], _timerArgs: undefined, _repeat: null, _destroyed: false, [Symbol(refed)]: false, [Symbol(kHasPrimitive)]: false, [Symbol(asyncId)]: 77279, [Symbol(triggerId)]: 77277 }, [Symbol(kBuffer)]: null, [Symbol(kBufferCb)]: null, [Symbol(kBufferGen)]: null, [Symbol(shapeMode)]: true, [Symbol(kCapture)]: false, [Symbol(kSetNoDelay)]: true, [Symbol(kSetKeepAlive)]: true, [Symbol(kSetKeepAliveInitialDelay)]: 60, [Symbol(kBytesRead)]: 0, [Symbol(kBytesWritten)]: 0 }, httpVersionMajor: 1, httpVersionMinor: 1, httpVersion: '1.1', complete: true, rawHeaders: [ 'X-Powered-By', 'Express', 'Content-Type', 'application/json; charset=utf-8', 'Content-Length', '84', 'ETag', '"54-sQojqNZnpXrSuerOtcfoJmKKJXs"', 'Date', 'Thu, 01 Feb 2024 23:47:04 GMT', 'Connection', 'keep-alive', 'Keep-Alive', 'timeout=5' ], rawTrailers: [], joinDuplicateHeaders: undefined, aborted: false, upgrade: false, url: '', method: null, statusCode: 500, statusMessage: 'Internal Server Error', client: <ref *2> Socket { connecting: false, _hadError: false, _parent: null, _host: null, _closeAfterHandlingError: false, _events: { close: [ [Function: onClose], [Function: socketCloseListener] ], error: [Function: socketErrorListener], prefinish: undefined, finish: undefined, drain: undefined, data: undefined, end: [Function: onReadableStreamEnd], readable: undefined, connect: undefined, free: [Function: onFree], timeout: [Function: onTimeout], agentRemove: [Function: onRemove] }, _readableState: ReadableState { highWaterMark: 16384, buffer: [], bufferIndex: 0, length: 0, pipes: [], awaitDrainWriters: null, [Symbol(kState)]: 60303620 }, _writableState: WritableState { highWaterMark: 16384, length: 65536, corked: 0, onwrite: [Function: bound onwrite], writelen: 65536, bufferedIndex: 0, pendingcb: 1, [Symbol(kState)]: 118262020, [Symbol(kBufferedValue)]: null, [Symbol(kWriteCbValue)]: [Function: nop], [Symbol(kAfterWriteTickInfoValue)]: null }, allowHalfOpen: false, _maxListeners: undefined, _eventsCount: 6, _sockname: null, _pendingData: null, _pendingEncoding: '', server: null, _server: null, timeout: 5000, parser: null, _httpMessage: [Circular *1], [Symbol(async_id_symbol)]: 77285, [Symbol(kHandle)]: <ref *3> TCP { reading: true, onconnection: null, [Symbol(owner_symbol)]: [Circular *2], [Symbol(resource_symbol)]: ReusedHandle { type: 40, handle: [Circular *3] } }, [Symbol(lastWriteQueueSize)]: 65536, [Symbol(timeout)]: <ref *4> Timeout { _idleTimeout: 5000, _idlePrev: TimersList { _idleNext: [Circular *4], _idlePrev: [Circular *4], expiry: 5165, id: -9007199254740991, msecs: 5000, priorityQueuePosition: 1 }, _idleNext: TimersList { _idleNext: [Circular *4], _idlePrev: [Circular *4], expiry: 5165, id: -9007199254740991, msecs: 5000, priorityQueuePosition: 1 }, _idleStart: 4290, _onTimeout: [Function: bound ], _timerArgs: undefined, _repeat: null, _destroyed: false, [Symbol(refed)]: false, [Symbol(kHasPrimitive)]: false, [Symbol(asyncId)]: 77279, [Symbol(triggerId)]: 77277 }, [Symbol(kBuffer)]: null, [Symbol(kBufferCb)]: null, [Symbol(kBufferGen)]: null, [Symbol(shapeMode)]: true, [Symbol(kCapture)]: false, [Symbol(kSetNoDelay)]: true, [Symbol(kSetKeepAlive)]: true, [Symbol(kSetKeepAliveInitialDelay)]: 60, [Symbol(kBytesRead)]: 0, [Symbol(kBytesWritten)]: 0 }, _consuming: false, _dumped: false, req: [Circular *1], _eventsCount: 4, [Symbol(shapeMode)]: true, [Symbol(kCapture)]: false, [Symbol(kHeaders)]: { 'x-powered-by': 'Express', 'content-type': 'application/json; charset=utf-8', 'content-length': '84', etag: '"54-sQojqNZnpXrSuerOtcfoJmKKJXs"', date: 'Thu, 01 Feb 2024 23:47:04 GMT', connection: 'keep-alive', 'keep-alive': 'timeout=5' }, [Symbol(kHeadersCount)]: 14, [Symbol(kTrailers)]: null, [Symbol(kTrailersCount)]: 0 }, aborted: false, timeoutCb: [Function: emitRequestTimeout], upgradeOrConnect: false, parser: null, maxHeadersCount: null, reusedSocket: true, host: '192.168.12.182', protocol: 'http:', [Symbol(shapeMode)]: false, [Symbol(kCapture)]: false, [Symbol(kBytesWritten)]: 0, [Symbol(kNeedDrain)]: true, [Symbol(corked)]: 0, [Symbol(kChunkedBuffer)]: [], [Symbol(kChunkedLength)]: 0, [Symbol(kSocket)]: <ref *2> Socket { connecting: false, _hadError: false, _parent: null, _host: null, _closeAfterHandlingError: false, _events: { close: [ [Function: onClose], [Function: socketCloseListener] ], error: [Function: socketErrorListener], prefinish: undefined, finish: undefined, drain: undefined, data: undefined, end: [Function: onReadableStreamEnd], readable: undefined, connect: undefined, free: [Function: onFree], timeout: [Function: onTimeout], agentRemove: [Function: onRemove] }, _readableState: ReadableState { highWaterMark: 16384, buffer: [], bufferIndex: 0, length: 0, pipes: [], awaitDrainWriters: null, [Symbol(kState)]: 60303620 }, _writableState: WritableState { highWaterMark: 16384, length: 65536, corked: 0, onwrite: [Function: bound onwrite], writelen: 65536, bufferedIndex: 0, pendingcb: 1, [Symbol(kState)]: 118262020, [Symbol(kBufferedValue)]: null, [Symbol(kWriteCbValue)]: [Function: nop], [Symbol(kAfterWriteTickInfoValue)]: null }, allowHalfOpen: false, _maxListeners: undefined, _eventsCount: 6, _sockname: null, _pendingData: null, _pendingEncoding: '', server: null, _server: null, timeout: 5000, parser: null, _httpMessage: [Circular *1], [Symbol(async_id_symbol)]: 77285, [Symbol(kHandle)]: <ref *3> TCP { reading: true, onconnection: null, [Symbol(owner_symbol)]: [Circular *2], [Symbol(resource_symbol)]: ReusedHandle { type: 40, handle: [Circular *3] } }, [Symbol(lastWriteQueueSize)]: 65536, [Symbol(timeout)]: <ref *4> Timeout { _idleTimeout: 5000, _idlePrev: TimersList { _idleNext: [Circular *4], _idlePrev: [Circular *4], expiry: 5165, id: -9007199254740991, msecs: 5000, priorityQueuePosition: 1 }, _idleNext: TimersList { _idleNext: [Circular *4], _idlePrev: [Circular *4], expiry: 5165, id: -9007199254740991, msecs: 5000, priorityQueuePosition: 1 }, _idleStart: 4290, _onTimeout: [Function: bound ], _timerArgs: undefined, _repeat: null, _destroyed: false, [Symbol(refed)]: false, [Symbol(kHasPrimitive)]: false, [Symbol(asyncId)]: 77279, [Symbol(triggerId)]: 77277 }, [Symbol(kBuffer)]: null, [Symbol(kBufferCb)]: null, [Symbol(kBufferGen)]: null, [Symbol(shapeMode)]: true, [Symbol(kCapture)]: false, [Symbol(kSetNoDelay)]: true, [Symbol(kSetKeepAlive)]: true, [Symbol(kSetKeepAliveInitialDelay)]: 60, [Symbol(kBytesRead)]: 0, [Symbol(kBytesWritten)]: 0 }, [Symbol(kOutHeaders)]: [Object: null prototype] { accept: [ 'Accept', 'application/json, text/plain, */*' ], 'content-type': [ 'Content-Type', 'multipart/form-data; boundary=--------------------------403194602116791681534902' ], 'x-api-key': [ 'x-api-key', 'svdtRopSuDdmQyKrZDTEqDolfqGJJEakEiFgytDI' ], 'user-agent': [ 'User-Agent', 'axios/1.6.7' ], 'content-length': [ 'Content-Length', '2611196' ], 'accept-encoding': [ 'Accept-Encoding', 'gzip, compress, deflate, br' ], host: [ 'Host', '192.168.12.182:30041' ] }, [Symbol(errored)]: null, [Symbol(kHighWaterMark)]: 16384, [Symbol(kRejectNonStandardBodyWrites)]: false, [Symbol(kUniqueHeaders)]: null }, response: { status: 500, statusText: 'Internal Server Error', headers: Object [AxiosHeaders] { 'x-powered-by': 'Express', 'content-type': 'application/json; charset=utf-8', 'content-length': '84', etag: '"54-sQojqNZnpXrSuerOtcfoJmKKJXs"', date: 'Thu, 01 Feb 2024 23:47:04 GMT', connection: 'keep-alive', 'keep-alive': 'timeout=5' }, config: { transitional: { silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false }, adapter: [ 'xhr', 'http' ], transformRequest: [ [Function: transformRequest] ], transformResponse: [ [Function: transformResponse] ], timeout: 0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: Infinity, maxBodyLength: Infinity, env: { FormData: [Function: FormData] { LINE_BREAK: '\r\n', DEFAULT_CONTENT_TYPE: 'application/octet-stream' }, Blob: [class Blob] }, validateStatus: [Function: validateStatus], headers: Object [AxiosHeaders] { Accept: 'application/json, text/plain, */*', 'Content-Type': 'multipart/form-data; boundary=--------------------------403194602116791681534902', 'x-api-key': 'svdtRopSuDdmQyKrZDTEqDolfqGJJEakEiFgytDI', 'User-Agent': 'axios/1.6.7', 'Content-Length': '2611196', 'Accept-Encoding': 'gzip, compress, deflate, br' }, method: 'post', maxRedirects: 0, url: 'http://192.168.12.182:30041/api/asset/upload', data: FormData { _overheadLength: 716, _valueLength: 79, _valuesToMeasure: [ ReadStream { fd: 3, path: 'D:\\photos\\2001\\2001-08-03\\Amy Robinson.jpg', flags: 'r', mode: 438, start: undefined, end: Infinity, pos: undefined, bytesRead: 262144, _events: [Object], _readableState: [ReadableState], _maxListeners: undefined, _eventsCount: 2, emit: [Function (anonymous)], [Symbol(kFs)]: [Object], [Symbol(kIsPerformingIO)]: false, [Symbol(shapeMode)]: true, [Symbol(kCapture)]: false } ], writable: true, readable: true, dataSize: 0, maxDataSize: 2097152, pauseStreams: true, _released: true, _streams: [ [Function: bound ], '----------------------------403194602116791681534902\r\n' + 'Content-Disposition: form-data; name="deviceAssetId"\r\n' + '\r\n', 'AmyRobinson.jpg-2610345', [Function: bound ], '----------------------------403194602116791681534902\r\n' + 'Content-Disposition: form-data; name="deviceId"\r\n' + '\r\n', 'CLI', [Function: bound ], '----------------------------403194602116791681534902\r\n' + 'Content-Disposition: form-data; name="fileCreatedAt"\r\n' + '\r\n', '2023-10-12T17:50:19.171Z', [Function: bound ], '----------------------------403194602116791681534902\r\n' + 'Content-Disposition: form-data; name="fileModifiedAt"\r\n' + '\r\n', '2023-10-12T17:50:19.171Z', [Function: bound ], '----------------------------403194602116791681534902\r\n' + 'Content-Disposition: form-data; name="isFavorite"\r\n' + '\r\n', 'false', [Function: bound ] ], _currentStream: DelayedStream { source: ReadStream { fd: 3, path: 'D:\\photos\\2001\\2001-08-03\\Amy Robinson.jpg', flags: 'r', mode: 438, start: undefined, end: Infinity, pos: undefined, bytesRead: 262144, _events: [Object], _readableState: [ReadableState], _maxListeners: undefined, _eventsCount: 2, emit: [Function (anonymous)], [Symbol(kFs)]: [Object], [Symbol(kIsPerformingIO)]: false, [Symbol(shapeMode)]: true, [Symbol(kCapture)]: false }, dataSize: 0, maxDataSize: Infinity, pauseStream: true, _maxDataSizeExceeded: false, _released: true, _bufferedEvents: [], _events: [Object: null prototype] { error: [Array], end: [Array], data: [Function: ondata], close: [Function: cleanup] }, _eventsCount: 4 }, _insideLoop: false, _pendingNext: false, _boundary: '--------------------------403194602116791681534902', _events: [Object: null prototype] { end: [ [Function (anonymous)], [Function: onend], [Function: cleanup] ], error: [ [Function: onerror], [Function: onerror], [Function] ], close: [ [Function (anonymous)], [Function: onclose], [Function: cleanup], [Function: cleanup] ], data: [Function: ondata], drain: [Function: ondrain] }, _eventsCount: 5 } }, request: <ref *1> ClientRequest { _events: [Object: null prototype] { error: [ [Function: onerror], [Function: handleRequestError] ], socket: [Function: handleRequestSocket], drain: [Function: ondrain], close: [Function: cleanup], finish: [Function: requestOnFinish] }, _eventsCount: 5, _maxListeners: undefined, outputData: [], outputSize: 0, writable: true, destroyed: false, _last: false, chunkedEncoding: false, shouldKeepAlive: true, maxRequestsOnConnectionReached: false, _defaultKeepAlive: true, useChunkedEncodingByDefault: true, sendDate: false, _removedConnection: false, _removedContLen: false, _removedTE: false, strictContentLength: false, _contentLength: '2611196', _hasBody: true, _trailer: '', finished: false, _headerSent: true, _closed: false, _header: 'POST /api/asset/upload HTTP/1.1\r\n' + 'Accept: application/json, text/plain, */*\r\n' + 'Content-Type: multipart/form-data; boundary=--------------------------403194602116791681534902\r\n' + 'x-api-key: svdtRopSuDdmQyKrZDTEqDolfqGJJEakEiFgytDI\r\n' + 'User-Agent: axios/1.6.7\r\n' + 'Content-Length: 2611196\r\n' + 'Accept-Encoding: gzip, compress, deflate, br\r\n' + 'Host: 192.168.12.182:30041\r\n' + 'Connection: keep-alive\r\n' + '\r\n', _keepAliveTimeout: 0, _onPendingData: [Function: nop], agent: Agent { _events: [Object: null prototype] { free: [Function (anonymous)], newListener: [Function: maybeEnableKeylog] }, _eventsCount: 2, _maxListeners: undefined, defaultPort: 80, protocol: 'http:', options: [Object: null prototype] { keepAlive: true, scheduling: 'lifo', timeout: 5000, noDelay: true, path: null }, requests: [Object: null prototype] {}, sockets: [Object: null prototype] { '192.168.12.182:30041:': [ [Socket] ] }, freeSockets: [Object: null prototype] {}, keepAliveMsecs: 1000, keepAlive: true, maxSockets: Infinity, maxFreeSockets: 256, scheduling: 'lifo', maxTotalSockets: Infinity, totalSocketCount: 1, [Symbol(shapeMode)]: false, [Symbol(kCapture)]: false }, socketPath: undefined, method: 'POST', maxHeaderSize: undefined, insecureHTTPParser: undefined, joinDuplicateHeaders: undefined, path: '/api/asset/upload', _ended: true, res: IncomingMessage { _events: { close: undefined, error: [Function: handleStreamError], data: [Function: handleStreamData], end: [ [Function: responseOnEnd], [Function: handleStreamEnd] ], readable: undefined, finish: undefined, aborted: [Function: handlerStreamAborted] }, _readableState: ReadableState { highWaterMark: 16384, buffer: [], bufferIndex: 0, length: 0, pipes: [], awaitDrainWriters: null, [Symbol(kState)]: 194779004 }, _maxListeners: undefined, socket: <ref *2> Socket { connecting: false, _hadError: false, _parent: null, _host: null, _closeAfterHandlingError: false, _events: { close: [Array], error: [Function: socketErrorListener], prefinish: undefined, finish: undefined, drain: undefined, data: undefined, end: [Function: onReadableStreamEnd], readable: undefined, connect: undefined, free: [Function: onFree], timeout: [Function: onTimeout], agentRemove: [Function: onRemove] }, _readableState: ReadableState { highWaterMark: 16384, buffer: [], bufferIndex: 0, length: 0, pipes: [], awaitDrainWriters: null, [Symbol(kState)]: 60303620 }, _writableState: WritableState { highWaterMark: 16384, length: 65536, corked: 0, onwrite: [Function: bound onwrite], writelen: 65536, bufferedIndex: 0, pendingcb: 1, [Symbol(kState)]: 118262020, [Symbol(kBufferedValue)]: null, [Symbol(kWriteCbValue)]: [Function: nop], [Symbol(kAfterWriteTickInfoValue)]: null }, allowHalfOpen: false, _maxListeners: undefined, _eventsCount: 6, _sockname: null, _pendingData: null, _pendingEncoding: '', server: null, _server: null, timeout: 5000, parser: null, _httpMessage: [Circular *1], [Symbol(async_id_symbol)]: 77285, [Symbol(kHandle)]: <ref *3> TCP { reading: true, onconnection: null, [Symbol(owner_symbol)]: [Circular *2], [Symbol(resource_symbol)]: [ReusedHandle] }, [Symbol(lastWriteQueueSize)]: 65536, [Symbol(timeout)]: <ref *4> Timeout { _idleTimeout: 5000, _idlePrev: [TimersList], _idleNext: [TimersList], _idleStart: 4290, _onTimeout: [Function: bound ], _timerArgs: undefined, _repeat: null, _destroyed: false, [Symbol(refed)]: false, [Symbol(kHasPrimitive)]: false, [Symbol(asyncId)]: 77279, [Symbol(triggerId)]: 77277 }, [Symbol(kBuffer)]: null, [Symbol(kBufferCb)]: null, [Symbol(kBufferGen)]: null, [Symbol(shapeMode)]: true, [Symbol(kCapture)]: false, [Symbol(kSetNoDelay)]: true, [Symbol(kSetKeepAlive)]: true, [Symbol(kSetKeepAliveInitialDelay)]: 60, [Symbol(kBytesRead)]: 0, [Symbol(kBytesWritten)]: 0 }, httpVersionMajor: 1, httpVersionMinor: 1, httpVersion: '1.1', complete: true, rawHeaders: [ 'X-Powered-By', 'Express', 'Content-Type', 'application/json; charset=utf-8', 'Content-Length', '84', 'ETag', '"54-sQojqNZnpXrSuerOtcfoJmKKJXs"', 'Date', 'Thu, 01 Feb 2024 23:47:04 GMT', 'Connection', 'keep-alive', 'Keep-Alive', 'timeout=5' ], rawTrailers: [], joinDuplicateHeaders: undefined, aborted: false, upgrade: false, url: '', method: null, statusCode: 500, statusMessage: 'Internal Server Error', client: <ref *2> Socket { connecting: false, _hadError: false, _parent: null, _host: null, _closeAfterHandlingError: false, _events: { close: [Array], error: [Function: socketErrorListener], prefinish: undefined, finish: undefined, drain: undefined, data: undefined, end: [Function: onReadableStreamEnd], readable: undefined, connect: undefined, free: [Function: onFree], timeout: [Function: onTimeout], agentRemove: [Function: onRemove] }, _readableState: ReadableState { highWaterMark: 16384, buffer: [], bufferIndex: 0, length: 0, pipes: [], awaitDrainWriters: null, [Symbol(kState)]: 60303620 }, _writableState: WritableState { highWaterMark: 16384, length: 65536, corked: 0, onwrite: [Function: bound onwrite], writelen: 65536, bufferedIndex: 0, pendingcb: 1, [Symbol(kState)]: 118262020, [Symbol(kBufferedValue)]: null, [Symbol(kWriteCbValue)]: [Function: nop], [Symbol(kAfterWriteTickInfoValue)]: null }, allowHalfOpen: false, _maxListeners: undefined, _eventsCount: 6, _sockname: null, _pendingData: null, _pendingEncoding: '', server: null, _server: null, timeout: 5000, parser: null, _httpMessage: [Circular *1], [Symbol(async_id_symbol)]: 77285, [Symbol(kHandle)]: <ref *3> TCP { reading: true, onconnection: null, [Symbol(owner_symbol)]: [Circular *2], [Symbol(resource_symbol)]: [ReusedHandle] }, [Symbol(lastWriteQueueSize)]: 65536, [Symbol(timeout)]: <ref *4> Timeout { _idleTimeout: 5000, _idlePrev: [TimersList], _idleNext: [TimersList], _idleStart: 4290, _onTimeout: [Function: bound ], _timerArgs: undefined, _repeat: null, _destroyed: false, [Symbol(refed)]: false, [Symbol(kHasPrimitive)]: false, [Symbol(asyncId)]: 77279, [Symbol(triggerId)]: 77277 }, [Symbol(kBuffer)]: null, [Symbol(kBufferCb)]: null, [Symbol(kBufferGen)]: null, [Symbol(shapeMode)]: true, [Symbol(kCapture)]: false, [Symbol(kSetNoDelay)]: true, [Symbol(kSetKeepAlive)]: true, [Symbol(kSetKeepAliveInitialDelay)]: 60, [Symbol(kBytesRead)]: 0, [Symbol(kBytesWritten)]: 0 }, _consuming: false, _dumped: false, req: [Circular *1], _eventsCount: 4, [Symbol(shapeMode)]: true, [Symbol(kCapture)]: false, [Symbol(kHeaders)]: { 'x-powered-by': 'Express', 'content-type': 'application/json; charset=utf-8', 'content-length': '84', etag: '"54-sQojqNZnpXrSuerOtcfoJmKKJXs"', date: 'Thu, 01 Feb 2024 23:47:04 GMT', connection: 'keep-alive', 'keep-alive': 'timeout=5' }, [Symbol(kHeadersCount)]: 14, [Symbol(kTrailers)]: null, [Symbol(kTrailersCount)]: 0 }, aborted: false, timeoutCb: [Function: emitRequestTimeout], upgradeOrConnect: false, parser: null, maxHeadersCount: null, reusedSocket: true, host: '192.168.12.182', protocol: 'http:', [Symbol(shapeMode)]: false, [Symbol(kCapture)]: false, [Symbol(kBytesWritten)]: 0, [Symbol(kNeedDrain)]: true, [Symbol(corked)]: 0, [Symbol(kChunkedBuffer)]: [], [Symbol(kChunkedLength)]: 0, [Symbol(kSocket)]: <ref *2> Socket { connecting: false, _hadError: false, _parent: null, _host: null, _closeAfterHandlingError: false, _events: { close: [ [Function: onClose], [Function: socketCloseListener] ], error: [Function: socketErrorListener], prefinish: undefined, finish: undefined, drain: undefined, data: undefined, end: [Function: onReadableStreamEnd], readable: undefined, connect: undefined, free: [Function: onFree], timeout: [Function: onTimeout], agentRemove: [Function: onRemove] }, _readableState: ReadableState { highWaterMark: 16384, buffer: [], bufferIndex: 0, length: 0, pipes: [], awaitDrainWriters: null, [Symbol(kState)]: 60303620 }, _writableState: WritableState { highWaterMark: 16384, length: 65536, corked: 0, onwrite: [Function: bound onwrite], writelen: 65536, bufferedIndex: 0, pendingcb: 1, [Symbol(kState)]: 118262020, [Symbol(kBufferedValue)]: null, [Symbol(kWriteCbValue)]: [Function: nop], [Symbol(kAfterWriteTickInfoValue)]: null }, allowHalfOpen: false, _maxListeners: undefined, _eventsCount: 6, _sockname: null, _pendingData: null, _pendingEncoding: '', server: null, _server: null, timeout: 5000, parser: null, _httpMessage: [Circular *1], [Symbol(async_id_symbol)]: 77285, [Symbol(kHandle)]: <ref *3> TCP { reading: true, onconnection: null, [Symbol(owner_symbol)]: [Circular *2], [Symbol(resource_symbol)]: ReusedHandle { type: 40, handle: [Circular *3] } }, [Symbol(lastWriteQueueSize)]: 65536, [Symbol(timeout)]: <ref *4> Timeout { _idleTimeout: 5000, _idlePrev: TimersList { _idleNext: [Circular *4], _idlePrev: [Circular *4], expiry: 5165, id: -9007199254740991, msecs: 5000, priorityQueuePosition: 1 }, _idleNext: TimersList { _idleNext: [Circular *4], _idlePrev: [Circular *4], expiry: 5165, id: -9007199254740991, msecs: 5000, priorityQueuePosition: 1 }, _idleStart: 4290, _onTimeout: [Function: bound ], _timerArgs: undefined, _repeat: null, _destroyed: false, [Symbol(refed)]: false, [Symbol(kHasPrimitive)]: false, [Symbol(asyncId)]: 77279, [Symbol(triggerId)]: 77277 }, [Symbol(kBuffer)]: null, [Symbol(kBufferCb)]: null, [Symbol(kBufferGen)]: null, [Symbol(shapeMode)]: true, [Symbol(kCapture)]: false, [Symbol(kSetNoDelay)]: true, [Symbol(kSetKeepAlive)]: true, [Symbol(kSetKeepAliveInitialDelay)]: 60, [Symbol(kBytesRead)]: 0, [Symbol(kBytesWritten)]: 0 }, [Symbol(kOutHeaders)]: [Object: null prototype] { accept: [ 'Accept', 'application/json, text/plain, */*' ], 'content-type': [ 'Content-Type', 'multipart/form-data; boundary=--------------------------403194602116791681534902' ], 'x-api-key': [ 'x-api-key', 'svdtRopSuDdmQyKrZDTEqDolfqGJJEakEiFgytDI' ], 'user-agent': [ 'User-Agent', 'axios/1.6.7' ], 'content-length': [ 'Content-Length', '2611196' ], 'accept-encoding': [ 'Accept-Encoding', 'gzip, compress, deflate, br' ], host: [ 'Host', '192.168.12.182:30041' ] }, [Symbol(errored)]: null, [Symbol(kHighWaterMark)]: 16384, [Symbol(kRejectNonStandardBodyWrites)]: false, [Symbol(kUniqueHeaders)]: null }, data: { message: 'Failed to upload file', error: 'Internal Server Error', statusCode: 500 } } } Node.js v21.6.1 C:\Windows\System32>
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#2104