Jump to content
NOTICE / HINWEIS: iOS 18 Update and Today Widgets ×

HTTP.Request error -114


Recommended Posts

Hello.
I'm trying to access data from a Philips Hue bridge.
Testing with Postman I can get the GET values correctly. I have clearly set the hue-application-key in the header.

If I try to replicate the same call in a Shelly script I receive the error -114-1: Connection error: -15

Here is the code I am testing:

    Shelly.call(
        "HTTP.Request",
        {
            method: "GET",
            url: "https://192.168.x.x/clip/v2/resource/grouped_light/xyxyxyxyxyxyxyx",
            headers: {"hue-application-key": "???????????????"}
        },
        function (result, errorCode, errorMessage) {
            if (errorCode === 0) {
                console.log("Success. Result is:", result.body);
            } else {
                console.log("There was an error:", errorCode + errorMessage);
            }
        }
    );

Any suggestions on how to solve?
Thanks in advance.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...