-
Autor
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
);