ruuvi / ruuvi.gateway_esp.c

Ruuvi Gateway ESP32 code
BSD 3-Clause "New" or "Revised" License
24 stars 15 forks source link

Error description with the message from the server during URL validation contains excessive escaping #927

Closed TheSomeMan closed 7 months ago

TheSomeMan commented 7 months ago

In order to test it, you need to enable custom HTTPS and try to check URL "https://network.ruuvi.com/record2". The server will return an error message like this:

{"message":"Not Found"}

This message should be properly escaped when displaying in UI:

HTTP response status: 404, Message from the server: {"message":"Not Found"}

The previous build generated extra escaping like this:

HTTP response status: 404, Message from the server: {\"message\":\"Not Found\"}
markoaamunkajo commented 7 months ago

QA passed