0

When I want to upload a large file (more then 100 -150 mb in autodesk forge), I've this error, and it's very annoying. Can anyone can help me please ?

Error: Cannot create a string longer than 0x1fffffe8 characters
0|app  |     at Buffer.toString (buffer.js:800:17)
0|app  |     at Object.isFormData (/var/www/react-app/node_modules/axios/lib/utils.js:194:42)
0|app  |     at Object.transformRequest (/var/www/react-app/node_modules/axios/lib/defaults/index.js:56:15)
0|app  |     at transform (/var/www/react-app/node_modules/axios/lib/core/transformData.js:18:15)
0|app  |     at Object.forEach (/var/www/react-app/node_modules/axios/lib/utils.js:270:10)
0|app  |     at Object.transformData (/var/www/react-app/node_modules/axios/lib/core/transformData.js:17:9)
0|app  |     at dispatchRequest (/var/www/react-app/node_modules/axios/lib/core/dispatchRequest.js:35:31)
0|app  |     at Axios.request (/var/www/react-app/node_modules/axios/lib/core/Axios.js:109:15)
0|app  |     at wrap (/var/www/react-app/node_modules/axios/lib/helpers/bind.js:9:15)
0|app  |     at /var/www/react-app/node_modules/forge-apis/src/ApiClient.js:395:5 {
0|app  |   code: 'ERR_STRING_TOO_LONG',
0|app  |   statusCode: undefined
0|app  | }
Eason Kang
  • 6,155
  • 1
  • 7
  • 24
fitMath
  • 3
  • 2
  • Could you share your code snippet for uploading the file? Or you may checkout my samples: 1. via [direct-s3](https://github.com/yiskang/forge-viewmodels-nodejs-svf2/blob/direct-s3/routes/oss.js#L200) 2. via deprecated [chunk upload](https://github.com/yiskang/forge-viewmodels-nodejs-svf2/blob/direct-s3/routes/oss.js#L102) – Eason Kang Sep 22 '22 at 09:23

0 Answers0