WebThingsIO / thing-url-adapter

Proxy adapter for Web Thing API endpoints
Mozilla Public License 2.0
22 stars 18 forks source link

Catch html status code and throw a meaniingful exception #109

Closed 0815fox closed 2 years ago

0815fox commented 2 years ago

Instead of letting json parser fail, which leads to a json parse error instead of revealing the real cause.

benfrancis commented 2 years ago

@0815fox thanks! Can you please fix the linting errors shown in https://github.com/WebThingsIO/thing-url-adapter/pull/109/checks?check_run_id=3853369289

0815fox commented 2 years ago

Well, sorry for that. It usually takes some time to get used to others style and habits. Having to run the linters manually is something I'm not used to.

0815fox commented 2 years ago

Not sure what happened. I never did a rebase before and did not know how to use it. Somehow the changes seem to have disappeared.