You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2022/09/02 17:45:00 UTC

[jira] [Resolved] (CAMEL-16320) Netty-http should support redirects

     [ https://issues.apache.org/jira/browse/CAMEL-16320?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-16320.
---------------------------------
    Resolution: Won't Fix

use vertx-http instead of some better http component

> Netty-http should support redirects
> -----------------------------------
>
>                 Key: CAMEL-16320
>                 URL: https://issues.apache.org/jira/browse/CAMEL-16320
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-netty-http
>            Reporter: Nicola Ferraro
>            Priority: Major
>             Fix For: 3.x
>
>
> I'm running the following integration:
>  
> {code:java}
> - from:
>     uri: "timer:yaml"
>     parameters:
>       period: "10000"
>     steps:
>     - to: "netty-http:https://github.com/apache/camel/raw/7204aa132662ab6cb8e3c5afea8b9b0859eff0e8/docs/img/logo.png"
>     - to: "log:info"
>  {code}
> With `kamel local run netty.yaml`.
> It hits a redirect on Github, but there's no way to "follow redirects" in the component documentation, like for the "http" component.
> Error:
>  
> {code:java}
> 2021-03-09 14:58:45,031 WARN  [org.apa.cam.com.tim.TimerConsumer] (Camel Thread #1 - NettyClientTCPWorker) Error processing exchange. Exchange[1AC7E2A0D31F4A0-0000000000000000]. Caused by: [org.apache.camel.component.netty.http.NettyHttpOperationFailedException - Netty HTTP operation failed invoking null with statusCode: 302, redirectLocation: https://raw.githubusercontent.com/apache/camel/7204aa132662ab6cb8e3c5afea8b9b0859eff0e8/docs/img/logo.png]: org.apache.camel.component.netty.http.NettyHttpOperationFailedException: Netty HTTP operation failed invoking null with statusCode: 302, redirectLocation: https://raw.githubusercontent.com/apache/camel/7204aa132662ab6cb8e3c5afea8b9b0859eff0e8/docs/img/logo.png {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)