seanjensengrey / cogen

Automatically exported from code.google.com/p/cogen
MIT License
0 stars 0 forks source link

ChatApp crashes #13

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
After downloading and settiing up the ChatApp, and issuing paster serve I get 
the following error:

Exception happened during processing of request from ('127.0.0.1', 51137)
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/paste/httpserver.py", line 1062, in process_request_in_thread
    self.finish_request(request, client_address)
  File "/usr/lib/python2.6/SocketServer.py", line 320, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/lib/python2.6/SocketServer.py", line 615, in __init__
    self.handle()
  File "/usr/local/lib/python2.6/dist-packages/paste/httpserver.py", line 436, in handle
    BaseHTTPRequestHandler.handle(self)
  File "/usr/lib/python2.6/BaseHTTPServer.py", line 329, in handle
    self.handle_one_request()
  File "/usr/local/lib/python2.6/dist-packages/paste/httpserver.py", line 431, in handle_one_request
    self.wsgi_execute()
  File "/usr/local/lib/python2.6/dist-packages/paste/httpserver.py", line 289, in wsgi_execute
    for chunk in result:
  File "build/bdist.linux-x86_64/egg/cogen/web/async.py", line 111, in __call__
    remaining = content_length = environ['cogen.wsgi'].content_length or 0
KeyError: 'cogen.wsgi'

any help would be appreciated. Thanks.

Original issue reported on code.google.com by radaczynski on 18 Jun 2009 at 5:56

GoogleCodeExporter commented 8 years ago
this needs to be run with cogen's wsgi server as the application uses the 
coroutine
wsgi extensions

Original comment by ionel...@gmail.com on 18 Jun 2009 at 6:31

GoogleCodeExporter commented 8 years ago
isn't this supposed to be just the coroutine middleware? You wrote 
(http://ionelmc.wordpress.com/2008/04/29/comet-chat-in-pylons-with-cogen/):

Once you have installed cogen (easy_install or setup.py develop), install the 
ChatApp 
(setup.py develop) and start the app with paster serve test.ini. And try 
finding some 
bugs (just joking) at http://127.0.0.1:5000/

this is exactly what I did. I don't really get what you mean by cogen's wsgi 
server... 

Original comment by radaczynski on 18 Jun 2009 at 8:20

GoogleCodeExporter commented 8 years ago
There's isn't a test.ini in the ChatApp. There is a cogen.ini that has the right
settings and you should run the app with that.

Or edit your settings and have this in the configuration .ini:

[server:main]
use = egg:cogen#http
host = 0.0.0.0
port = 5001

Original comment by ionel...@gmail.com on 19 Jun 2009 at 1:17

GoogleCodeExporter commented 8 years ago
Great, thanks for that. 

Original comment by radaczynski on 19 Jun 2009 at 7:13