Open Bug 1675687 Opened 4 years ago Updated 4 years ago

API returns Bad Gateway

Categories

(bugzilla.mozilla.org :: API, task)

Tracking

()

People

(Reporter: ewong, Unassigned)

Details

I'm currently using python and the requests module, and am encountering "502 Bad Gateway" errors sporadically. The API documentation doesn't specify what causes this.

What I'm trying to get:

https://bugzilla.mozilla.org/rest/bugs?product=SeaMonkey&component=Build Config

If I look at the chart of components, SeaMonkey::Build Config only has 65 bugs in total,
so I'm not sure I'm hitting a limit since the previous lookup for Bookmarks & History (having 99 bugs as of this writing) was ok (though I also got a Bad Gateway for that once).

I am using the BMO API key, if this makes any difference.

Summary: No explanation for when the api returns Bad Gateway → API returns Bad Gateway

In the documentation, under "Get Bug", it lists errors. 100, 101 and 102. Maybe 502 should also be included as well as an explanation?

Just ran my script again and finally got a Non-502 response:

{
"error": true,
"documentation": "https://bmo.readthedocs.io/en/latest/api/",
"message": null,
"code": 100500
}
Not exactly sure what this means as there's no message.

You need to log in before you can comment on or make changes to this bug.