Re: [Twisted-Python] getPage generates a traceback in abstract.py
Hi Ivan, This looks really strange. Could you add a print statement before > line 112 of abstract.py, to see what's in self._tempDataBuffer? > The conents of self._tempDataBuffer is indeed a list: ['HTTP/1.1 200 OK\r\n', 'Transfer-Encoding: chunked\r\n', '\r\n', '47\r\n', ['__add__', '__class__', '__contains__', '__delattr__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__getitem__', '__getnewargs__', '__getslice__', '__gt__', '__hash__', '__init__', '__le__', '__len__', '__lt__', '__mod__', '__mul__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__rmod__', '__rmul__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '_formatter_field_name_split', '_formatter_parser', 'capitalize', 'center', 'count', 'decode', 'encode', 'endswith', 'expandtabs', 'find', 'format', 'index', 'isalnum', 'isalpha', 'isdigit', 'islower', 'isspace', 'istitle', 'isupper', 'join', 'ljust', 'lower', 'lstrip', 'partition', 'replace', 'rfind', 'rindex', 'rjust', 'rpartition', 'rsplit', 'rstrip', 'split', 'splitlines', 'startswith', 'strip', 'swapcase', 'title', 'translate', 'upper', 'zfill'], '\r\n', '0\r\n\r\n'] -J ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
Re: [Twisted-Python] getPage generates a traceback in abstract.py
On 05:15 pm, jasonjwwilli...@gmail.com wrote: >Hi Ivan, > >This looks really strange. Could you add a print statement before >>line 112 of abstract.py, to see what's in self._tempDataBuffer? > >The conents of self._tempDataBuffer is indeed a list: > >['HTTP/1.1 200 OK\r\n', 'Transfer-Encoding: chunked\r\n', '\r\n', >'47\r\n', >['__add__', '__class__', '__contains__', '__delattr__', '__doc__', >'__eq__', >'__format__', '__ge__', '__getattribute__', '__getitem__', >'__getnewargs__', >'__getslice__', '__gt__', '__hash__', '__init__', '__le__', '__len__', >'__lt__', '__mod__', '__mul__', '__ne__', '__new__', '__reduce__', >'__reduce_ex__', '__repr__', '__rmod__', '__rmul__', '__setattr__', >'__sizeof__', '__str__', '__subclasshook__', >'_formatter_field_name_split', >'_formatter_parser', 'capitalize', 'center', 'count', 'decode', >'encode', >'endswith', 'expandtabs', 'find', 'format', 'index', 'isalnum', >'isalpha', >'isdigit', 'islower', 'isspace', 'istitle', 'isupper', 'join', 'ljust', >'lower', 'lstrip', 'partition', 'replace', 'rfind', 'rindex', 'rjust', >'rpartition', 'rsplit', 'rstrip', 'split', 'splitlines', 'startswith', >'strip', 'swapcase', 'title', 'translate', 'upper', 'zfill'], '\r\n', >'0\r\n\r\n'] So it appears as if someone is calling request.write(dir(some string)). If you add a type check to the implementation of write, you'll probably get a traceback pointing at exactly the offending code (and maybe we should add that type check to Twisted). Jean-Paul ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
Re: [Twisted-Python] getPage generates a traceback in abstract.py
Wow I feel stupid. That would be me in the callback that gets fired when getPage completes. Originally I had written this to use web.client.Agent and that code was helping me to inspect the response for debugging. Thank you very much. -J On Sat, Oct 2, 2010 at 11:26 AM, wrote: > On 05:15 pm, jasonjwwilli...@gmail.com wrote: > >Hi Ivan, > > > >This looks really strange. Could you add a print statement before > >>line 112 of abstract.py, to see what's in self._tempDataBuffer? > > > >The conents of self._tempDataBuffer is indeed a list: > > > >['HTTP/1.1 200 OK\r\n', 'Transfer-Encoding: chunked\r\n', '\r\n', > >'47\r\n', > >['__add__', '__class__', '__contains__', '__delattr__', '__doc__', > >'__eq__', > >'__format__', '__ge__', '__getattribute__', '__getitem__', > >'__getnewargs__', > >'__getslice__', '__gt__', '__hash__', '__init__', '__le__', '__len__', > >'__lt__', '__mod__', '__mul__', '__ne__', '__new__', '__reduce__', > >'__reduce_ex__', '__repr__', '__rmod__', '__rmul__', '__setattr__', > >'__sizeof__', '__str__', '__subclasshook__', > >'_formatter_field_name_split', > >'_formatter_parser', 'capitalize', 'center', 'count', 'decode', > >'encode', > >'endswith', 'expandtabs', 'find', 'format', 'index', 'isalnum', > >'isalpha', > >'isdigit', 'islower', 'isspace', 'istitle', 'isupper', 'join', 'ljust', > >'lower', 'lstrip', 'partition', 'replace', 'rfind', 'rindex', 'rjust', > >'rpartition', 'rsplit', 'rstrip', 'split', 'splitlines', 'startswith', > >'strip', 'swapcase', 'title', 'translate', 'upper', 'zfill'], '\r\n', > >'0\r\n\r\n'] > > So it appears as if someone is calling request.write(dir(some string)). > If you add a type check to the implementation of write, you'll probably > get a traceback pointing at exactly the offending code (and maybe we > should add that type check to Twisted). > > Jean-Paul > > ___ > Twisted-Python mailing list > Twisted-Python@twistedmatrix.com > http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python > ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
[Twisted-Python] Weekly Bug Summary
Bug summary __ Summary for 2010-09-26 through 2010-10-03 Opened Closed Total Change Enhancements: 4 2660 +2 Defects: 5 1513 +4 Tasks: 0 0 72 +0 Regressions: 0 0 1 +0 Total: 9 3 1246 +6 |== Type Changes |== Priority Changes |== Component Changes |Defect: +4 |Normal: +6 |Core:+3 |Enhancement: +2 |Low: +0 |Mail:-1 |Names: +1 |Release Management: +0 |Trial: +1 |Web: +2 Total Tickets Open Tickets New / Reopened Bugs __ = Normal = [#4657] Relative order of --coverage and --temp-directory command-line arguments shouldn't matter (opened by cgay) defect trial http://twistedmatrix.com/trac/ticket/4657 [#4658] twisted.internet.gtk2reactor conflicts with subprocess.Popen (opened by ivenvd) defect core http://twistedmatrix.com/trac/ticket/4658 [#4660] twisted.web._newclient.LengthEnforcingConsumer doesn't proxy important methods on wrapped IConsumer (opened by djfroofy) defect core http://twistedmatrix.com/trac/ticket/4660 [#4661] Problem resolving cname records when records point to an authority out of twisted.names control (opened by wirepair) defect names http://twistedmatrix.com/trac/ticket/4661 [#4662] Bring features from NevowRequest into twisted.web.Request (opened by pmw) enhancement webhttp://twistedmatrix.com/trac/ticket/4662 [#4663] Bring Nevow's FakeRequest into Twisted.web (opened by pmw) enhancement core http://twistedmatrix.com/trac/ticket/4663 [#4664] adbapi.ConnectionPool sometimes doesn't rollback cleanly (opened by mattma) defect core http://twistedmatrix.com/trac/ticket/4664 [#4665] stop distributing subproject tarballs (opened by zooko) (CLOSED, invalid) enhancement release management http://twistedmatrix.com/trac/ticket/4665 = Low = [#4659] twisted.web._newclient._WrapperException makes it a little tedious to debug (opened by djfroofy) enhancement webhttp://twistedmatrix.com/trac/ticket/4659 Closed Bugs __ = Normal = [#4569] Improve lore2sphinx buildbot results for `projects/core/howto/tutorial` (opened by khorn, closed by exarkun, fixed) enhancement core http://twistedmatrix.com/trac/ticket/4569 [#4665] stop distributing subproject tarballs (opened by zooko, closed by glyph, invalid) enhancement release management http://twistedmatrix.com/trac/ticket/4665 = Low = [#4475] twisted/mail/maildir.py's importing of stuff from cred is messy (opened by exarkun, closed by exarkun, fixed) defect mail http://twistedmatrix.com/trac/ticket/4475 Ticket Lifetime Stats __ Oldest open ticket - [#50] conch command-line client doesn't work in win32 (since 2003-07-12 16:41:06). Newest open ticket - [#4664] adbapi.ConnectionPool sometimes doesn't rollback cleanly (since 2010-10-01 18:02:49). Mean open ticket age: 985 days, 6:23:28.120074. Median: 925 days, 8:05:44.125692. Standard deviation: 668 days, 4:15:22.876781. Interquartile range: 1025 days, 0:31:53. Mean time between ticket creation and ticket resolution: 236 days, 21:20:51.203560. Median: 29 days, 3:43:13. Standard deviation is 411 days, 14:30:12.183927. The interquartile range is 272 days, 2:20:42. Mean time spent in review: 80 days, 14:01:21.812378. Median: 4 days, 5:54:07. Standard deviation: 301 days, 22:25:52.067459. Interquartile range: 15 days, 22:08:59. Mean number of times a ticket is reviewed: 2.00131926121. Median: 1 Standard deviation: 1.63568334374. Interquartile range: 1. Contributor Stats __ In the last 4 weeks, 12 unique ticket reporters 6 unique ticket reviewers 6 unique ticket resolvers In the last 24 weeks, 83 unique ticket reporters 21 unique ticket reviewers 14 unique ticket resolvers In the last 48 weeks, 171 unique ticket reporters 40 unique ticket reviewers 27 unique ticket resolvers ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python