- My goal: I want to remove the “transfer-encoding”: “chunked” from an API call within a workflow as it is causing issues with CloudFlare at the provider end and they cannot change their settings
- Issue: Unable to remove/amend “transfer-encoding”: “chunked” from the API
- Steps I've taken to troubleshoot: Checked all docs, looked for answers in GitHub and AI services
- Additional info: (Cloud or Self-hosted, Screenshots): N/A
Hey Jon,
Happy to help with this request!
Retool is not able to adjust the header being it comes from Node.js long after it leaves the Workflow and Retool UI. My understanding is the header is automatically added by the underlying Node.js HTTP client when the request body size cannot be determined ahead of time. Retool sends the request payload to Node and Node handles all low level transmission details such as chunking as a way to send the payload. Transfer-Encoding header - HTTP | MDN
Currently, Retool does not have a way to override or disable "transfer-encoding".
If the receiving service or Cloudflare requires a non-chunked request the workaround is to send the request through a proxy layer you control ( Cloudflare Worker, API Gateway, NGINX, etc ) that buffers the request and resends it with a Content-Length header instead of chunked encoding. This would be a sort of middleware needing added prior to the final destination.
I found this page on the Cloudflare forums. If this is a product you already have, they may be able to provide support to get this up and running for you. https://community.cloudflare.com/t/transfer-encoding-chunked-disable/500089