Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyError: 'bugs' in findOpenBugs #363

Open
sentry-io bot opened this issue Apr 29, 2024 · 3 comments
Open

KeyError: 'bugs' in findOpenBugs #363

sentry-io bot opened this issue Apr 29, 2024 · 3 comments
Labels
Bug Something isn't working

Comments

@sentry-io
Copy link

sentry-io bot commented Apr 29, 2024

Sentry Issue: UPDATEBOT-PROD-1V

KeyError: 'bugs'
  File "automation.py", line 233, in run
    taskRunner.process_task(lib, task)
  File "/builds/worker/updatebot/tasktypes/vendoring.py", line 35, in process_task
    open_bugs = self.bugzillaProvider.find_open_bugs([j.bugzilla_id for j in all_jobs])
  File "components/logging.py", line 38, in func_wrapper
    ret = func(*args, **kwargs)
  File "components/bugzilla.py", line 242, in find_open_bugs
    return findOpenBugs(self.config['url'], filtered_ids)
  File "apis/bugzilla_api.py", line 159, in findOpenBugs
    return [b['id'] for b in j['bugs']]
@sentry-io sentry-io bot added the Bug Something isn't working label Apr 29, 2024
@mozfreddyb
Copy link
Collaborator

Looks like this is connected to an API change? The JSON response we got was

{
code: 100500,
documentation: "https://bmo.readthedocs.io/en/latest/api/"

,
error: True,
message: None
}

@maltejur
Copy link
Collaborator

maltejur commented May 7, 2024

I am not sure what happened there, the api endpoint still works as expected for me locally, and we have only seen this issue one time. I will open a PR to also include the "faulty" JSON in the exception, so that if this happens again, we can investigate further.

@tomrittervg
Copy link
Collaborator

It seems like a transient error, but I wonder if this could occur if a bug was made confidential and there were no results from the request that were non-confidential.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants