‘str’ object has no attribute ‘decode’. Python 3 error?

You are trying to decode an object that is already decoded. You have a str, there is no need to decode from UTF-8 anymore. Simply drop the .decode(‘utf-8’) part: As for your fetch() call, you are explicitly asking for just the first message. Use a range if you want to retrieve more messages. See the documentation: The message_set options to commands below is a … Read more

‘str’ object has no attribute ‘decode’. Python 3 error?

You are trying to decode an object that is already decoded. You have a str, there is no need to decode from UTF-8 anymore. Simply drop the .decode(‘utf-8’) part: As for your fetch() call, you are explicitly asking for just the first message. Use a range if you want to retrieve more messages. See the documentation: The message_set options to commands below is a … Read more