{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla/fxa-js-client/issues/149","labels_url":"https://api.github.com/repos/mozilla/fxa-js-client/issues/149/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/fxa-js-client/issues/149/comments","events_url":"https://api.github.com/repos/mozilla/fxa-js-client/issues/149/events","html_url":"https://github.com/mozilla/fxa-js-client/issues/149","id":74973478,"number":149,"title":"ReferenceError: XMLHttpRequest is not defined","user":{"login":"pdehaan","id":557895,"avatar_url":"https://avatars.githubusercontent.com/u/557895?v=3","gravatar_id":"","url":"https://api.github.com/users/pdehaan","html_url":"https://github.com/pdehaan","followers_url":"https://api.github.com/users/pdehaan/followers","following_url":"https://api.github.com/users/pdehaan/following{/other_user}","gists_url":"https://api.github.com/users/pdehaan/gists{/gist_id}","starred_url":"https://api.github.com/users/pdehaan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pdehaan/subscriptions","organizations_url":"https://api.github.com/users/pdehaan/orgs","repos_url":"https://api.github.com/users/pdehaan/repos","events_url":"https://api.github.com/users/pdehaan/events{/privacy}","received_events_url":"https://api.github.com/users/pdehaan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-05-10T18:27:56Z","updated_at":"2015-05-12T00:36:09Z","closed_at":null,"body":"## Steps to reproduce:\r\n1. `npm i fxa-js-client -S`\r\n2. Add the following code to a file:\r\n    ```js\r\n    var FxaClient = require('fxa-js-client')\r\n\r\n    var client = new FxaClient()\r\n    console.log(client)\r\n```\r\n\r\n## Actual results\r\n```\r\n$ node test.js\r\n\r\n/Users/pdehaan/dev/github/restmail-autoauth/node_modules/fxa-js-client/client/lib/request.js:23\r\n    this.xhr = xhr || XMLHttpRequest;\r\n                      ^\r\nReferenceError: XMLHttpRequest is not defined\r\n    at new Request (/Users/pdehaan/dev/github/restmail-autoauth/node_modules/fxa-js-client/client/lib/request.js:23:23)\r\n    at NodeFxAccountClient.FxAccountClient (/Users/pdehaan/dev/github/restmail-autoauth/node_modules/fxa-js-client/client/FxAccountClient.js:41:20)\r\n    at new NodeFxAccountClient (/Users/pdehaan/dev/github/restmail-autoauth/node_modules/fxa-js-client/node/index.js:29:19)\r\n    at Object.<anonymous> (/Users/pdehaan/dev/github/restmail-autoauth/test.js:3:14)\r\n    at Module._compile (module.js:456:26)\r\n    at Object.Module._extensions..js (module.js:474:10)\r\n    at Module.load (module.js:356:32)\r\n    at Function.Module._load (module.js:312:12)\r\n    at Function.Module.runMain (module.js:497:10)\r\n    at startup (node.js:119:16)\r\n```"},"comment":{"url":"https://api.github.com/repos/mozilla/fxa-js-client/issues/comments/101082306","html_url":"https://github.com/mozilla/fxa-js-client/issues/149#issuecomment-101082306","issue_url":"https://api.github.com/repos/mozilla/fxa-js-client/issues/149","id":101082306,"user":{"login":"pdehaan","id":557895,"avatar_url":"https://avatars.githubusercontent.com/u/557895?v=3","gravatar_id":"","url":"https://api.github.com/users/pdehaan","html_url":"https://github.com/pdehaan","followers_url":"https://api.github.com/users/pdehaan/followers","following_url":"https://api.github.com/users/pdehaan/following{/other_user}","gists_url":"https://api.github.com/users/pdehaan/gists{/gist_id}","starred_url":"https://api.github.com/users/pdehaan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pdehaan/subscriptions","organizations_url":"https://api.github.com/users/pdehaan/orgs","repos_url":"https://api.github.com/users/pdehaan/repos","events_url":"https://api.github.com/users/pdehaan/events{/privacy}","received_events_url":"https://api.github.com/users/pdehaan/received_events","type":"User","site_admin":false},"created_at":"2015-05-12T00:36:09Z","updated_at":"2015-05-12T00:36:09Z","body":"Basically, what I'm trying to do is create a new FxA account, retrieve the email from restmail.net, get the \"x-link\" header, and verify the account using the fxa-js-client (so I can try writing some end-to-end tests for Pocket)."}}