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
use this: let db = Database::connect("postgresql://username:password@ipAddress/mydb").await.unwrap();
Err:
thread 'main' panicked at 'called Result::unwrap() on an Err value: Conn("error occurred while attempting to establish a TLS connection: InvalidDNSNameError")'
but this is ok: let db = Database::connect("postgresql://username:password@domainName/mydb").await.unwrap();
So, do I have to use the domain name?
The text was updated successfully, but these errors were encountered:
use this:
let db = Database::connect("postgresql://username:password@ipAddress/mydb").await.unwrap();
Err:
thread 'main' panicked at 'called
Result::unwrap()
on anErr
value: Conn("error occurred while attempting to establish a TLS connection: InvalidDNSNameError")'but this is ok:
let db = Database::connect("postgresql://username:password@domainName/mydb").await.unwrap();
So, do I have to use the domain name?
The text was updated successfully, but these errors were encountered: