# If I post a node with a \*key\*, is that key included in the post?

**URL:** <https://discourse.nodered.org/t/if-i-post-a-node-with-a-key-is-that-key-included-in-the-post/89968>\
**Category:** General\
**Created:** [2 August 2024 20:58 UTC](https://discourse.nodered.org/t/if-i-post-a-node-with-a-key-is-that-key-included-in-the-post/89968 "2024-08-02T20:58:16Z")\
**Posts on this page:** 11\
**Page:** 3

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [5 August 2024 21:45 UTC](https://discourse.nodered.org/t/if-i-post-a-node-with-a-key-is-that-key-included-in-the-post/89968/41 "2024-08-05T21:45:45Z")

</div>

> [@jbudd](#):
>
> alligator, drop bear or huntsman,

2 out of these things do not exist in Australia natively, and one of those is a myth. what were you on while there? I know the Aussies like a good wind up.

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [5 August 2024 22:06 UTC](https://discourse.nodered.org/t/if-i-post-a-node-with-a-key-is-that-key-included-in-the-post/89968/42 "2024-08-05T22:06:02Z")

</div>

No problems. I wasn't blaming you for it.

So what URL do I need to use?

The one in your example just doesn't work.

And yes I just dumbly use the node with the city and country set.  
I can/could get used to how you do it, but it is the URL that is catching me out.

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [5 August 2024 22:31 UTC](https://discourse.nodered.org/t/if-i-post-a-node-with-a-key-is-that-key-included-in-the-post/89968/43 "2024-08-05T22:31:07Z")

</div>

Perhaps there are different OWM APIs and API keys?

All I can say is if I use the flow I posted with my real API key in global context, it retrieves a forecast:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/8/186129fc5ecbbf91de896d457691b7e8517eba8e.png)

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [5 August 2024 22:32 UTC](https://discourse.nodered.org/t/if-i-post-a-node-with-a-key-is-that-key-included-in-the-post/89968/44 "2024-08-05T22:32:26Z")

</div>

I get code: 401 and this text:

```auto
Please note that using One Call 3.0 requires a separate subscription to the One Call by Call plan. Learn more here https://openweathermap.org/price. If you have a valid subscription to the One Call by Call plan, but still receive this error, then please see https://openweathermap.org/faq#error401 for more info.

```

Seems I am back to square 1 for now.

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [5 August 2024 22:36 UTC](https://discourse.nodered.org/t/if-i-post-a-node-with-a-key-is-that-key-included-in-the-post/89968/45 "2024-08-05T22:36:32Z")

</div>

I get the same error message as you if my API key is incorrect.

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [5 August 2024 22:39 UTC](https://discourse.nodered.org/t/if-i-post-a-node-with-a-key-is-that-key-included-in-the-post/89968/46 "2024-08-05T22:39:00Z")

</div>

Yeah, but if I then use the same key with the actual node, I don't get an error.  
It works.

So we probably have different account types. ☹

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [5 August 2024 23:13 UTC](https://discourse.nodered.org/t/if-i-post-a-node-with-a-key-is-that-key-included-in-the-post/89968/47 "2024-08-05T23:13:46Z")

</div>

OWM node Version 0.5.1 uses old api, so will work with you older api-key. As said V3 api you need to subscribe to get a new key, the One Call subscription plan. Same for OWM node v 1.0

---

<div class="post-metadata">

**Author:** ![shrickus](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/shrickus/32/517_2.png) [@shrickus](https://discourse.nodered.org/u/shrickus)\
**Post date:** [6 August 2024 01:50 UTC](https://discourse.nodered.org/t/if-i-post-a-node-with-a-key-is-that-key-included-in-the-post/89968/48 "2024-08-06T01:50:26Z")

</div>

If you search for "secret" in the flows library, there are a couple contrib nodes that will hold your api key in a way that they cannot be exported...

> **[node-red-contrib-credentials](https://flows.nodered.org/node/node-red-contrib-credentials)**
>
> Provides a credentials node to store one or more private values; preventing export to flows or version control.

> **[node-red-contrib-secret](https://flows.nodered.org/node/node-red-contrib-secret)**
>
> Node-RED node for injecting secrets into flows while preventing export of those secrets

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [6 August 2024 21:16 UTC](https://discourse.nodered.org/t/if-i-post-a-node-with-a-key-is-that-key-included-in-the-post/89968/49 "2024-08-06T21:16:10Z")

</div>

Thanks. I'll investigate that.

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [6 August 2024 21:16 UTC](https://discourse.nodered.org/t/if-i-post-a-node-with-a-key-is-that-key-included-in-the-post/89968/50 "2024-08-06T21:16:56Z")

</div>

Thanks Steve.

I'll look at those too.

(When I get home this afternoon)

---

<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:** [20 August 2024 21:17 UTC](https://discourse.nodered.org/t/if-i-post-a-node-with-a-key-is-that-key-included-in-the-post/89968/51 "2024-08-20T21:17:18Z")

</div>

Closed on 20 August 2024 21:17 UTC

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

[Previous page](https://discourse.nodered.org/t/if-i-post-a-node-with-a-key-is-that-key-included-in-the-post/89968.md?page=2)
