On Jan 8, 6:03 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I'm still hitting this error occasinally. Graham suggested it might > bots but I got a report from a real user. Has anyone seen this issue > before? > > I don't think it would help to upgrade mod_wsgi as I'm not using the > daemon mode.
I'd still recommend you upgrade as the changes related to daemon mode also touched common code used by embedded mode. BTW, if the user is seeing the error it implies that you must be displaying tracebacks through web.py somehow, as tracebacks don't get displayed back to a client by mod_wsgi. Thus no way they could see the error normally. Also, if they truly are seeing the message in a traceback then it can't be a dropped socket connection as if it was there wouldn't be a way for the response to get back. The only other option would be that you are using some Apache input filter which is giving problems. What version of Apache are you using? What Apache input filters do you have configured? Even if the problem was caused by browser or an intermediate proxy closing incoming client side of socket connection, would be odd that it isn't closing the outgoing side as well, although depends on the proxy. Anyway, my recommendation would be making sure you are using latest versions of mod_wsgi (1.3) and of Apache, or at least latest patch revision for version of Apache being used. If you aren't using recent versions, impossible to be sure that problem, if one does exist, isn't already fixed. Graham > Thanks for the help. > > -Greg > > On Dec 20 2007, 10:41 pm, "[EMAIL PROTECTED]" > > <[EMAIL PROTECTED]> wrote: > > Hey Ya'll, > > > I started getting this error being reported from my website. Since > > it's not happening when I use the website I'm not sure how to debug > > it. Do you folks have any ideas? > > > I hope the Django style traceback below isn't too hard to read. The > > lines it says the errors are on are 121 and 101. > > > Thanks a bunch! > > > -Greg > > > requestdata readerror > > Python /usr/utilitymill/web/webapi.py in data, line 121 > > Web POSThttp://utilitymill.com/code.py/utility/Greeting_Card_Generator > > Traceback (innermost first) > > > * /usr/utilitymill/web/webapi.py in data > > 114. badrequest() > > 115. raise StopIteration > > 116. > > 117. def data(): > > 118. """Returns the data sent with the request.""" > > 119. if 'data' not in ctx: > > 120. cl = intget(ctx.env.get('CONTENT_LENGTH'), 0) > > 121. ctx.data = ctx.env['wsgi.input'].read(cl) > > 122. return ctx.data > > 123. > > 124. def setcookie(name, value, expires="", domain=None): > > 125. """Sets a cookie.""" > > 126. if expires < 0: > > 127. expires = -1000000000 > > ▼ Local vars > > Variable Value > > cl > > 935840 > > > * /usr/utilitymill/web/webapi.py in input > > 94. _method = defaults.pop('_method', 'both') > > 95. > > 96. e = ctx.env.copy() > > 97. out = {} > > 98. if _method.lower() in ['both', 'post']: > > 99. a = {} > > 100. if e['REQUEST_METHOD'] == 'POST': > > 101. a = cgi.FieldStorage(fp = StringIO(data()), environ=e, ... > > 102. keep_blank_values=1) > > 103. a = dictify(a) > > 104. out = dictadd(out, a) > > 105. > > 106. if _method.lower() in ['both', 'get']: > > 107. e['REQUEST_METHOD'] = 'GET' --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web.py" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/webpy?hl=en -~----------~----~----~----~------~----~------~--~---
