Skip to main content
Question

[Box-cli] Command failed: box files:upload ESOCKETTIMEDOUT

  • May 22, 2025
  • 1 reply
  • 34 views

Forum|alt.badge.img

Hi,

I just start to play with box-cli and everything works fine (e.g. list folder, create folder) until I tried to upload a file using command box files:upload . 

The console output is as below:

 

ESOCKETTIMEDOUT

 

    at ChildProcess.exithandler (node:child_process:399:12)

    at ChildProcess.emit (node:events:526:28)

    at maybeClose (node:internal/child_process:1092:16)

    at Socket.<anonymous> (node:internal/child_process:451:11)

    at Socket.emit (node:events:526:28)

    at Pipe.<anonymous> (node:net:687:12) {

  killed: false,

  code: 2,

  signal: null,

  cmd: 'box files:upload /Users/ndu/Downloads/my.png -p 159395659281 --json'

}

 

my box-cli version: 

$ box -v                                              [14:11:53]

@box/cli/3.0.0 darwin-x64 node-v16.14.2

1 reply

Forum|alt.badge.img

Hello, 

This is typically due to a proxy or an internal company network security control. Do you know if your company has something like that? 

Alex, Box Developer Advocate