nheidloff opened a new issue #3381: Transfer-Encoding: chunked causes error
URL: https://github.com/apache/incubator-openwhisk/issues/3381
 
 
   Hi, I've built a Spring Boot Docker container: 
https://github.com/nheidloff/openwhisk-debug-java
   
   When I use the out of the box Spring functionality to build REST endpoints 
"Transfer-Encoding: chunked" is returned as header. When the container is 
deployed to the IBM Cloud I get the following error when invoking it: ?The 
action did not produce a valid response and exited unexpectedly.?
   
   I couldn't find a good way to get Spring Boot not to return this header. 
Instead I used a workaround/hack where the length of the output is calculated 
and then set in the content length header which causes the transfer encoding 
header to disappear. 
https://github.com/nheidloff/openwhisk-debug-java/blob/master/spring/src/main/java/docker/Function.java#L42
 
   
   Since someone else ran into the same issue 
https://github.com/jthomas/ow/issues/2, I'm wondering whether this can be 
changed on the OpenWhisk side?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to