TypeError __str__ returned non-string
Brought to you by:
elie
Seen the str bug that seems to be in pyasn1? Its affecting requests and other tools such as mine (w3af).
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=766481
https://github.com/andresriancho/w3af/issues/8715
PS: I tried to debug it myself by looking at the code and trying to find any place where there could be a monkey-patch... but failed to find it.
So far I can't confirm that the exception is indeed bubbled up from pyasn1 internals. Could you please perform some more investigation to figure out what is the class of the problem exception object?
I'd suggest [recursively] trying thinks like:
As well as:
I suspect that the SSLError exception (from requests module) was instantiated with objects of some other class (should be in e.args) which in turn may be instantiated by some other objects. Some of these may have faulty str() implementation.
Last edit: Ilya Etingof 2015-03-14