I'm afraid I don't have that info. Also, I'm not able to log the request body with nginx because I'm on a very active production environment and this error is very rare.
Anyway, it's been a couple of weeks since last time it happened. I guess it was just a bot sending some weird post. If it happens again, I'll try to collect more info. Thanks for caring! El domingo, 5 de agosto de 2018, 22:29:01 (UTC-3), Massimo Di Pierro escribió: > > Can you show an example of the body of the post that causes the problem? > > On Tuesday, 17 July 2018 06:43:35 UTC-7, Lisandro wrote: >> >> Hi there! I'm just reporting this situation in case it's a bug, I'm not >> sure. >> >> I have a public webpage (no login required), and from time to time I see >> this error: >> ValueError: Invalid boundary in multipart form: '' >> >> The error is produced by a bot that sends a bad POST to an URL that >> doesn't even expect a POST (it's just a public URL that shows a list of >> news, and it is cached). >> But as my application access request.vars, when the bot sends that POST, >> I see this error traceback: >> >> Traceback (most recent call last): >> File "/var/www/medios/gluon/restricted.py", line 219, in restricted >> exec(ccode, environment) >> File "applications/informatesalta/compiled/controllers.default.index.py", >> line 4, in <module> >> File "applications/informatesalta/modules/globales.py", line 2108, in >> get_publicidades_response >> layout = request.vars.layout or '' >> File "/var/www/medios/gluon/globals.py", line 314, in vars >> self.parse_all_vars() >> File "/var/www/medios/gluon/globals.py", line 285, in parse_all_vars >> for key, value in iteritems(self.post_vars): >> File "/var/www/medios/gluon/globals.py", line 306, in post_vars >> self.parse_post_vars() >> File "/var/www/medios/gluon/globals.py", line 242, in parse_post_vars >> dpost = cgi.FieldStorage(fp=body, environ=env, keep_blank_values=1) >> File "/usr/lib64/python2.7/cgi.py", line 507, in __init__ >> self.read_multi(environ, keep_blank_values, strict_parsing) >> File "/usr/lib64/python2.7/cgi.py", line 621, in read_multi >> raise ValueError, 'Invalid boundary in multipart form: %r' % (ib,) >> ValueError: Invalid boundary in multipart form: '' >> >> >> >> Notice the error is triggered in gluon/globals.py, specifically in >> "parse_all_vars" function. >> What can I do in order to avoid the ticket error? >> >> Thanks in advance! >> > -- 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.