You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2022/04/12 08:03:31 UTC

[GitHub] [camel-k-runtime] davsclaus commented on issue #634: HTTP error (can't write to /deployments/file-uploads) when not setting content-type

davsclaus commented on issue #634:
URL: https://github.com/apache/camel-k-runtime/issues/634#issuecomment-1096309513

   Yeah without the content-type then the message body is null
   ```
   2022-04-12 10:00:34.874  INFO 26325 --- [           main] org.apache.camel.main.VertxHttpServer    : HTTP endpoints summary
   2022-04-12 10:00:34.875  INFO 26325 --- [           main] org.apache.camel.main.VertxHttpServer    :     http://0.0.0.0:8080/webhook
   2022-04-12 10:00:51.534  INFO 26325 --- [worker-thread-0] info                                     : Exchange[ExchangePattern: InOut, BodyType: io.vertx.core.buffer.impl.BufferImpl, Body: Ciao]
   2022-04-12 10:01:11.838  INFO 26325 --- [worker-thread-1] info                                     : Exchange[ExchangePattern: InOut, BodyType: null, Body: [Body is null]]
   2022-04-12 10:02:08.543  INFO 26325 --- [worker-thread-2] info                                     : Exchange[ExchangePattern: InOut, BodyType: null, Body: [Body is null]]
   2022-04-12 10:02:15.619  INFO 26325 --- [worker-thread-3] info                                     : Exchange[ExchangePattern: InOut, BodyType: null, Body: [Body is null]]
   2022-04-12 10:02:22.396  INFO 26325 --- [worker-thread-4] info                                     : Exchange[ExchangePattern: InOut, BodyType: io.vertx.core.buffer.impl.BufferImpl, Body: Ciao2]
   ```
   
   The stacktrace is no longer, but platform-http-vertx seems to not want to read the message body because there is no content-type header. We may want to relax this so it works like other camel http components.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org