VPN/Proxy erkannt
Es scheint, dass Sie einen VPN- oder Proxy-Dienst verwenden. Bitte beachten Sie, dass die Nutzung eines solchen Dienstes die Funktionalität dieser Webseite einschränken kann.
-
The difference between your github response and the original response is that your response has text/html as Content-Type and the original has application/json (I have also done this same conversion to get this working).
-
I have a strange problem when calling an API providing some price data. It seems that when the response is normal JSON item then it works, but when it's a JSON list then I always get timeout error (-104). Is this some known limitation of Shelly http requests?
This can be reproduces easily with this call:
function handleResponse(result, error_code, error_message) {
print(error_code);
print(error_message);
print(result);
}
Shelly.call(
"HTTP.GET",
{ url: "https://jsonplaceholder.typicode.com/posts/1/comments", timeout: 15, ssl_ca: "*" },
handleResponse
);
But this works as it doesn't return a list:
Shelly.call(
"HTTP.GET",
{ url: "https://jsonplaceholder.typicode.com/posts/1", timeout: 15, ssl_ca: "*" },
handleResponse
);