watson-developer-cloud / node-red-node-watson

A collection of nodes for the IBM Watson services
Apache License 2.0
82 stars 86 forks source link

unable to use apikey on sydney region with watson assitance #424

Closed psyntium closed 6 years ago

psyntium commented 6 years ago

i've connected WA with NodeRed app

when sending payload to WA node, getting this error: TypeError: Cannot read property 'username' of undefined

I'm using apikey with sydney region. So I'm not sure if the issue is with apikey or the region

Now i'm using http node for WA and it is working fine.

chughts commented 6 years ago

This is strange as my testing for IAM was on both bound and unbound Sydney services. What version of the Watson Nodes are you using? Are you running in the cloud or elsewhere? Have you bound in the services? Do you specify an endpoint.

My gut feel is that this is a user error, but I will allow this to be an issue until I have more information.

psyntium commented 6 years ago

ok.. it comes with the node-red starter.. version is 0.6.14.. tried to update directly from nodered, but it doesn't work..

will try it manually and confirm the behaviour

chughts commented 6 years ago

Latest is 0.7.3, IAM Key support was added in 0.7.0. I am closing this is as a user error. Feel free to open up a question either on DeveloperWorks Answers or Stack overflow as a follow up. I am sure others will be hitting the same problem.

psyntium commented 6 years ago

ok sure.. thanks!