HTTP request time out

  • Good day,

    I am trying to request status data from a solar panel from a Shelly 1 Plus. However, the request is timing out (even with very high timeout). From my computer the request is working fine. The API is accessible from the Shelly, as I am getting a response when I e.g. use invalid authorization.

    This is the sample code I use:

    Code
    let params = {
        method: "GET",
        url: "https://api.ntuity.io/v1/sites/" + CONFIG.siteId + "/energy-flow/latest",
        timeout: 60,
        headers: {
            Accept: "application/json",
            Authorization: "Bearer " + CONFIG.apiKey
        }
    };
    Shelly.call("http.request", params, handleStatus, null);