Error "Premature end of Content-Length" when invoking a web service in Fuse.
Issue
- When consuming a web service that returns a big response, we get the error
Premature end of Content-Length delimited message body (expected: aaaaa; received: bbbbb)
, and message comes back truncated. - When consuming the same web service, and the service returns a small response, it works well.
- When invoked by curl, this message appears:
curl: (18) transfer closed with nnnnn bytes remaining to read
Environment
- Fuse 7.X
- Fuse 7.X bom for Spring Boot
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.