You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With Python 2.7.3, I am getting the strange effect, that the answer to AUTH LOGIN apparently is transmitted as a unicode string which clients do not understand.
If I change encode_b64 as follows (i.e., remove the final 'decode' statement), it works like a charm:
defencode_b64(data):
'''Wrapper for b64encode, without having to struggle with bytestrings.'''byte_string=data.encode('utf-8')
encoded=base64.b64encode(byte_string)
returnencoded
The text was updated successfully, but these errors were encountered:
Years later I see this same problem. However, running the server using python3 instead of python solved it. I only saw this problem when AUTH LOGIN is used. The test client in the examples directory uses AUTH PLAIN. And the server running under python works fine with AUTH PLAIN. Perhaps that is why it is difficult to reproduce the problem.
With Python 2.7.3, I am getting the strange effect, that the answer to AUTH LOGIN apparently is transmitted as a unicode string which clients do not understand.
This is a tcpflow snippet demonstrating this:
Dots are zeros in tcpflow-speak.
If I change encode_b64 as follows (i.e., remove the final 'decode' statement), it works like a charm:
The text was updated successfully, but these errors were encountered: