Error "Premature end of Content-Length" when invoking a web service in Fuse.

Solution Verified - Updated -

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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content