# External Cloudant intermittent error 401

**URL:** https://discourse.nodered.org/t/external-cloudant-intermittent-error-401/23255
**Category:** General
**Created:** [18 March 2020 04:25 UTC](https://discourse.nodered.org/t/external-cloudant-intermittent-error-401/23255 "2020-03-18T04:25:16Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![piptan](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/piptan/32/5345_2.png) [@piptan](https://discourse.nodered.org/u/piptan)
#### Post date: [18 March 2020 04:25 UTC](https://discourse.nodered.org/t/external-cloudant-intermittent-error-401/23255/1 "2020-03-18T04:25:16Z")

</div>

Hi,

I can successfully access external Cloudant DB from my node. But, from time to time, I receive error "couch returned 401". All I have to do to fix this is to go to External Cloudant server properties 's edit page and re-enter the password, then Deploy. It will work for let's say about 12 hours, then the problem recurs.

I use node-red on IBM Cloud and external Cloudant is also on IBM Cloud but on a different project.

To configure this, I simply use Cloudant node (both in and out - in for reading and out - for updating, the problem occurs on both) , select External Cloudant service, enter Properties - Host, User name, Password and Server name.

User name and Password entered are according to Service Credetial created on External Cloudant. It should not be a problem because it at least works for about almost 12 hours.

What could cause the problem ? Thank you.

---

<div class="post-metadata">

### Author: ![piptan](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/piptan/32/5345_2.png) [@piptan](https://discourse.nodered.org/u/piptan)
#### Post date: [7 April 2020 07:28 UTC](https://discourse.nodered.org/t/external-cloudant-intermittent-error-401/23255/2 "2020-04-07T07:28:46Z")

</div>

Moving to node-red-contrib-cloudantplus fixed my problem.

---

<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: [21 April 2020 07:28 UTC](https://discourse.nodered.org/t/external-cloudant-intermittent-error-401/23255/3 "2020-04-21T07:28:46Z")

</div>

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