The Workaround
You can use existing online tool such as urlencoder to manually convert username or password to percent-encoded format while setting the connection parameters.
The PR
This PR uses escape() method to encode username and password into amqplib expected format.
The Issue If the username or password contains any special character, the connection to RabbitMQ server would fail.
According to the amqplib document, usernames and passwords should be percent-encoded.
The Workaround You can use existing online tool such as urlencoder to manually convert username or password to percent-encoded format while setting the connection parameters.
The PR This PR uses escape() method to encode username and password into amqplib expected format.