You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gives me this error:
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/gevent/greenlet.py", line 390, in run
result = self._run(_self.args, *_self.kwargs)
File "/usr/local/lib/python2.6/dist-packages/brubeck/request_handling.py", line 118, in request_handler
response = handler()
File "/usr/local/lib/python2.6/dist-packages/brubeck/request_handling.py", line 774, in
handler = lambda: kallable(self, message, **kwargs)
TypeError: check_method() got an unexpected keyword argument 'name'
<Greenlet at 0x97ac98c: request_handler(<brubeck.request_handling.Brubeck object at 0x95d9, <brubeck.mongrel2.Request object at 0x98043cc>, <function at 0x97f87d4>)> failed with TypeError
Please show me the correct way of doing it.
The text was updated successfully, but these errors were encountered:
Well, can you retest the code since expected Error message is different for me. @tonytan4ever
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/gevent/greenlet.py", line 390, in run
result = self._run(*self.args, **self.kwargs)
File "/home/hasgeek/codes/github/brubeck/brubeck/connections.py", line 168, in process_message
http_content = http_response(result['body'], result['status_code'],
TypeError: string indices must be integers, not str
<Greenlet at 0x1c1a870: <bound method Mongrel2Connection.process_message of <brubeck.connections.Mongrel2Connection object at 0x1c69f90>>(<brubeck.request_handling.Brubeck object at 0x1d0b, '34f9ceee-cd52-4b7f-b197-88bf2f0ec378 57 /name/k/ )> failed with TypeError
I tryied the decorator/function approach to write the views, but it seems not working.
@app.add_route('^/deco/(?P\w+)$', method='GET')
def new_name_handler(application, message, name):
print message
return http_response('Take five, %s!' % (name), 200, 'OK', {})
app.run
gives me this error:
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/gevent/greenlet.py", line 390, in run
result = self._run(_self.args, *_self.kwargs)
File "/usr/local/lib/python2.6/dist-packages/brubeck/request_handling.py", line 118, in request_handler
response = handler()
File "/usr/local/lib/python2.6/dist-packages/brubeck/request_handling.py", line 774, in
handler = lambda: kallable(self, message, **kwargs)
TypeError: check_method() got an unexpected keyword argument 'name'
<Greenlet at 0x97ac98c: request_handler(<brubeck.request_handling.Brubeck object at 0x95d9, <brubeck.mongrel2.Request object at 0x98043cc>, <function at 0x97f87d4>)> failed with TypeError
Please show me the correct way of doing it.
The text was updated successfully, but these errors were encountered: