Getting error Invalid Scope with http

I am trying to set some variables on Sharptools using Hubitat variables.

I am issuing the following command:

https://trigger.sharptools.io/rule/BLAH/key/BLAH?PresenceNumberOfPeopleHome=0

And I am getting the following error:

{
“success”: false,
“error”: “invalid scope”,
“message”: “Failed to authenticate/authorize this request.”
}

The rule looks like this:

What am I doing wrong? Thanks.

If you want to send a note to support@sharptools.io with the Rule ID, I can take a closer look.

It sounds like the trigger key doesn’t have the right scopes applied for some reason, but I don’t think I’ve seen that happen before. Has the rule changed recently? I’m wondering if the scopes didn’t apply properly during one of the rule updates.

One way to fix it would be to remove the HTTP trigger, save the rule, then re-add the HTTP trigger. If it’s not urgent, I would be interested in taking a look at the rule before you do that though to see if we can figure out why it happened.

Deleting the trigger and re-adding it worked. Thanks.

1 Like