Closed Bug 781939 Opened 13 years ago Closed 13 years ago

Traceback: TypeError: 'NoneType' object is not iterable and TypeError: other_dict must be a mapping (dictionary-like) object.

Categories

(Firefox Affiliates Graveyard :: Social Integration, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: osmose, Assigned: osmose)

References

()

Details

(Whiteboard: [qa-])

After the latest push, we've been getting two different types of tracebacks on affiliates-fb-dev: Traceback (most recent call last): File "/data/www/affiliates-fb-dev.allizom.org/affiliates-app/vendor/src/django/django/core/handlers/base.py", line 150, in get_response response = callback(request, **param_dict) File "/data/www/affiliates-fb-dev.allizom.org/affiliates-app/vendor/src/django/django/utils/decorators.py", line 93, in _wrapped_view response = view_func(request, *args, **kwargs) File "/data/www/affiliates-fb-dev.allizom.org/affiliates-app/vendor/src/django/django/views/defaults.py", line 19, in page_not_found return http.HttpResponseNotFound(t.render(RequestContext(request, {'request_path': request.path}))) File "/data/www/affiliates-fb-dev.allizom.org/affiliates-app/vendor/src/django/django/template/context.py", line 173, in __init__ self.update(processor(request)) File "/data/www/affiliates-fb-dev.allizom.org/affiliates-app/vendor/src/django/django/template/context.py", line 102, in update raise TypeError('other_dict must be a mapping (dictionary-like) object.') TypeError: other_dict must be a mapping (dictionary-like) object. Traceback (most recent call last): File "/data/www/affiliates-fb-dev.allizom.org/affiliates-app/vendor/src/django/django/core/handlers/base.py", line 111, in get_response response = callback(request, *callback_args, **callback_kwargs) File "/data/www/affiliates-fb-dev.allizom.org/affiliates-app/apps/shared/decorators.py", line 11, in decorator return view_func(request, *args, **kwargs) File "/data/www/affiliates-fb-dev.allizom.org/affiliates-app/apps/badges/views.py", line 26, in new_badge_step1 {'categories': categories}) File "/data/www/affiliates-fb-dev.allizom.org/affiliates-app/apps/shared/decorators.py", line 11, in decorator return view_func(request, *args, **kwargs) File "/data/www/affiliates-fb-dev.allizom.org/affiliates-app/apps/badges/views.py", line 90, in dashboard return jingo.render(request, template, context) File "/data/www/affiliates-fb-dev.allizom.org/affiliates-app/vendor/src/jingo/jingo/__init__.py", line 80, in render rendered = render_to_string(request, template, context) File "/data/www/affiliates-fb-dev.allizom.org/affiliates-app/vendor/src/jingo/jingo/__init__.py", line 98, in render_to_string return template.render(**get_context()) File "/data/www/affiliates-fb-dev.allizom.org/affiliates-app/vendor/src/jingo/jingo/__init__.py", line 91, in get_context c.update(processor(request)) TypeError: 'NoneType' object is not iterable These can be reproduced by visiting the homepage https://affiliates-fb-dev.allizom.org
The second one (NoneType) could be related to product-details. Maybe ./manage.py update_product_details could resolved it.
This has since been fixed. The root cause ended up being, IIRC, sessions on the Facebook app overwriting sessions on the main app: https://github.com/mozilla/affiliates/commit/43c8f17102a910635d5b2fb128c1fdf8527435b7
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Whiteboard: [qa-]
Closed as [qa-]
Status: RESOLVED → VERIFIED
Product: Firefox Affiliates → Firefox Affiliates Graveyard
You need to log in before you can comment on or make changes to this bug.