Closed matzew closed 5 months ago
This is not really a bug. Let's observe how the Kamelet is designed:
template:
from:
parameters:
period: '{{period}}'
steps:
- to: https://random-data-api.com/api/beer/random_beer/fail
- to: kamelet:sink
uri: timer:beer
Every given time, the kamelet emit an exchange reading to the API. The fact the API is failing is not a hard failure by the component used. You can have a deeper look at the Camel Http component documentation. As you can see, it is in fact reported as a "Warning". And, to a certain extent it makes sense, as the http component can fail for any networking reason. If you want to make it a stricter one, you probably need to develop the logic by checking the http codes and working with circuit-breaker
eips or leveraging Pipes error handler.
What happened?
The beer source is currently unable to connect to the web-api it is using, and inside the logs we see:
However, the
status
is ready:That is misleading
Steps to reproduce
Relevant log output
No response
Camel K version
2.3.1