{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla/fxa-js-client/issues/142","labels_url":"https://api.github.com/repos/mozilla/fxa-js-client/issues/142/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/fxa-js-client/issues/142/comments","events_url":"https://api.github.com/repos/mozilla/fxa-js-client/issues/142/events","html_url":"https://github.com/mozilla/fxa-js-client/issues/142","id":55098862,"number":142,"title":"404 for `POST /undefined/v1/recovery_email/verify_code`","user":{"login":"jrgm","id":758162,"avatar_url":"https://avatars.githubusercontent.com/u/758162?v=3","gravatar_id":"","url":"https://api.github.com/users/jrgm","html_url":"https://github.com/jrgm","followers_url":"https://api.github.com/users/jrgm/followers","following_url":"https://api.github.com/users/jrgm/following{/other_user}","gists_url":"https://api.github.com/users/jrgm/gists{/gist_id}","starred_url":"https://api.github.com/users/jrgm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrgm/subscriptions","organizations_url":"https://api.github.com/users/jrgm/orgs","repos_url":"https://api.github.com/users/jrgm/repos","events_url":"https://api.github.com/users/jrgm/events{/privacy}","received_events_url":"https://api.github.com/users/jrgm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-01-22T00:37:17Z","updated_at":"2015-06-09T21:53:26Z","closed_at":null,"body":"Was looking at some Kibana logs of 404 on the content server and noticed this odd url that was 404:\r\n\r\n`POST /undefined/v1/recovery_email/verify_code HTTP/1.1\"`\r\n\r\nThere's quite a few of these and they don't appear to be tied to any particular browser version.\r\n\r\n```\r\n{\r\n  \"_source\": {\r\n    \"Timestamp\": \"2015-01-21T09:26:09.440Z\",\r\n    \"Type\": \"elb_upstream\",\r\n    \"Logger\": \"FxaContentWebserver\",\r\n    \"Severity\": 7,\r\n    \"Payload\": \"\",\r\n    \"EnvVersion\": \"\",\r\n    \"Pid\": 0,\r\n    \"Hostname\": \"ip-nnn-nnn-nnn-nnn\",\r\n    \"upstream_response_time\": 0.003,\r\n    \"http_x_forwarded_for\": \"\",\r\n    \"http_referer\": \"https://accounts.firefox.com/verify_email?uid=xxxxx&code=xxxxx\",\r\n    \"body_bytes_sent\": 672,\r\n    \"user_agent_browser\": \"Chrome\",\r\n    \"user_agent_os\": \"Android\",\r\n    \"user_agent_version\": 39,\r\n    \"request\": \"POST /undefined/v1/recovery_email/verify_code HTTP/1.1\",                                                                    \r\n    \"request_time\": 0.003,                                                                                                                  \r\n    \"status\": 404                                                                                                                           \r\n  },                                                                                                                                        \r\n}     \r\n```\r\n\r\n\r\nIn a rough look, it looks like the check here needs to guard against undefined\r\nhttps://github.com/mozilla/fxa-js-client/blob/ec7b4bcd4e797dda2f7a3bac077af87f6ec0fa17/client/FxAccountClient.js#L37\r\nDidn't trace back to where the caller of that is passing in an empty uri though."},"comment":{"url":"https://api.github.com/repos/mozilla/fxa-js-client/issues/comments/110515208","html_url":"https://github.com/mozilla/fxa-js-client/issues/142#issuecomment-110515208","issue_url":"https://api.github.com/repos/mozilla/fxa-js-client/issues/142","id":110515208,"user":{"login":"vladikoff","id":128755,"avatar_url":"https://avatars.githubusercontent.com/u/128755?v=3","gravatar_id":"","url":"https://api.github.com/users/vladikoff","html_url":"https://github.com/vladikoff","followers_url":"https://api.github.com/users/vladikoff/followers","following_url":"https://api.github.com/users/vladikoff/following{/other_user}","gists_url":"https://api.github.com/users/vladikoff/gists{/gist_id}","starred_url":"https://api.github.com/users/vladikoff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vladikoff/subscriptions","organizations_url":"https://api.github.com/users/vladikoff/orgs","repos_url":"https://api.github.com/users/vladikoff/repos","events_url":"https://api.github.com/users/vladikoff/events{/privacy}","received_events_url":"https://api.github.com/users/vladikoff/received_events","type":"User","site_admin":false},"created_at":"2015-06-09T21:53:26Z","updated_at":"2015-06-09T21:53:26Z","body":"@shane-tomlinson yeah \r\n\r\n![](http://v14d.com/i/557760470c948.png)"}}