[traceback] /api/v1/fireplace/search/featured/: AttributeError 'NoneType' object has no attribute 'get_price_..

VERIFIED FIXED in 2013-09-24

Status

Marketplace
Consumer Pages
P1
blocker
VERIFIED FIXED
4 years ago
4 years ago

People

(Reporter: krupa, Assigned: wraithan)

Tracking

({regression})

2013-09-24
regression
Points:
---

Details

(URL)

(Reporter)

Description

4 years ago
steps to reproduce:
1. Load https://marketplace-dev.allizom.org/
2. Click on the 'New' link

sentry: http://sentry.dmz.phx1.mozilla.com/addons/marketplace-dev/group/16748/

traceback details:
/api/v1/fireplace/search/featured/: AttributeError 'NoneType' object has no attribute 'get_price_region_ids'
['  File "/data/addons-dev/www/addons-dev.allizom.org/current/venv/lib/python2.6/site-packages/tastypie/resources.py", line 192, in wrapper\n    response = callback(request, *args, **kwargs)\n', '  File "/data/addons-dev/www/addons-dev.allizom.org/current/venv/lib/python2.6/site-packages/ta

Stacktrace (most recent call last):

  File "tastypie/resources.py", line 192, in wrapper
    response = callback(request, *args, **kwargs)
  File "tastypie/resources.py", line 397, in dispatch_list
    return self.dispatch('list', request, **kwargs)
  File "mkt/api/base.py", line 101, in dispatch
    .dispatch(request_type, request, **kwargs))
  File "tastypie/resources.py", line 427, in dispatch
    response = method(request, **kwargs)
  File "mkt/search/api.py", line 105, in get_list
    page = self.paginate_results(request, qs)
  File "mkt/search/api.py", line 85, in paginate_results
    page['objects'] = self.rehydrate_results(request, page['objects'])
  File "mkt/search/api.py", line 94, in rehydrate_results
    return [self.full_dehydrate(bundle) for bundle in objs]
  File "tastypie/resources.py", line 662, in full_dehydrate
    bundle = self.dehydrate(bundle)
  File "mkt/search/api.py", line 118, in dehydrate
    request=bundle.request))
  File "mkt/webapps/utils.py", line 221, in es_app_to_dict
    if (region in app.upsell.get_price_region_ids() or
(Assignee)

Updated

4 years ago
Assignee: nobody → wraithan
Severity: normal → blocker
Priority: -- → P1
Target Milestone: --- → 2013-09-24
https://github.com/mozilla/zamboni/commit/85c59e6a6677677bdb2117f41d451fdd07bb2d14

Required a bit of rework but got the job done.
Status: NEW → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → FIXED
(Reporter)

Comment 2

4 years ago
verified fixed at https://marketplace-dev.allizom.org/ and https://marketplace-dev.allizom.org/search?q=%3Apaid
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.