Skip to content
This repository has been archived by the owner on Feb 24, 2022. It is now read-only.

arcyon task-create/update fails to identify project #9

Closed
michaeloa opened this issue Sep 19, 2014 · 1 comment
Closed

arcyon task-create/update fails to identify project #9

michaeloa opened this issue Sep 19, 2014 · 1 comment

Comments

@michaeloa
Copy link

Running the following command:

arcyon task-create --uri URI --user USERNAME --cert CERT --projects '#PROJECT' --format-id TASK-ID
arcyon task-update --uri URI --user USERNAME --cert CERT --projects '#PROJECT' --format-id TASK-ID

Result in the following error:

Traceback (most recent call last):
File "./arcyon", line 31, in
sys.exit(aoncmd_arcyon.main())
File "/disk1/git/phabricator-tools/py/aon/aoncmd_arcyon.py", line 97, in main
return args.func(args)
File "/disk1/git/phabricator-tools/py/aon/aoncmd_taskupdate.py", line 160, in process
project_to_phid = phlcon_project.make_project_to_phid_dict(conduit)
File "/disk1/git/phabricator-tools/py/phl/phlcon_project.py", line 72, in make_project_to_phid_dict
return {i.name: i.phid for i in query_all(conduit)}
File "/disk1/git/phabricator-tools/py/phl/phlcon_project.py", line 57, in query_all
items = query_some(conduit, window_size, 0)
File "/disk1/git/phabricator-tools/py/phl/phlcon_project.py", line 45, in query_some
results = [QueryResponse(**r) for phid, r in response.iteritems()]
File "/disk1/git/phabricator-tools/py/phl/phlsys_namedtuple.py", line 111, in make_instance
raise Error("missing attributes: " + str(missing_attr))
phlsys_namedtuple.Error: missing attributes: set(['phid', 'name'])

I haven't dug into the code yet, but my brief glance at the docs and conduit suggested that the calls above ought to work. Am I missing anything obvious here?

@aevri
Copy link
Member

aevri commented Sep 19, 2014

Heya!

Your arcyon invocations are good, I just tested them locally.

It looks like arcyon isn't understanding the response it received when asking for the list of projects from your Phabricator.

I checked the latest API by visiting https://secure.phabricator.com/conduit/method/project.query/ and it looks like the response to project.query now has a top-level "data" object so arcyon is out of date there.

I'll look at making it compatible with the new version of the API, thanks for reporting!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants