If you can use the same URI from a different client, the problem would appear to lie in the Ruby on Rails client side. It appears the SCRAM-SHA-1 authentication mechanism failed. Is it possible this is something as simple as wrong password, perhaps a special character that needs escaping?