# Node-RED: Failed to obtain access token

**URL:** <https://discourse.openiap.io/t/node-red-failed-to-obtain-access-token/396>\
**Category:** OpenCore\
**Created:** [March 29, 2023, 1:35pm UTC](https://discourse.openiap.io/t/node-red-failed-to-obtain-access-token/396 "2023-03-29T13:35:28Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![kowts](https://discourse.openiap.io/user_avatar/discourse.openiap.io/kowts/32/67_2.png) [@kowts](https://discourse.openiap.io/u/kowts)\
**Post date:** [March 29, 2023, 1:35pm UTC](https://discourse.openiap.io/t/node-red-failed-to-obtain-access-token/396/1 "2023-03-29T13:35:28Z")

</div>

Hi @Allan_Zimmermann

I’m trying to access Node-RED but it displays the below error, the only thing that was done is run the command `docker compose pull` to perform some updates and then the issue occurs.

 ![image](https://discourse.openiap.io/uploads/default/original/1X/7bafb4be462c2ae795df8e4f5b134190480e2a01.png)

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Allan\_Zimmermann](https://discourse.openiap.io/user_avatar/discourse.openiap.io/allan_zimmermann/32/12_2.png) [@Allan\_Zimmermann](https://discourse.openiap.io/u/Allan_Zimmermann)\
**Post date:** [March 29, 2023, 1:37pm UTC](https://discourse.openiap.io/t/node-red-failed-to-obtain-access-token/396/2 "2023-03-29T13:37:16Z")

</div>

is the certificate valid ? please open openflow and nodered in a browser and validate the certificare is valid ( from let’s encrypt not a self signed one )

---

<div class="post-metadata">

**Author:** ![kowts](https://discourse.openiap.io/user_avatar/discourse.openiap.io/kowts/32/67_2.png) [@kowts](https://discourse.openiap.io/u/kowts)\
**Post date:** [March 29, 2023, 2:51pm UTC](https://discourse.openiap.io/t/node-red-failed-to-obtain-access-token/396/3 "2023-03-29T14:51:59Z")

</div>

Yes, the certificate is issued by Let’s Encrypt and still valid. I checked through my browser.

> **[SSL Checker](https://www.sslshopper.com/ssl-checker.html#hostname=https://openflow.codecenter.info)**
>
> Use our fast SSL Checker will help you troubleshoot common SSL Certificate installation problems on your server including verifying that the correct certificate is installed, valid, and properly trusted.

---

<div class="post-metadata">

**Author:** ![Allan\_Zimmermann](https://discourse.openiap.io/user_avatar/discourse.openiap.io/allan_zimmermann/32/12_2.png) [@Allan\_Zimmermann](https://discourse.openiap.io/u/Allan_Zimmermann)\
**Post date:** [March 29, 2023, 3:10pm UTC](https://discourse.openiap.io/t/node-red-failed-to-obtain-access-token/396/4 "2023-03-29T15:10:59Z")

</div>

So what happens if you stop and start nodered?  
Does it,work? If not what error do you see in the console of the nodered agent?

---

<div class="post-metadata">

**Author:** ![kowts](https://discourse.openiap.io/user_avatar/discourse.openiap.io/kowts/32/67_2.png) [@kowts](https://discourse.openiap.io/u/kowts)\
**Post date:** [March 29, 2023, 3:41pm UTC](https://discourse.openiap.io/t/node-red-failed-to-obtain-access-token/396/5 "2023-03-29T15:41:45Z")

</div>

nodered agent stop and start normally… but display the error when try to access it.

---

<div class="post-metadata">

**Author:** ![Allan\_Zimmermann](https://discourse.openiap.io/user_avatar/discourse.openiap.io/allan_zimmermann/32/12_2.png) [@Allan\_Zimmermann](https://discourse.openiap.io/u/Allan_Zimmermann)\
**Post date:** [March 29, 2023, 3:52pm UTC](https://discourse.openiap.io/t/node-red-failed-to-obtain-access-token/396/6 "2023-03-29T15:52:54Z")

</div>

And the console of nodered?

---

<div class="post-metadata">

**Author:** ![kowts](https://discourse.openiap.io/user_avatar/discourse.openiap.io/kowts/32/67_2.png) [@kowts](https://discourse.openiap.io/u/kowts)\
**Post date:** [March 29, 2023, 4:09pm UTC](https://discourse.openiap.io/t/node-red-failed-to-obtain-access-token/396/7 "2023-03-29T16:09:11Z")

</div>

Sorry… here is the logs from console.  
[\_rpacvtcv\_logs.json](https://discourse.openiap.io/uploads/short-url/dW3r8veumB3E2W5ZIDnkXDenHU.json) (5.9 KB)

---

<div class="post-metadata">

**Author:** ![Allan\_Zimmermann](https://discourse.openiap.io/user_avatar/discourse.openiap.io/allan_zimmermann/32/12_2.png) [@Allan\_Zimmermann](https://discourse.openiap.io/u/Allan_Zimmermann)\
**Post date:** [March 29, 2023, 4:49pm UTC](https://discourse.openiap.io/t/node-red-failed-to-obtain-access-token/396/8 "2023-03-29T16:49:46Z")

</div>

seems openflow is not running.  
or you changed the name. as you knos openflos MUST run as api

---

<div class="post-metadata">

**Author:** ![Allan\_Zimmermann](https://discourse.openiap.io/user_avatar/discourse.openiap.io/allan_zimmermann/32/12_2.png) [@Allan\_Zimmermann](https://discourse.openiap.io/u/Allan_Zimmermann)\
**Post date:** [March 29, 2023, 6:51pm UTC](https://discourse.openiap.io/t/node-red-failed-to-obtain-access-token/396/9 "2023-03-29T18:51:23Z")

</div>

Can you check if openflow is added with service name “api” in your docker compose file?

---

<div class="post-metadata">

**Author:** ![kowts](https://discourse.openiap.io/user_avatar/discourse.openiap.io/kowts/32/67_2.png) [@kowts](https://discourse.openiap.io/u/kowts)\
**Post date:** [March 30, 2023, 12:29pm UTC](https://discourse.openiap.io/t/node-red-failed-to-obtain-access-token/396/10 "2023-03-30T12:29:12Z")

</div>

Hi @Allan_Zimmermann  
Yes I have “api” service and it’s runnig normally.

> [@Allan\_Zimmermann](#):
>
> So what happens if you stop and start nodered?

I restart nodered (what you suggest) and docker more than once and now is working normally.  
Don’t know what the problem was. Thanks for the help.

---

<div class="post-metadata">

**Author:** ![Allan\_Zimmermann](https://discourse.openiap.io/user_avatar/discourse.openiap.io/allan_zimmermann/32/12_2.png) [@Allan\_Zimmermann](https://discourse.openiap.io/u/Allan_Zimmermann)\
**Post date:** [March 31, 2023, 10:29am UTC](https://discourse.openiap.io/t/node-red-failed-to-obtain-access-token/396/11 "2023-03-31T10:29:51Z")

</div>

Glad it worked out anyway, but annoying we never fund the core issue.

---

<div class="post-metadata">

**Author:** ![kowts](https://discourse.openiap.io/user_avatar/discourse.openiap.io/kowts/32/67_2.png) [@kowts](https://discourse.openiap.io/u/kowts)\
**Post date:** [March 31, 2023, 10:54am UTC](https://discourse.openiap.io/t/node-red-failed-to-obtain-access-token/396/12 "2023-03-31T10:54:33Z")

</div>

Yes, I agree. I’ll continue to monitor the logs and report any issues or potential reasons for the problem. Thank you @Allan_Zimmermann.

---

<div class="post-metadata">

**Author:** ![system](https://discourse.openiap.io/uploads/default/original/2X/a/a1ca7b164ac9a826839704d9ac82c7b5e6bcf557.png) [@system](https://discourse.openiap.io/u/system)\
**Post date:** [April 3, 2023, 10:54am UTC](https://discourse.openiap.io/t/node-red-failed-to-obtain-access-token/396/13 "2023-04-03T10:54:46Z")

</div>

Closed on April 3, 2023, 10:54am UTC

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