Page MenuHomeSoftware Heritage
Paste P132

error when posting to forge through api calls
ActivePublic

Authored by ardumont on Feb 8 2017, 5:12 PM.
From either swh-mirror-forge or python3 toplevel:
>>> r = requests.post('https://forge.softwareheritage.org/api/diffusion.repository.search', data={'api.token': 'api-token-redacted', 'attachments': {'uris': True}, 'constraints': {'ids': [78]}})
>>> r.json()
{'error_code': 'ERR-CONDUIT-CORE', 'error_info': 'Argument 1 passed to PhabricatorSearchField::getValueExistsInConduitRequest() must be of the type array, string given, called in /srv/phabricator/phabricator/src/applications/search/engine/PhabricatorApplicationSearchEngine.php on line 1118 and defined', 'result': None}
>>> r.ok
True
which works ok from the conduit api ui:
```text
Method diffusion.repository.search
queryKey X
constraints { "ids": [ 78 ]}
attachments { "uris": true }
order X
before X
after X
limit X
```

Event Timeline

ardumont created this object with edit policy "Staff (Project)".