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
Diesel needs to be able to connect to a database with a password. The error described below appears for me if the connection string is postgres://USER:PASSWORD@localhost/, but not if it is postgres://localhost/ or simpler forms thereof.
For my example, it was also necessary to add reqwest as a dependency: reqwest = "0.9.18"
use diesel::pg::PgConnection;use diesel::connection::Connection;fnmain(){let connection = PgConnection::establish("postgres://USER:PASSWORD@localhost/").unwrap_or_else(|e| panic!("Error connecting to database, {:?}", e));let res = reqwest::get("https://example.com").unwrap();panic!("");}
Setup
Diesel needs to be able to connect to a database with a password. The error described below appears for me if the connection string is
postgres://USER:PASSWORD@localhost/
, but not if it ispostgres://localhost/
or simpler forms thereof.For my example, it was also necessary to add reqwest as a dependency:
reqwest = "0.9.18"
Versions
rustc 1.36.0-nightly (cfdc84a00 2019-05-07)
rustc 1.35.0 (3c235d560 2019-05-20)
1.4.2
PostgreSQL 11.2
Ubuntu 16.04.6
Feature Flags
Problem Description
Core dump when running program
What are you trying to accomplish?
I am running this program:
What is the expected output?
A normal panic
What is the actual output?
A normal seeming panic, followed by a core dump:
Are you seeing any additional errors?
No
Steps to reproduce
Run the program listed above.
Checklist
closed if this is not the case)
The text was updated successfully, but these errors were encountered: