[mf:err] Cause: RequestContentLengthMismatchError: Request body length does not match content-length header
[mf:err] Cause: RequestContentLengthMismatchError: Request body length does not match content-length header
from the following API response:
Note: Unnecessary use of -X or --request, POST is already inferred.> content-length: 697> content-type: application/x-www-form-urlencoded* We are completely uploaded and fine* Connection state changed (MAX_CONCURRENT_STREAMS == 128)!< HTTP/2 400< server: nginx< content-length: 28< strict-transport-security: max-age=63072000<* Connection #0 to host api.tinybird.co left intactAnalysis error, invalid data%
Note: Unnecessary use of -X or --request, POST is already inferred.> content-length: 697> content-type: application/x-www-form-urlencoded* We are completely uploaded and fine* Connection state changed (MAX_CONCURRENT_STREAMS == 128)!< HTTP/2 400< server: nginx< content-length: 28< strict-transport-security: max-age=63072000<* Connection #0 to host api.tinybird.co left intactAnalysis error, invalid data%
I think this is because there are 2 content-length headers, and the first one is no the correct length. Looking at resources online it seems like when multiple are provided then it should take the last one. This is when streaming the response https://developers.cloudflare.com/workers/learning/using-streams/