All users were logged out of Bugzilla on October 13th, 2018

TypeError: sequence item 0: expected string, int found in ClassifiedFailureViewSet.update_many

RESOLVED FIXED

Status

P1
normal
RESOLVED FIXED
2 years ago
2 years ago

People

(Reporter: emorley, Assigned: jgraham)

Tracking

(Blocks: 1 bug)

Details

Attachments

(1 attachment)

(Reporter)

Description

2 years ago
https://rpm.newrelic.com/accounts/677903/applications/4180461/traced_errors/6ccbf414-532e-11e6-9e2c-c81f66b8ceca_21200_25977

PUT to /api/classified-failure/ on prod.

Traceback (most recent call last):
...
File "/data/www/treeherder.mozilla.org/venv/lib/python2.7/site-packages/rest_framework/views.py", line 463, in dispatch
File "/data/www/treeherder.mozilla.org/treeherder-service/treeherder/webapp/api/classifiedfailure.py", line 130, in update_many
File "/data/www/treeherder.mozilla.org/treeherder-service/treeherder/webapp/api/classifiedfailure.py", line 74, in _update
exceptions:TypeError: sequence item 0: expected string, int found

https://github.com/mozilla/treeherder/blob/73f33801df0ad51a765d5e5cba54631fb0c0d516/treeherder/webapp/api/classifiedfailure.py#L74

Which is:

    if len(classified_failures) != len(bug_numbers):
        missing = set(bug_numbers.keys()) - set(classified_failures.keys())
        return ("No classified failures with id: {0}".format(", ".join(missing)),
                HTTP_404_NOT_FOUND)
Flags: needinfo?(james)
Created attachment 8774741 [details] [review]
[treeherder] mozilla:autoclassify_error_string > mozilla:master
(Assignee)

Updated

2 years ago
Flags: needinfo?(james)
Attachment #8774741 - Flags: review?(emorley)
(Reporter)

Updated

2 years ago
Attachment #8774741 - Flags: review?(emorley) → review+

Comment 2

2 years ago
Commit pushed to master at https://github.com/mozilla/treeherder

https://github.com/mozilla/treeherder/commit/f15b1b229a19264bdf54882643d48bc1ad855551
Bug 1289404 - Convert set of integers to strings before trying to construct error message (#1727)
(Reporter)

Updated

2 years ago
Assignee: nobody → james
Status: NEW → RESOLVED
Last Resolved: 2 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.