Bugzilla:BzAPI: Difference between revisions

Jump to navigation Jump to search
No edit summary
Line 74: Line 74:
== Errors ==
== Errors ==


If methods are not successful for whatever reason, they will return an [[Bugzilla:REST_API:Objects#Error|Error]].
If methods are not successful for whatever reason, they will return an [[Bugzilla:REST_API:Objects#Error|Error]]. You should test every API return to see if it is an error ("error" member set to a true value).


The "code" field, if present, will give an error code from [[Bugzilla:WebServices:Errors|this list]]. The other member variables of the object are not stable, and should not be relied upon. The html_page, in particular, is only there so you can read it manually for a better idea of what the error was, and ask for the API to support it properly.
The "code" field on an Error, if present, will give an error code from [[Bugzilla:WebServices:Errors|this list]]. The other member variables of the object are not stable, and should not be relied upon. The html_page, in particular, is only there so you can read it manually for a better idea of what the error was, and ask for the API to support it properly.


==Your Own Installation==
==Your Own Installation==
Account confirmers, Anti-spam team, Confirmed users, Bureaucrats and Sysops emeriti
4,925

edits

Navigation menu