Closed Bug 861096 Opened 11 years ago Closed 11 years ago

Search/filter in reviewer tools fails because of Internal Server Error

Categories

(Marketplace Graveyard :: Reviewer Tools, defect, P1)

defect

Tracking

(Not tracked)

RESOLVED FIXED
2013-04-25

People

(Reporter: TheOne, Assigned: andy+bugzilla)

References

Details

(Whiteboard: p=1)

https://marketplace.firefox.com/api/v1/apps/search/?q=&status=pending&app_type=&device=desktop&limit=200

returns HTTP 500, message:

{"error_code": "AttributeError", "error_data": {}, "error_message": "'NoneType' object has no attribute 'get_price_locale'"}

causing the search/filter feature in the reviewer tools to fail.
Summary: Search/filter in reviewer tools fails because of Internal Server Error on sentry → Search/filter in reviewer tools fails because of Internal Server Error
Relevant sentry is http://sentry.dmz.phx1.mozilla.com/addons/marketplace/group/13057 - but that has only a truncated message:

/api/v1/apps/search/: AttributeError 'NoneType' object has no attribute 'get_price_locale'
  File "/data/www/addons.mozilla.org/venv/lib/python2.6/site-packages/tastypie/resources.py", line 192, in wrapper
    response = callback(request, *args, **kwargs)

  File "/data/www/addons.mozilla.org/venv/lib/python2.6/site-packages/tastypie/resources.py", line 397, in dispatch_list
    return self.dispat
its working now... *shurgs*
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WORKSFORME
re-opening this one as its happened again
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
Assignee: nobody → amckay
Priority: -- → P1
Target Milestone: --- → 2013-04-18
https://github.com/mozilla/zamboni/commit/f54bbf

Not sure if that's the issue, but its a bit saner.
Whiteboard: p=1
https://github.com/mozilla/zamboni/commit/d09816f5

raven has 2 different SentryHandler classes.  I was using the wrong one by accident.  Request and User sections should show up now for tastypie generated errors.
Status: REOPENED → RESOLVED
Closed: 11 years ago11 years ago
Resolution: --- → FIXED
(In reply to Victor Ng [:vng] [:crankycoder] from comment #7)
> https://github.com/mozilla/zamboni/commit/d09816f5
> 
> raven has 2 different SentryHandler classes.  I was using the wrong one by
> accident.  Request and User sections should show up now for tastypie
> generated errors.

This should give us better errors but doesn't seem to address the actual bug.  
Andy - is this bug fixed?
Flags: needinfo?(amckay)
:andym I don't have ES setup locally to check the test that broke https://ci.mozilla.org/job/marketplace/3713/ 

:eviljeff - the sentry fix just gives us better errors.  Sorry - I misunderstood the chatter on IRC.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
There wasn't enough info in the existing traceback to be sure. I did some code cleaning in the commit referenced in comment 6 and that should help. Let's close it for now and if it happens again, we'll re-open.
Flags: needinfo?(amckay)
Status: REOPENED → RESOLVED
Closed: 11 years ago11 years ago
Resolution: --- → FIXED
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Target Milestone: 2013-04-18 → 2013-04-25
Depends on: 864569
https://github.com/mozilla/zamboni/commit/9e7aec

Well its a workaround, pending bug 864569.
Status: REOPENED → RESOLVED
Closed: 11 years ago11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.