# Node-Red + Cloudant

**URL:** <https://discourse.nodered.org/t/node-red-cloudant/33289>\
**Category:** General\
**Created:** [24 September 2020 13:58 UTC](https://discourse.nodered.org/t/node-red-cloudant/33289 "2020-09-24T13:58:28Z")\
**Posts on this page:** 13\
**Page:** 2

<div class="post-metadata">

**Author:** ![Martin10](https://avatars.discourse-cdn.com/v4/letter/m/a587f6/32.png) [@Martin10](https://discourse.nodered.org/u/Martin10)\
**Post date:** [25 October 2020 14:54 UTC](https://discourse.nodered.org/t/node-red-cloudant/33289/21 "2020-10-25T14:54:42Z")

</div>

Anyone have any idea what i have to do?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [25 October 2020 15:18 UTC](https://discourse.nodered.org/t/node-red-cloudant/33289/22 "2020-10-25T15:18:10Z")

</div>

If you use a Catch node linked to the database node does anything useful come out?  
Also set the debug node on the db node output to Show Full Message, there may be an error message somewhere other than the payload.  
Also start node-red in a terminal, run it till you get the error, and copy/paste the output here. Use the `</>` button at the top of the forum entry window when pasting it in.

---

<div class="post-metadata">

**Author:** ![Martin10](https://avatars.discourse-cdn.com/v4/letter/m/a587f6/32.png) [@Martin10](https://discourse.nodered.org/u/Martin10)\
**Post date:** [26 October 2020 10:37 UTC](https://discourse.nodered.org/t/node-red-cloudant/33289/23 "2020-10-26T10:37:35Z")

</div>

This is from terminal

```auto
26 Oct 12:07:07 - [error] [cloudantplus out:10e0ba07.5d4be6]
26 Oct 12:07:07 - [error] [cloudantplus out:e9e647.4d2b69b8]

```

This is from Catch node

 ![2020-10-26-122054_800x480_scrot](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/9/b99234b77771b866ec2205f62931dedeade50c54.png)

The debug node linked to db node output with Full Messag don't show anything different from the above errors.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [26 October 2020 10:54 UTC](https://discourse.nodered.org/t/node-red-cloudant/33289/24 "2020-10-26T10:54:01Z")

</div>

So the cloudant node is giving you an error saying it has an invalid URL. How have you configured the Host url in the cloudant node?

---

<div class="post-metadata">

**Author:** ![Martin10](https://avatars.discourse-cdn.com/v4/letter/m/a587f6/32.png) [@Martin10](https://discourse.nodered.org/u/Martin10)\
**Post date:** [26 October 2020 11:10 UTC](https://discourse.nodered.org/t/node-red-cloudant/33289/25 "2020-10-26T11:10:16Z")

</div>

```auto
57fe53d0-4ea6-4976-983c-50226e58210b-bluemix.cloudantnosqldb.appdomain.cloud

```

I got it from here

 ![Cloudant_Service credentials - Copy](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/0/0004e9a965de37d57cf6850a44b5ee2eec2afb0a.jpeg)

And put it like that

 ![2020-09-24-182420_800x480_scrot](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/e/8efe756ad3cb9716f68820185dd381ac53fbc3b7.png)

---

<div class="post-metadata">

**Author:** ![Martin10](https://avatars.discourse-cdn.com/v4/letter/m/a587f6/32.png) [@Martin10](https://discourse.nodered.org/u/Martin10)\
**Post date:** [26 October 2020 14:01 UTC](https://discourse.nodered.org/t/node-red-cloudant/33289/26 "2020-10-26T14:01:50Z")

</div>

I change the host and re-check the rest fields and now i have only this error:

 ![2020-10-26-155602_800x480_scrot](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/6/36c02347904567d64f5b45245fbac217340fd20a.png)

I've got the Credentials info from here:

 ![Credentials](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/3/a3b77e09fb31750ae263c8565ed6c6bb09c7db8c.jpeg)

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [26 October 2020 14:55 UTC](https://discourse.nodered.org/t/node-red-cloudant/33289/27 "2020-10-26T14:55:23Z")

</div>

Can you show us the full string you have got in the Host field please.  
In fact if you select the node and export it and paste it here that would be better. It won't export the password as that is in the credentials file not in the node.

---

<div class="post-metadata">

**Author:** ![Martin10](https://avatars.discourse-cdn.com/v4/letter/m/a587f6/32.png) [@Martin10](https://discourse.nodered.org/u/Martin10)\
**Post date:** [26 October 2020 15:12 UTC](https://discourse.nodered.org/t/node-red-cloudant/33289/28 "2020-10-26T15:12:59Z")

</div>

This is the Credentials

```auto
{
  "cloudant": [
    {
      "name": "Cloudant-o9",
      "credentials": {
        "apikey": "bjUgClYwDgdwPg9wljyvq35TusO55WQ7ungllfGaJ8c5",
        "host": "57fe53d0-4ea6-4976-983c-50226e58210b-bluemix.cloudantnosqldb.appdomain.cloud",
        "url": "https://57fe53d0-4ea6-4976-983c-50226e58210b-bluemix.cloudantnosqldb.appdomain.cloud",
        "username": "57fe53d0-4ea6-4976-983c-50226e58210b-bluemix"
      }
    }
  ]
}

```

This is the node  
[flows.json](https://discourse.nodered.org/uploads/short-url/yc2kQmKfXGsVVPIlBWx9rX9aia4.json) (378 Bytes)

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [26 October 2020 15:23 UTC](https://discourse.nodered.org/t/node-red-cloudant/33289/29 "2020-10-26T15:23:19Z")

</div>

I notice the url in the video is not like yours at the end, but I don't know whether that is significant.

---

<div class="post-metadata">

**Author:** ![Martin10](https://avatars.discourse-cdn.com/v4/letter/m/a587f6/32.png) [@Martin10](https://discourse.nodered.org/u/Martin10)\
**Post date:** [26 October 2020 15:26 UTC](https://discourse.nodered.org/t/node-red-cloudant/33289/30 "2020-10-26T15:26:47Z")

</div>

I think that when we create service, the Credentials are individual for each one

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [26 October 2020 15:33 UTC](https://discourse.nodered.org/t/node-red-cloudant/33289/31 "2020-10-26T15:33:14Z")

</div>

I am out of ideas again, sorry.

---

<div class="post-metadata">

**Author:** ![Martin10](https://avatars.discourse-cdn.com/v4/letter/m/a587f6/32.png) [@Martin10](https://discourse.nodered.org/u/Martin10)\
**Post date:** [26 October 2020 15:44 UTC](https://discourse.nodered.org/t/node-red-cloudant/33289/32 "2020-10-26T15:44:35Z")

</div>

Do i need some IBM IoT or wiotp out nodes ?

---

<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:** [25 December 2020 15:44 UTC](https://discourse.nodered.org/t/node-red-cloudant/33289/33 "2020-12-25T15:44:35Z")

</div>

Closed on 25 December 2020 15:44 UTC

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

[Previous page](https://discourse.nodered.org/t/node-red-cloudant/33289.md?page=1)
