{"action":"created","issue":{"url":"https://api.github.com/repos/CrossLead/netsuite-js/issues/2","labels_url":"https://api.github.com/repos/CrossLead/netsuite-js/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/CrossLead/netsuite-js/issues/2/comments","events_url":"https://api.github.com/repos/CrossLead/netsuite-js/issues/2/events","html_url":"https://github.com/CrossLead/netsuite-js/issues/2","id":59518642,"number":2,"title":"\"Error resolving NetSuite datacenter\"","user":{"login":"cmwxf","id":362387,"avatar_url":"https://avatars.githubusercontent.com/u/362387?v=3","gravatar_id":"","url":"https://api.github.com/users/cmwxf","html_url":"https://github.com/cmwxf","followers_url":"https://api.github.com/users/cmwxf/followers","following_url":"https://api.github.com/users/cmwxf/following{/other_user}","gists_url":"https://api.github.com/users/cmwxf/gists{/gist_id}","starred_url":"https://api.github.com/users/cmwxf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmwxf/subscriptions","organizations_url":"https://api.github.com/users/cmwxf/orgs","repos_url":"https://api.github.com/users/cmwxf/repos","events_url":"https://api.github.com/users/cmwxf/events{/privacy}","received_events_url":"https://api.github.com/users/cmwxf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-03-02T18:07:51Z","updated_at":"2015-03-02T18:55:06Z","closed_at":null,"body":"Trying to run the node sample.js file with correct credentials, but does not run:\r\n\r\n    Creating Netsuite connection\r\n    Error resolving NetSuite datacenter\r\n"},"comment":{"url":"https://api.github.com/repos/CrossLead/netsuite-js/issues/comments/76780005","html_url":"https://github.com/CrossLead/netsuite-js/issues/2#issuecomment-76780005","issue_url":"https://api.github.com/repos/CrossLead/netsuite-js/issues/2","id":76780005,"user":{"login":"yangchristian","id":7517088,"avatar_url":"https://avatars.githubusercontent.com/u/7517088?v=3","gravatar_id":"","url":"https://api.github.com/users/yangchristian","html_url":"https://github.com/yangchristian","followers_url":"https://api.github.com/users/yangchristian/followers","following_url":"https://api.github.com/users/yangchristian/following{/other_user}","gists_url":"https://api.github.com/users/yangchristian/gists{/gist_id}","starred_url":"https://api.github.com/users/yangchristian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yangchristian/subscriptions","organizations_url":"https://api.github.com/users/yangchristian/orgs","repos_url":"https://api.github.com/users/yangchristian/repos","events_url":"https://api.github.com/users/yangchristian/events{/privacy}","received_events_url":"https://api.github.com/users/yangchristian/received_events","type":"User","site_admin":false},"created_at":"2015-03-02T18:55:06Z","updated_at":"2015-03-02T18:55:06Z","body":"That stack trace looks like it's pointing to the `JSON.parse()` call on line 125:\r\n\r\n```js\r\nat IncomingMessage.<anonymous> (/Users/cmw/Documents/Work/SGAP-App/netsuite-js/lib/netsuite/configuration.js:125:25)\r\n```\r\n\r\nCan `console.log(data)` (instead of `console.log(json)`)? From your output, it looks like you're now getting somewhat correct info from the discovery service.\r\n\r\nBackground: we're in midst the discovery workflow described under \"Understanding the Effects of Accounts' Host Data Center on URLs\" on p27 of [SuiteTalk (Web Services) Platform Guide](https://system.na1.netsuite.com/help/helpcenter/en_US/PDF/SuiteTalkWebServicesPlatformGuide.pdf)"}}