Node-RED unable to find Discovery Collection

#1

I have an environment set up in Node-RED which has two collections. When I use the 'list-collections' property of the Discovery node it returns an empty array.

I can see that the collections are present in the environment (it reads Collections: 2 / 100) and the 'environment-details' section of the Discovery node works perfectly fine with the same environment. The debug node is outputting 'msg.collections' as it should, but it still returns just an empty array.

Does anybody have any idea what the issue might be here?

Thanks.

0 Likes

#2

??? What are these?

0 Likes

#3

I am unable to reproduce. In my test system, I can list collections for a given environment?
You need to specify an environment, and there are two ways to do this. First is to use the configuration panel. Second is to set msg.discoveryparams.environment_id. If this is set then that takes precedence over the configuration panel.

How did you create the collection?
What version of the nodes are you using - current latest is 0.7.8 ?
What version of node-red are you running?

0 Likes

#4

The missing information here is that this is a question regarding the Watson Discovery service running in IBM Cloud. Thankfully @chughts has stepped in already.

0 Likes

#5

I created the collection through the discovery service itself. As far as I'm aware I'm using the latest version of the nodes/node-red - I'm not sure how to check but it's the one hosted through the node-red interface itself if that helps at all.

I'm not entirely sure why, but importing the entire node-red instance to a new account seems to have fixed the problem, even though it's the same configuration - there were a fair few instances open on the original account so I think it's possible that I was doing something stupid in regards to them, or possibly the environment id as you suggested. Thank you so much for your help - so sorry for the trouble.

0 Likes