{"issue":{"created_at":"2011-08-08T18:03:28Z","state":"open","updated_at":"2011-12-13T14:05:50Z","comments":8,"user":{"gravatar_id":"019b45d7e6dd4e4597cc76a10576ba3a","id":967059,"url":"https://api.github.com/users/rwd2","login":"rwd2","avatar_url":"https://secure.gravatar.com/avatar/019b45d7e6dd4e4597cc76a10576ba3a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"I am not sure if this is a bottle or a cherrypy issue, but anyway\r\n\r\nI'm using the following configuration:\r\n\r\nArch Linux with 2.6.32-lts kernel\r\nhardware: i686 Intel(R) Atom(TM) CPU N270 @ 1.60GHz\r\npython 3.2\r\ncherrypy-svn 2567-1\r\nbottle 0.9.5\r\n\r\nBoth a Bottle and a Cherrypy 'hello world' run fine. But when I try to run Bottle with Cherrypy like this: \r\n\r\n-----------------\r\nfrom bottle import route, run\r\n\r\n@route('/')\r\ndef hello():\r\n    return 'hello world'\r\n\r\nrun(server='cherrypy',host='192.168.1.5', port=8080)\r\n\r\n-----------------\r\n \r\nI get this error message:\r\n\r\n-----------------\r\n\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python3.2/site-packages/bottle.py\", line 743, in wsgi\r\n    start_response(status, response.headerlist)\r\n  File \"/usr/lib/python3.2/site-packages/cherrypy/wsgiserver/wsgiserver3.py\", line 1846, in start_response\r\n    raise TypeError(\"WSGI response header key %r is not a byte string.\" % k)\r\nTypeError: WSGI response header key 'Content-Length' is not a byte string.\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python3.2/site-packages/cherrypy/wsgiserver/wsgiserver3.py\", line 1034, in communicate\r\n    req.respond()\r\n  File \"/usr/lib/python3.2/site-packages/cherrypy/wsgiserver/wsgiserver3.py\", line 830, in respond\r\n    self.server.gateway(self).respond()\r\n  File \"/usr/lib/python3.2/site-packages/cherrypy/wsgiserver/wsgiserver3.py\", line 1808, in respond\r\n    response = self.req.server.wsgi_app(self.env, self.start_response)\r\n  File \"/usr/lib/python3.2/site-packages/bottle.py\", line 759, in __call__\r\n    return self.wsgi(environ, start_response)\r\n  File \"/usr/lib/python3.2/site-packages/bottle.py\", line 755, in wsgi\r\n    start_response('500 INTERNAL SERVER ERROR', [('Content-Type', 'text/html')])\r\n  File \"/usr/lib/python3.2/site-packages/cherrypy/wsgiserver/wsgiserver3.py\", line 1830, in start_response\r\n    raise AssertionError(\"WSGI start_response called a second \"\r\nAssertionError: WSGI start_response called a second time with no exc_info.\r\n`","assignee":null,"id":1366910,"labels":[{"name":"Not a bug","color":"DDDDDD","url":"https://api.github.com/repos/defnull/bottle/labels/Not+a+bug"}],"number":195,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"title":"bottle+cherrypy gives \"\"TypeError: WSGI response header key 'Content-Length' is not a byte string\"","closed_at":null,"html_url":"https://github.com/defnull/bottle/issues/195","url":"https://api.github.com/repos/defnull/bottle/issues/195","milestone":null},"action":"created","comment":{"created_at":"2011-12-13T14:05:49Z","updated_at":"2011-12-13T14:05:49Z","user":{"gravatar_id":"c8c56e7cc86180729a188c0804032638","id":506899,"url":"https://api.github.com/users/sc68cal","login":"sc68cal","avatar_url":"https://secure.gravatar.com/avatar/c8c56e7cc86180729a188c0804032638?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":":clap:","id":3123221,"url":"https://api.github.com/repos/defnull/bottle/issues/comments/3123221"}}