Page MenuHomePhabricator

maniphest.update(status) always returns empty when I use conduit api; but works fine using conduit webpage
Closed, ResolvedPublic

Description

All my other requests work perfectly; except when I try to run this command for any id, or phid, it returns None; but when I submit it via website, it works... maniphest.query works perfectly as expected.

req = requests.post ('%s/api/maniphest.update' % PHAB, data = {
    'params': json_dumps({
      'phid':'PHID-TASK-ruyzvf6gzhlkupifcepv',
      'status': 'resolved',
      ....

results = None

maniphest.conduit.png (676×450 px, 18 KB)

Event Timeline

JoggerTech renamed this task from maniphest.update always returns empty when I use conduit api; but works fine using conduit webpage to maniphest.update(status) always returns empty when I use conduit api; but works fine using conduit webpage.
JoggerTech raised the priority of this task from to Needs Triage.
JoggerTech updated the task description. (Show Details)
JoggerTech updated the task description. (Show Details)
JoggerTech updated the task description. (Show Details)
JoggerTech added a subscriber: JoggerTech.

Did you try also testing with arc?

No, my program is not using arc; it is using conduit.api.

arcanist can also be used to test conduit calls.

echo '{yourjsonhere}' | arc call-conduit maniphest.update

The task you filed here is unclear to me if you are asking for help debugging your program or if you are saying there is a bug.

I'm saying that there it appears there is a bug in the latest phabricator build 1/27/2015 git pull for this update. When I have time I'll test this arc call-conduit; but currently setting

 'phid':'PHID-TASK-ruyzvf6gzhlkupifcepv', 'status': 'resolved', 
```isn't working

I know in differential api, only the owner can close; I tried to be someone besides owner via the web phabricator and it appeared to work fine. Is there restrictions tied to the author when it comes to 'tasks' via the maniphest.update api?

Your code looks a little odd; What's the HTTP status you get back in that request?

If you're using Python, consider using https://github.com/disqus/python-phabricator, which is known to work.

There are no limitations about updating task status, other than the permissions you can customize for each task.

JoggerTech claimed this task.

Thanks Avivey,

I used python-phabricator and it works really well; I guess there are some syntax in the json which I wasn't able to send via post request.