Waitress AssertionError: Header value u'application/msword' is not a string in ...

Bug #1338707 reported by Paul Everitt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KARL3
Fix Released
Medium
Chris Rossi

Bug Description

From the error monitor:

Exception when serving /communities/osf-dc-ospc/files/ospc-one-pager-final-1-16-2013-2.doc/dl/OSPC+one+pager+final+1-16-2013+(2).doc

Traceback (most recent call last):
  File "/srv/osfkarl/production/46/eggs/waitress-0.8.9-py2.6.egg/waitress/channel.py", line 337, in service
    task.service()
  File "/srv/osfkarl/production/46/eggs/waitress-0.8.9-py2.6.egg/waitress/task.py", line 173, in service
    self.execute()
  File "/srv/osfkarl/production/46/eggs/waitress-0.8.9-py2.6.egg/waitress/task.py", line 392, in execute
    app_iter = self.channel.server.application(env, start_response)
  File "/srv/osfkarl/production/46/eggs/perfmetrics-2.0-py2.6.egg/perfmetrics/__init__.py", line 294, in app
    return nextapp(environ, start_response)
  File "/srv/osfkarl/production/46/eggs/karl-3.125-py2.6.egg/karl/timeit.py", line 73, in __call__
    return resp(environ, start_response)
  File "/srv/osfkarl/production/46/eggs/WebOb-1.1.1-py2.6.egg/webob/response.py", line 939, in __call__
    start_response(self.status, headerlist)
  File "/srv/osfkarl/production/46/eggs/waitress-0.8.9-py2.6.egg/waitress/task.py", line 376, in start_response
    'Header value %r is not a string in %r' % (v, (k, v))
AssertionError: Header value u'application/msword' is not a string in ('Content-Type', u'application/msword')

Tags: r3.126
Changed in karl3:
assignee: nobody → Chris Rossi (chris-archimedeanco)
Revision history for this message
Chris Rossi (chris-archimedeanco) wrote :

Are you sure Chris M didn't fix this already over the weekend? Seems to be the same error.

Revision history for this message
Paul Everitt (paul-agendaless) wrote : Re: [Bug 1338707] Re: Waitress AssertionError: Header value u'application/msword' is not a string in ...

I deployed his fix and went to the broken URL before the update (was broken) and after (wasn't broken.) That one was:

AssertionError: Header value u'attachment; filename=osife-staff-community_files.zip' is not a string in ('Content-Disposition', u'attachment; filename=osife-staff-community_files.zip')

Meaning, in Content-Disposition. This one is in Content-Type.

--Paul

On Jul 7, 2014, at 2:25 PM, Chris Rossi <email address hidden> wrote:

> Are you sure Chris M didn't fix this already over the weekend? Seems to
> be the same error.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1338707
>
> Title:
> Waitress AssertionError: Header value u'application/msword' is not a
> string in ...
>
> Status in KARL3:
> New
>
> Bug description:
> From the error monitor:
>
> Exception when serving /communities/osf-dc-ospc/files/ospc-one-pager-
> final-1-16-2013-2.doc/dl/OSPC+one+pager+final+1-16-2013+(2).doc
>
> Traceback (most recent call last):
> File "/srv/osfkarl/production/46/eggs/waitress-0.8.9-py2.6.egg/waitress/channel.py", line 337, in service
> task.service()
> File "/srv/osfkarl/production/46/eggs/waitress-0.8.9-py2.6.egg/waitress/task.py", line 173, in service
> self.execute()
> File "/srv/osfkarl/production/46/eggs/waitress-0.8.9-py2.6.egg/waitress/task.py", line 392, in execute
> app_iter = self.channel.server.application(env, start_response)
> File "/srv/osfkarl/production/46/eggs/perfmetrics-2.0-py2.6.egg/perfmetrics/__init__.py", line 294, in app
> return nextapp(environ, start_response)
> File "/srv/osfkarl/production/46/eggs/karl-3.125-py2.6.egg/karl/timeit.py", line 73, in __call__
> return resp(environ, start_response)
> File "/srv/osfkarl/production/46/eggs/WebOb-1.1.1-py2.6.egg/webob/response.py", line 939, in __call__
> start_response(self.status, headerlist)
> File "/srv/osfkarl/production/46/eggs/waitress-0.8.9-py2.6.egg/waitress/task.py", line 376, in start_response
> 'Header value %r is not a string in %r' % (v, (k, v))
> AssertionError: Header value u'application/msword' is not a string in ('Content-Type', u'application/msword')
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/karl3/+bug/1338707/+subscriptions

tags: added: r3.126
Revision history for this message
Chris Rossi (chris-archimedeanco) wrote :

Fixed on branch: crossi-fix-long-dates-lp1337430

Changed in karl3:
status: New → Fix Committed
Revision history for this message
Paul Everitt (paul-agendaless) wrote :

Merged.

--Paul

On Jul 8, 2014, at 1:24 PM, Chris Rossi <email address hidden> wrote:

> Fixed on branch: crossi-fix-long-dates-lp1337430
>
> ** Changed in: karl3
> Status: New => Fix Committed
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1338707
>
> Title:
> Waitress AssertionError: Header value u'application/msword' is not a
> string in ...
>
> Status in KARL3:
> Fix Committed
>
> Bug description:
> From the error monitor:
>
> Exception when serving /communities/osf-dc-ospc/files/ospc-one-pager-
> final-1-16-2013-2.doc/dl/OSPC+one+pager+final+1-16-2013+(2).doc
>
> Traceback (most recent call last):
> File "/srv/osfkarl/production/46/eggs/waitress-0.8.9-py2.6.egg/waitress/channel.py", line 337, in service
> task.service()
> File "/srv/osfkarl/production/46/eggs/waitress-0.8.9-py2.6.egg/waitress/task.py", line 173, in service
> self.execute()
> File "/srv/osfkarl/production/46/eggs/waitress-0.8.9-py2.6.egg/waitress/task.py", line 392, in execute
> app_iter = self.channel.server.application(env, start_response)
> File "/srv/osfkarl/production/46/eggs/perfmetrics-2.0-py2.6.egg/perfmetrics/__init__.py", line 294, in app
> return nextapp(environ, start_response)
> File "/srv/osfkarl/production/46/eggs/karl-3.125-py2.6.egg/karl/timeit.py", line 73, in __call__
> return resp(environ, start_response)
> File "/srv/osfkarl/production/46/eggs/WebOb-1.1.1-py2.6.egg/webob/response.py", line 939, in __call__
> start_response(self.status, headerlist)
> File "/srv/osfkarl/production/46/eggs/waitress-0.8.9-py2.6.egg/waitress/task.py", line 376, in start_response
> 'Header value %r is not a string in %r' % (v, (k, v))
> AssertionError: Header value u'application/msword' is not a string in ('Content-Type', u'application/msword')
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/karl3/+bug/1338707/+subscriptions

Changed in karl3:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.