-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[dwdunwetter] should handle properly response messages #14691
Comments
The method responsible for the data access is not very smart. It just calls an url and returns its body: Lines 42 to 65 in 6115cd3
I could not find any documentation regarding this API and errors. It could have been nice if we could react to the http response code. But at this moment the only thing i can think of is performing a check to see if the body is (valid) xml and if not, raise an IOException. Maybe @limdul79 as codeowner can give some advise? |
Signed-off-by: lsiepel <leosiepel@gmail.com>
Made a fix. Test jar 4.x is here: https://1drv.ms/u/s!AnMcxmvEeupwjrMmX76PHq61-JUHFQ?e=K0E0TR Please let me know your test results. |
* Fix #14691 * Add country tag --------- Signed-off-by: lsiepel <leosiepel@gmail.com> Signed-off-by: Leo Siepel <leosiepel@gmail.com>
* Fix openhab#14691 * Add country tag --------- Signed-off-by: lsiepel <leosiepel@gmail.com> Signed-off-by: Leo Siepel <leosiepel@gmail.com>
* Fix openhab#14691 * Add country tag --------- Signed-off-by: lsiepel <leosiepel@gmail.com> Signed-off-by: Leo Siepel <leosiepel@gmail.com>
* Fix openhab#14691 * Add country tag --------- Signed-off-by: lsiepel <leosiepel@gmail.com> Signed-off-by: Leo Siepel <leosiepel@gmail.com>
* Fix openhab#14691 * Add country tag --------- Signed-off-by: lsiepel <leosiepel@gmail.com> Signed-off-by: Leo Siepel <leosiepel@gmail.com> Signed-off-by: querdenker2k <querdenker2k@gmx.de>
* Fix openhab#14691 * Add country tag --------- Signed-off-by: lsiepel <leosiepel@gmail.com> Signed-off-by: Leo Siepel <leosiepel@gmail.com> Signed-off-by: Jørgen Austvik <jaustvik@acm.org>
The binding should handle properly the non-XML response messages.
In this case: "This service is not available due to technical problems!" The warning message "Exception occurred while parsing the XML response: Unexpected character 'T' (code 84) in prolog; expected '<' at [row,col {unknown-source}]: [1,1]" is not really helpful.
This behavior exists since a long time. Currently observed with OH 3.4.1.
The text was updated successfully, but these errors were encountered: