Since you mentioned that the server stalls either, could it be possible 
that your error handler is creating another error and causing an infinite 
loop? If you check that request.vars.request_url does not equal to 
request.url, this could be prevented. I admit that it is just a guess of 
mine with good intention.

On Saturday, December 27, 2014 6:22:46 PM UTC+2, Louis Amon wrote:
>
> I made some changes to my code and it seems I broke some stuff.
>
> Problem is : instead of getting a ticket, my POST request is stalled and 
> my console is displaying this error :
>
> ERROR - 27-12-2014 17:16:27 - Rocket.Errors.Thread-10 : Traceback (most 
> recent call last):
>
>  File "/opt/web2py-prod/gluon/rocket.py", line 1337, in run
>
>     self.run_app(conn)
>
>  File "/opt/web2py-prod/gluon/rocket.py", line 1838, in run_app
>
>     output = self.app(environ, self.start_response)
>
>  File "/opt/web2py-prod/gluon/main.py", line 651, in app_with_logging
>
>     ret[0] = wsgiapp(environ, responder2)
>
>  File "/opt/web2py-prod/gluon/main.py", line 562, in wsgibase
>
>     return wsgibase(new_environ, responder)
>
>  File "/opt/web2py-prod/gluon/main.py", line 532, in wsgibase
>
>     if request.body:
>
>  File "/opt/web2py-prod/gluon/globals.py", line 269, in body
>
>     raise HTTP(400, "Bad Request - HTTP body is incomplete")
>
> HTTP: 400 BAD REQUEST
>
>
>
>
> How do I got about debugging this ?
>
> What is the correct methodology for solving HTTP 400 issues ?
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to