Bug 201139

Summary: API token rejected by arc install-certificate
Product: Services Reporter: Patrick Kelsey <pkelsey>
Component: Code ReviewAssignee: Phabric Admin <phabric-admin>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: ---    
Version: unspecified   
Hardware: Any   
OS: Any   

Description Patrick Kelsey freebsd_committer freebsd_triage 2015-06-27 02:40:49 UTC
Using php5-arcanist-20150626 installed from ports r390689:

[pkelsey@]$ arc install-certificate https://reviews.freebsd.org
Trying to connect to server...
LOGIN TO PHABRICATOR
Open this page in your browser and login to Phabricator if necessary:

https://reviews.freebsd.org/conduit/login/

Then paste the API Token on that page below.

    Paste API Token from that page: cli-(mumble)

Usage Exception: The token "cli-(mumble)" is not a valid API Token. The server returned this response when trying to use it as a token: ERR-CONDUIT-CORE: Invalid parameter information was passed to method 'user.whoami'.
Comment 1 Eitan Adler freebsd_committer freebsd_triage 2015-06-27 02:51:00 UTC
I can not reproduce.  Can you please paste the output of 'arc version'?
Comment 2 Patrick Kelsey freebsd_committer freebsd_triage 2015-06-27 03:01:58 UTC
$ arc version
Exception
The current working directory is not part of a working copy for a supported version control system (Git, Subversion or Mercurial).
(Run with `--trace` for a full exception trace.)
Comment 3 Eitan Adler freebsd_committer freebsd_triage 2015-06-27 03:07:57 UTC
you may need to be inside a repo to run 'arc version': for example inside of base/ doc/ or ports/

In particular I'd like to know what version of libphutil you are running (but the actual output of arc version would be the best).
Comment 4 Eitan Adler freebsd_committer freebsd_triage 2015-06-27 03:42:04 UTC
after some live debugging on IRC we've determined that the version of libphutil currently in ports is one short of the workaround for a known libcurl bug.

```
# cd /usr/local/lib/php && mv libphutil libphutil_x && git clone https://github.com/phacility/libphutil/ libphutil
```

will 'fix' the issue temporarily.