Autodesk-Forge / forge-api-nodejs-client

Forge Node.js SDK: Provides Node.js SDK to help you easily integrate Forge REST APIs into the application
Apache License 2.0
121 stars 87 forks source link

fix getObject, adding buffering to properly populate response.body #82

Closed softremake closed 2 years ago

softremake commented 2 years ago

after switching from request to superagent in 0.9.0 release getObject stopped working, the response.body is empty ({}), no any errors. Most likely it affects only objects larger than a certain size (our models are usually bigger than 500K). Anyway, the solution is to buffer the response. Please review and accept.