"Timeout Encountered in uploadFile Method with Box Node SDK" ■ Executed APIBox Files Upload API
■ Method of ExecutionUsing the box-node-sdk, the method is executed in the format "client.files.uploadFile(folderID, 'My File.pdf', stream)" as per the official documentation.
■ Steps of Execution
Retrieve the Box SDK:const sdk = BoxSDK.getPreconfiguredInstance(boxConfig)
Configure the proxy settings:
javascript
コードをコピーする
sdk.configure({
proxy: {
url: XXXXXX,
username: ******,
password: ******
}
})
Retrieve the Box client:const client = sdk.getAppAuthClient('enterprise')
Execute the file upload:client.files.uploadFile(folderID, 'My File.pdf', stream)Note: The file size at the time of timeout was 4.3KB.
■ Expected OutcomeReceive a response in accordance with the IF specifications from the Box API.
■ Actual OutcomeA timeout occurred during the uploadFile operation.
{ "code": "ESOCKETTIMEDOUT", "connect": false, "request": { "uri": { "protocol": "https:", "slashes": true, "auth