BMO rest api search: Failed to fetch key from network storage when an attachment has been deleted
Categories
(bugzilla.mozilla.org :: Search, defect)
Tracking
()
People
(Reporter: heather, Assigned: dkl)
Details
Attachments
(1 file)
Thunderbird has been contracting with Bitergia to gather contributor data across platforms, including BMO. So on behalf of Thunderbird, Bitergia is issuing BMO REST API queries trying to gather data on all of our bugs.
For some reason the the Bugzilla REST API is not returning the page they need to keep downloading tickets. The failure message is "Failed to fetch key 9278962 from network storage: Not Found" and the query that fails is below. I've removed the api_key parameter, but the result can be checked without it.
I asked about this in the matrix channel and dkl kindly helped with a suggested replacement query:
https://bugzilla.mozilla.org/rest/bug?include_fields=_all&f1=delta_ts&o1=greaterthaneq&product=Thunderbird&v1=2025-10-23 15%3A54%3A32
and suggested that we make sure the query works from the web UI at https://bugzilla.mozilla.org/query.cgi and then use the same similar query parameters with the /rest/bug API call.
I relayed this to Bitergia but they still say that with the modified query they still hit this error sometimes and then the remaining bugs from that same day are skipped, once it encounters the error. So I'm filing this bug to bridge the communication gap and see how we can get past this error by either fixing something within BMO or further modifying our query to get the desired results.
Thanks so much!!
Comment 1•1 month ago
|
||
Adding some info on this since I came across it in another scenario:
This seems to appear when the attachments field is requested, and one of the attachments in the search results has been deleted (but not marked private). The fix, as dkl mentioned, would be to filter out attachments that have been deleted.
My minimal test case was https://bugzilla.mozilla.org/rest/bug?id=2055129&include_fields=attachments though this was before the attachment was marked private.
Updated•9 days ago
|
| Assignee | ||
Updated•4 days ago
|
Comment 2•4 days ago
|
||
Comment 3•4 days ago
|
||
Authored by https://github.com/dklawren
https://github.com/mozilla/bmo/commit/aef8bc9526a6805670ff938aaba662f7197cf484
[master] Bug 2002553 - BMO rest api search: Failed to fetch key from network storage when an attachment has been deleted
| Assignee | ||
Updated•1 day ago
|
Description
•