# Authentication for Shelly Plus 1PM with http request node fails

**URL:** <https://discourse.nodered.org/t/authentication-for-shelly-plus-1pm-with-http-request-node-fails/95258>\
**Category:** General\
**Created:** [9 February 2025 16:00 UTC](https://discourse.nodered.org/t/authentication-for-shelly-plus-1pm-with-http-request-node-fails/95258 "2025-02-09T16:00:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rucksman007](https://avatars.discourse-cdn.com/v4/letter/r/a88e4f/32.png) [@rucksman007](https://discourse.nodered.org/u/rucksman007)\
**Post date:** [9 February 2025 16:00 UTC](https://discourse.nodered.org/t/authentication-for-shelly-plus-1pm-with-http-request-node-fails/95258/1 "2025-02-09T16:00:39Z")

</div>

I try to control a Shelly Plus 1PM from within Node-Red via a http request node. This node looks like this:  
Method: GET  
URL: [http://192.168.xxx.xxx/rpc/Switch.GetConfig?id=0](http://192.168.xxx.xxx/rpc/Switch.GetConfig?id=0)  
Payload: ignore  
Basic Authentication: Type=Digest, username und password are filled in

Whatever I try, I always get 401. The only request that works is with this URL:  
[http://192.168.xxx.xxx/rpc/Schedule.List](http://192.168.xxx.xxx/rpc/Schedule.List)

Can someone help?

PS: A curl request for [http://192.168.xxx.xxx/rpc/Switch.GetConfig?id=0](http://192.168.xxx.xxx/rpc/Switch.GetConfig?id=0) works, so there must be a problem in the http request node.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [9 February 2025 20:45 UTC](https://discourse.nodered.org/t/authentication-for-shelly-plus-1pm-with-http-request-node-fails/95258/2 "2025-02-09T20:45:48Z")

</div>

> [@rucksman007](#):
>
> PS: A curl request for [http://192.168.xxx.xxx/rpc/Switch.GetConfig?id=0](http://192.168.xxx.xxx/rpc/Switch.GetConfig?id=0) works, so there must be a problem in the http request node

What is the exact curl you use? (Please xxx out any sensitive info)

---

<div class="post-metadata">

**Author:** ![rucksman007](https://avatars.discourse-cdn.com/v4/letter/r/a88e4f/32.png) [@rucksman007](https://discourse.nodered.org/u/rucksman007)\
**Post date:** [10 February 2025 08:04 UTC](https://discourse.nodered.org/t/authentication-for-shelly-plus-1pm-with-http-request-node-fails/95258/3 "2025-02-10T08:04:14Z")

</div>

This is the curl command I use now in an exec node instead of a http request node which works:

> curl -s --digest -u : [http://192.168.xxx.xxx/rpc/Switch.Set\?id=0\&on=true\&toggle\_after=7200](http://192.168.xxx.xxx/rpc/Switch.Set%5C?id=0%5C&on=true%5C&toggle_after=7200)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [11 May 2025 08:05 UTC](https://discourse.nodered.org/t/authentication-for-shelly-plus-1pm-with-http-request-node-fails/95258/4 "2025-05-11T08:05:05Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
