[Traceback] ValueError: No JSON object could be decoded

RESOLVED FIXED in 6.3.8

Status

P5
normal
RESOLVED FIXED
7 years ago
3 years ago

People

(Reporter: krupa.mozbugs, Assigned: robhudson)

Tracking

unspecified
6.3.8

Details

(URL)

(Reporter)

Description

7 years ago
Traceback (most recent call last):

  File "/data/www/apps-preview-dev.allizom.org/zamboni/vendor/src/django/django/core/handlers/base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)

  File "/data/www/apps-preview-dev.allizom.org/zamboni/apps/amo/decorators.py", line 49, in wrapper
    return f(request, *args, **kw)

  File "/data/www/apps-preview-dev.allizom.org/zamboni/apps/users/views.py", line 325, in browserid_login
    assertion=request.POST['assertion'])

  File "/data/www/apps-preview-dev.allizom.org/zamboni/apps/users/views.py", line 290, in browserid_authenticate
    result = backend.verify(assertion, settings.SITE_URL)

  File "/data/www/apps-preview-dev.allizom.org/zamboni/vendor/src/django-browserid/django_browserid/auth.py", line 65, in verify
    'audience': audience

  File "/data/www/apps-preview-dev.allizom.org/zamboni/vendor/src/django-browserid/django_browserid/auth.py", line 57, in _verify_http_request
    return json.loads(content)

  File "/usr/lib64/python2.6/json/__init__.py", line 307, in loads
    return _default_decoder.decode(s)

  File "/usr/lib64/python2.6/json/decoder.py", line 319, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())

  File "/usr/lib64/python2.6/json/decoder.py", line 338, in raw_decode
    raise ValueError("No JSON object could be decoded")

ValueError: No JSON object could be decoded
steps to reproduce?
(Assignee)

Comment 2

7 years ago
I don't know what was causing it. The django_browserid project accepted my pull request to wrap this in a try/except block and add logging when it does happen.

I have not updated vendor with this change, however.
Go for it and lets close this
Did this happen?
Priority: -- → P5
Target Milestone: --- → 6.3.8
Blocks: 710074
No longer blocks: 690899
(Assignee)

Comment 5

7 years ago
Got back on mozilla branch:
https://github.com/mozilla/zamboni/commit/1fe573b
Status: NEW → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → FIXED
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.