{"action":"created","issue":{"url":"https://api.github.com/repos/disqus/python-phabricator/issues/22","labels_url":"https://api.github.com/repos/disqus/python-phabricator/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/disqus/python-phabricator/issues/22/comments","events_url":"https://api.github.com/repos/disqus/python-phabricator/issues/22/events","html_url":"https://github.com/disqus/python-phabricator/issues/22","id":91059728,"number":22,"title":"Fails with my .arcrc which only contains token","user":{"login":"gnoronha","id":1271291,"avatar_url":"https://avatars.githubusercontent.com/u/1271291?v=3","gravatar_id":"","url":"https://api.github.com/users/gnoronha","html_url":"https://github.com/gnoronha","followers_url":"https://api.github.com/users/gnoronha/followers","following_url":"https://api.github.com/users/gnoronha/following{/other_user}","gists_url":"https://api.github.com/users/gnoronha/gists{/gist_id}","starred_url":"https://api.github.com/users/gnoronha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gnoronha/subscriptions","organizations_url":"https://api.github.com/users/gnoronha/orgs","repos_url":"https://api.github.com/users/gnoronha/repos","events_url":"https://api.github.com/users/gnoronha/events{/privacy}","received_events_url":"https://api.github.com/users/gnoronha/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-25T19:54:50Z","updated_at":"2015-06-27T08:46:46Z","closed_at":null,"body":"My .arcrc was produced by running arc install-certificate and looks like this:\r\n\r\n```\r\n{\r\n  \"hosts\": {\r\n    \"https:\\/\\/phabricator[redacted]\\/api\\/\": {\r\n      \"token\": \"cli-[redacted]\"\r\n    }\r\n  }\r\n}\r\n```\r\n\r\npython-phabricator complains about not finding the user key and, after I added it by hand, it complains about the cert key not being found:\r\n\r\n```\r\n>>> phab = Phabricator()\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\n  File \"/home/kov/.local/lib/python2.7/site-packages/phabricator-0.4.0-py2.7.egg/phabricator/__init__.py\", line 318, in __init__\r\n    self.certificate = certificate if certificate else ARCRC['hosts'][self.host]['cert']\r\nKeyError: 'cert'\r\n>>> \r\n```"},"comment":{"url":"https://api.github.com/repos/disqus/python-phabricator/issues/comments/115987063","html_url":"https://github.com/disqus/python-phabricator/issues/22#issuecomment-115987063","issue_url":"https://api.github.com/repos/disqus/python-phabricator/issues/22","id":115987063,"user":{"login":"koobs","id":1011612,"avatar_url":"https://avatars.githubusercontent.com/u/1011612?v=3","gravatar_id":"","url":"https://api.github.com/users/koobs","html_url":"https://github.com/koobs","followers_url":"https://api.github.com/users/koobs/followers","following_url":"https://api.github.com/users/koobs/following{/other_user}","gists_url":"https://api.github.com/users/koobs/gists{/gist_id}","starred_url":"https://api.github.com/users/koobs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koobs/subscriptions","organizations_url":"https://api.github.com/users/koobs/orgs","repos_url":"https://api.github.com/users/koobs/repos","events_url":"https://api.github.com/users/koobs/events{/privacy}","received_events_url":"https://api.github.com/users/koobs/received_events","type":"User","site_admin":false},"created_at":"2015-06-27T08:46:46Z","updated_at":"2015-06-27T08:46:46Z","body":"Do tests pass after including this commit?\r\n\r\nI see this failure:\r\n\r\n```\r\n  File \"/usr/home/koobs/repos/freebsd/ports/devel/py-phabricator/work/phabricator-0.4.0/phabricator/tests.py\", line 14, in setUp\r\n    self.api = phabricator.Phabricator(username='test', certificate='test', host='http://localhost')\r\n  File \"/usr/home/koobs/repos/freebsd/ports/devel/py-phabricator/work/phabricator-0.4.0/phabricator/__init__.py\", line 296, in __init__\r\n    if token or ARCRC['hosts'][self.host].has_key('token'):\r\nKeyError: 'http://localhost'\r\n```\r\nIn the following tests:\r\n\r\ntest_connect (phabricator.tests.PhabricatorTest) ... ERROR\r\ntest_generate_hash (phabricator.tests.PhabricatorTest) ... ERROR\r\ntest_maniphest_find (phabricator.tests.PhabricatorTest) ... ERROR\r\ntest_user_whoami (phabricator.tests.PhabricatorTest) ... ERROR\r\ntest_validation (phabricator.tests.PhabricatorTest) ... ERROR\r\n\r\n\r\n "}}