Re: HttpSensor raising exception with status=403

2018-05-28 Thread Pedro Machado
Thanks! I ended up creating a plugin and it's working OK. On Mon, May 28, 2018 at 9:22 AM Driesprong, Fokko wrote: > Hi Pedro, > > You could just create a CustomHttpHook and place it on your pythonpath, > then you should also create a CustomHttpSensor. Hope this helps. > > Cheers, Fokko > >

Re: HttpSensor raising exception with status=403

2018-05-28 Thread Driesprong, Fokko
Hi Pedro, You could just create a CustomHttpHook and place it on your pythonpath, then you should also create a CustomHttpSensor. Hope this helps. Cheers, Fokko 2018-05-26 2:48 GMT+02:00 Pedro Machado : > Hi, > > I am using HttpSensor to look for a file. The webserver is

HttpSensor raising exception with status=403

2018-05-25 Thread Pedro Machado
Hi, 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