I am using the [officially deprecated] request library [1], which uses the form-data library [2] to post the file data. For various reasons, switching to an active and maintained http request library is not in the cards at present.
After upgrading from NodeJS v14 -> v16, I am seeing consistent failures to post file data to only dotnet servers. I have observed this with both endpoints we own and can confirm have not changed between the upgrade, as well as other deprecated libraries that make requests in similar fashion, like the [also deprecated] azure-storage
[3].
The error manifests as a timeout, as if the server received everything the client sent but thinks there is more to receive.
I am still working through trying to figure out what exactly changed, but am curious if any one else has encountered issues of a similar type, and if there was any workaround that could be made as a band-aid when making requests to avoid the issue.
[1] https://www.npmjs.com/package/request