Unclear error when running cargo sqlx prepare #3873
-
Hi, I'm trying to understand the following error message I get when running either: cargo sqlx prepare
# or
cargo sqlx prepare --check I receive this error: Error: Issue parsing `cargo metadata` output - consider manually running it to check for issues However, this message is not very clear to me, and I'm unsure how to resolve it. Some context:
My sqlx = { version = "0.8", features = [
"postgres",
"runtime-tokio-rustls",
"chrono",
"rust_decimal",
"migrate"
] } When running: sqlx migrate run --database-url postgresql://postgres:[email protected]:5432/xyz --source spec/db/migrations Has anyone else encountered this or have suggestions on how to debug it further? Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Answered by
MarkForLoop
May 26, 2025
Replies: 1 comment 7 replies
-
What version of Rust/Cargo are you using? |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I found out the problem.
The .env was not loading for some reason
after running
the prepare works