Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-16320

Netty-http should support redirects

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • None
    • 3.x
    • camel-netty-http
    • None
    • Unknown

    Description

      I'm running the following integration:

       

      - 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"
       

      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:

       

      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 

      Attachments

        Activity

          People

            Unassigned Unassigned
            nferraro Nicola Ferraro
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: