[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

HttpSensor raising exception with status=403


I am using HttpSensor to look for a file. The webserver is returning 403
(instead of 404) while the file is not available. This is causing the
sensor to raise an exception.

I see that a recent commit added the ability to disable the call to
response.raise_for_status() on the http hook by passing
extra_options={'check_response': False} to the sensor.

I am unable to upgrade airflow. What would be the best way to incorporate
the new code, perhaps into a custom sensor?