ibm-watson-iot/iot-nodejs

WebApplicationSample instructions don't work

YasharF opened this issue · 5 comments

Following the instructions at https://github.com/ibm-watson-iot/iot-nodejs/tree/master/samples/WebApplicationSample the user does not get the expected results when pressing the Connect button, nothing happens from the users end. Looking at the debug tab of the browser there is a error "failed: Error in connection establishment: net::ERR_NAME_NOT_RESOLVED" in Chrome's console, and "WebSocket Error: Network Error 12007, The server name or address could not be resolved" in IE. I tried on two different systems/setups:

Chrome case setup: Win10 bash/Ubuntu , NodeJS v10.7.0, private LAN
IE case: Windows Server 2012 R2, NodeJS v8.11.2, EC2 public cloud

I also tried deleting the app and recreating a new API key and got the same results.

Hi. Are you sure you have the correct orgid? I tried this just now, and it worked.

Just following the instructions in the above link. I don't see anything in that readme.md. Perhaps, the instructions are just incomplete.

You have to fill out the three fields:

  1. OrgId - a Watson IoT Platform organisation
  2. application key
  3. auth token

these have to already exist in yours or someone else's organisation. If I don't fill out the three fields, I get a prompt to do so (in Chrome).

I just retried, but still getting the same error. Assuming that it is not a software bug as you mentioned, then it is probably a documentation/instruction issue on making sure to grab the right values form the right place in the console, or a problem with my account. Either way, I can't spend more time on this. Going to use a different platform. Thanks for getting back to me.

Ok, thanks.