Node-Red + Cloudant

Anyone have any idea what i have to do?

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.

This is from terminal

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

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

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?

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

I got it from here

And put it like that

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

I've got the Credentials info from here:

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.

This is the Credentials

{
  "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 (378 Bytes)

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

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

I am out of ideas again, sorry.

1 Like

Do i need some IBM IoT or wiotp out nodes ?

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