bitfocus / companion-module-generic-http

Generic HTTP module
MIT License
9 stars 19 forks source link

Ignore Non_2XX_3XX_Response ? #46

Closed Coupe70 closed 5 months ago

Coupe70 commented 11 months ago

In some cases I get a Non_2XX_3XX_Response from a GET request. I KNOW this and I can't do anything about it, but this response always gives me an error and disables the http module. Is there any way to handle this or just ignore this error to keep the http module alive?

istnv commented 11 months ago

I don't think errors disable the module, the message just sticks until the next request. I have one setup where I can press a button, and if the program is not running, always shows an error. After I start the program and press another command, the error goes away.

mark-epstein commented 11 months ago

In the picture you posted on FB, the module is not disabled.

If something does disable it, there's a built-in action that you could use to enable it. You can add that action to a button or pretty much anything else by using the triggers function.

Coupe70 commented 11 months ago

Thanks for your answers! I actually didn't mean disabled in terms of "switched off", more like "stops working". But last week was crazy and I might be completely wrong. I'll check again on monday...

Coupe70 commented 11 months ago

Guys, you were absolutely right! Thanks for pointing out.