Page MenuHomePhabricator

Conduit Error On audit.query - Attempting to access attached data on PhabricatorRepositoryCommit
Closed, ResolvedPublic

Description

On this page: https://secure.phabricator.com/conduit/method/audit.query/

Entering this in the commitPHIDs field:

["PHID-CMIT-nhlgtxvlhbihdn5nfv52"]

Returns an error:

error_code ERR-CONDUIT-CORE
error_info Attempting to access attached data on PhabricatorRepositoryCommit (via getAudits()), but the data is not actually attached. Before accessing attachable data on an object, you must load and attach it.

Data is normally attached by calling the corresponding needX() method on the Query class when the object is loaded. You can also call the corresponding attachX() method explicitly.

Seems like this is a bug. Or perhaps I am misunderstanding the API?

Event Timeline

jpb0104 updated the task description. (Show Details)
jpb0104 added a project: Conduit.
jpb0104 added a subscriber: jpb0104.

Querying by authorPHIDs works.

["PHID-USER-nbueerxdfl6csylnv6oe"]
jpb0104 renamed this task from Conduit to Conduit Error On audit.query - Attempting to access attached data on PhabricatorRepositoryCommit.Sep 17 2015, 1:43 PM
epriestley triaged this task as Normal priority.