{"action":"created","issue":{"url":"https://api.github.com/repos/jsforce/jsforce/issues/168","labels_url":"https://api.github.com/repos/jsforce/jsforce/issues/168/labels{/name}","comments_url":"https://api.github.com/repos/jsforce/jsforce/issues/168/comments","events_url":"https://api.github.com/repos/jsforce/jsforce/issues/168/events","html_url":"https://github.com/jsforce/jsforce/issues/168","id":54997572,"number":168,"title":"jsforce.Connection is not a constructor","user":{"login":"georgenjthomas","id":678376,"avatar_url":"https://avatars.githubusercontent.com/u/678376?v=3","gravatar_id":"","url":"https://api.github.com/users/georgenjthomas","html_url":"https://github.com/georgenjthomas","followers_url":"https://api.github.com/users/georgenjthomas/followers","following_url":"https://api.github.com/users/georgenjthomas/following{/other_user}","gists_url":"https://api.github.com/users/georgenjthomas/gists{/gist_id}","starred_url":"https://api.github.com/users/georgenjthomas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/georgenjthomas/subscriptions","organizations_url":"https://api.github.com/users/georgenjthomas/orgs","repos_url":"https://api.github.com/users/georgenjthomas/repos","events_url":"https://api.github.com/users/georgenjthomas/events{/privacy}","received_events_url":"https://api.github.com/users/georgenjthomas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-21T09:48:40Z","updated_at":"2015-01-23T07:35:15Z","closed_at":null,"body":"I have copied the code from JSForce and i couldnt even find it working in my developer instance. Could you please help me\r\n\r\nI'm getting the following error \r\n\"jsforce.Connection is not a constructor\"\r\n\r\nI have placed the jsforce.js file as a static resource on server. Please help me, thanks in advance!\r\n\r\n<apex:page docType=\"html-5.0\" showHeader=\"false\">\r\n  <apex:includeScript value=\"{!URLFOR($Resource.JSforce)}\" />\r\n  <script>\r\nfunction jsforce()\r\n{\r\n    var conn = new jsforce.Connection({ accessToken: '{!$Api.Session_Id}' });\r\n    conn.query('SELECT Id, Name FROM Account', function(err, res) \r\n    {\r\n      if (err) \r\n      { alert(err);\r\n      }\r\n         alert(res);\r\n    });\r\n}\r\n\r\n      </script>\r\n  \r\n<b onClick=\"jsforce()\">Test</b>\r\n</apex:page>"},"comment":{"url":"https://api.github.com/repos/jsforce/jsforce/issues/comments/71157380","html_url":"https://github.com/jsforce/jsforce/issues/168#issuecomment-71157380","issue_url":"https://api.github.com/repos/jsforce/jsforce/issues/168","id":71157380,"user":{"login":"stomita","id":23387,"avatar_url":"https://avatars.githubusercontent.com/u/23387?v=3","gravatar_id":"","url":"https://api.github.com/users/stomita","html_url":"https://github.com/stomita","followers_url":"https://api.github.com/users/stomita/followers","following_url":"https://api.github.com/users/stomita/following{/other_user}","gists_url":"https://api.github.com/users/stomita/gists{/gist_id}","starred_url":"https://api.github.com/users/stomita/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stomita/subscriptions","organizations_url":"https://api.github.com/users/stomita/orgs","repos_url":"https://api.github.com/users/stomita/repos","events_url":"https://api.github.com/users/stomita/events{/privacy}","received_events_url":"https://api.github.com/users/stomita/received_events","type":"User","site_admin":false},"created_at":"2015-01-23T07:35:15Z","updated_at":"2015-01-23T07:35:15Z","body":"Not sure what happened here. Please check you surely loaded jsforce.js in browser's developer tool console."}}