Your site is probably getting hit by a spam bot trying to post to
random URLs in the hope it finds public wiki like comment fields. It
is most likely closing the request connection before your code has
read all the request content.

What web server are you using? What shows in your server access logs
at the same time. Ie., what URL is used and it is POST or GET?

Graham

On Dec 21, 2: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
>
> request data read error
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to