[traceback] AttributeError: 'HTTPError' object has no attribute 'reason' if manifest URL has a typo

VERIFIED FIXED in 6.2.2

Status

VERIFIED FIXED
7 years ago
3 years ago

People

(Reporter: krupa.mozbugs, Assigned: jbalogh)

Tracking

unspecified
6.2.2

Details

(URL)

(Reporter)

Description

7 years ago
steps to reproduce:
1. Load https://addons.allizom.org/en-US/developers/addon/submit/2
2. Enter the manifest URL with a typo or copy+paste https://people.mozilla.com/~jbalogh/ztype.webap
3. Click 'Alright then!'


Traceback (most recent call last):

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

 File "/data/amo_python/www/preview/zamboni/apps/amo/decorators.py", line 94, in wrapper
   return f(*args, **kw)

 File "/data/amo_python/www/preview/zamboni/apps/amo/decorators.py", line 86, in wrapper
   return f(*args, **kw)

 File "/data/amo_python/www/preview/zamboni/apps/amo/decorators.py", line 28, in wrapper
   return func(request, *args, **kw)

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

 File "/data/amo_python/www/preview/zamboni/apps/devhub/views.py", line 598, in upload_webapp
   tasks.fetch_manifest(form.cleaned_data['manifest'], upload.pk)

 File "/data/amo_python/www/preview/zamboni/vendor/lib/python/celery/task/base.py", line 241, in __call__
   return self.run(*args, **kwargs)

 File "/data/amo_python/www/preview/zamboni/vendor/lib/python/celery/app/__init__.py", line 141, in run
   return fun(*args, **kwargs)

 File "/data/amo_python/www/preview/zamboni/vendor/src/nuggets/celeryutils.py", line 35, in wrapped
   return fun(*args, **kw)

 File "/data/amo_python/www/preview/zamboni/apps/devhub/tasks.py", line 330, in fetch_manifest
   content = _fetch_manifest(url)

 File "/data/amo_python/www/preview/zamboni/apps/devhub/tasks.py", line 299, in _fetch_manifest
   if isinstance(e.reason, socket.timeout):

AttributeError: 'HTTPError' object has no attribute 'reason'
(Assignee)

Comment 1

7 years ago
https://github.com/jbalogh/zamboni/commit/e55725b
Status: NEW → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → FIXED
(Reporter)

Comment 2

7 years ago
verified fixed.
Status: RESOLVED → VERIFIED
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.