Closed alexkli closed 2 years ago
Initial fix was #57 but that change completely removed tracking of response size for chunked responses, so we reverted it in #58.
A working solution is in #61.
:tada: This issue has been resolved in version 1.0.7 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
When using @adobe/node-openwhisk-newrelic with @adobe/aio-lib-state (which internally uses @azure/core-rest-pipeline for CosmosDB requests), it will FAIL requests that come back with chunked encoding (and no content-length header).
The http instrumentation, namely this code https://github.com/adobe/node-openwhisk-newrelic/blob/cbbd5f86e9780cea3dea559653056618722d84f4/lib/probe/http-client.js#L250-L253
seems to be incompatible with the way the Azure http client library handles requests.
Sample code to reproduce:
Error is triggered in aio-lib-state here: https://github.com/adobe/aio-lib-state/blob/master/lib/impl/CosmosStateStore.js#L34