matzew opened a new issue, #5528:
URL: https://github.com/apache/camel-k/issues/5528

   ### What happened?
   
   The beer source is _currently_ unable to connect to the web-api it is using, 
and inside the logs we see:
   
   ```
   2024-05-21 09:02:24,524 WARN  [org.apa.cam.com.tim.TimerConsumer] (Camel 
(camel-1) thread #1 - timer://beer) Error processing exchange. Exchange[]. 
Caused by: [org.apache.camel.http.base.HttpOperationFailedException - HTTP 
operation failed invoking https://random-data-api.com/api/beer/random_beer with 
statusCode: 500]: org.apache.camel.http.base.HttpOperationFailedException: HTTP 
operation failed invoking https://random-data-api.com/api/beer/random_beer with 
statusCode: 500
        at 
org.apache.camel.component.http.HttpProducer.populateHttpOperationFailedException(HttpProducer.java:452)
        at 
org.apache.camel.component.http.HttpProducer.lambda$process$1(HttpProducer.java:275)
        at 
org.apache.hc.client5.http.impl.classic.CloseableHttpClient.execute(CloseableHttpClient.java:247)
        at 
org.apache.camel.component.http.HttpProducer.executeMethod(HttpProducer.java:476)
        at 
org.apache.camel.component.http.HttpProducer.process(HttpProducer.java:246)
        at 
org.apache.camel.support.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:65)
        at 
org.apache.camel.processor.SendProcessor.process(SendProcessor.java:210)
        at 
org.apache.camel.processor.errorhandler.NoErrorHandler.process(NoErrorHandler.java:46)
        at 
org.apache.camel.impl.engine.CamelInternalProcessor.processNonTransacted(CamelInternalProcessor.java:354)
        at 
org.apache.camel.impl.engine.CamelInternalProcessor.process(CamelInternalProcessor.java:330)
        at 
org.apache.camel.processor.Pipeline$PipelineTask.run(Pipeline.java:102)
        at 
org.apache.camel.impl.engine.DefaultReactiveExecutor$Worker.doRun(DefaultReactiveExecutor.java:199)
        at 
org.apache.camel.impl.engine.DefaultReactiveExecutor$Worker.executeReactiveWork(DefaultReactiveExecutor.java:189)
        at 
org.apache.camel.impl.engine.DefaultReactiveExecutor$Worker.tryExecuteReactiveWork(DefaultReactiveExecutor.java:166)
        at 
org.apache.camel.impl.engine.DefaultReactiveExecutor$Worker.schedule(DefaultReactiveExecutor.java:148)
        at 
org.apache.camel.impl.engine.DefaultReactiveExecutor.scheduleMain(DefaultReactiveExecutor.java:59)
        at org.apache.camel.processor.Pipeline.process(Pipeline.java:163)
        at 
org.apache.camel.impl.engine.CamelInternalProcessor.processNonTransacted(CamelInternalProcessor.java:354)
        at 
org.apache.camel.impl.engine.CamelInternalProcessor.process(CamelInternalProcessor.java:330)
        at 
org.apache.camel.component.timer.TimerConsumer.sendTimerExchange(TimerConsumer.java:293)
        at 
org.apache.camel.component.timer.TimerConsumer$1.doRun(TimerConsumer.java:164)
        at 
org.apache.camel.component.timer.TimerConsumer$1.run(TimerConsumer.java:136)
        at java.base/java.util.TimerThread.mainLoop(Timer.java:566)
        at java.base/java.util.TimerThread.run(Timer.java:516)
   
   
   ```
   
   However, the `status` is ready:
   ```
   k get pipes.camel.apache.org 
   NAME               PHASE   REPLICAS
   beer-source-pipe   Ready   1
   ```
   
    That is misleading 
   
   ### Steps to reproduce
   
   1. install beer source (and see that currently it is unable to connect to 
its endpoitn, this is not the real reason for the issue being created)
   2. notice it becomes ready,  even it is unable to connect to its Web-Api, 
that it uses.
   
   ### Relevant log output
   
   _No response_
   
   ### Camel K version
   
   2.3.1


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to