-
Notifications
You must be signed in to change notification settings - Fork 642
thread 'main' panicked at 'called Result::unwrap()
when running migrate command
#411
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
|
What's the
|
Hmm, It looks like there is a slight typo in the comment
There seems to be an extra : before the @. I changed it to the following but I am still getting the same error it seems.
I would be happy to file a ticket and submit a PR for the typo. |
Ah that'd do it, and indeed PRs would be most welcome! |
I am still getting the error for some reason. I kind of feel like I'm missing something read doing something stupid. The scheme should be the 'postgres://' but according to https://github.com/sfackler/rust-postgres/blob/master/src/url.rs#L201, '+', '-', '.', ':' are the only non alpha numeric chars allowed. |
Could you try running with |
I'd posted that in a comment right below the original post. |
Dunno how much it matters but here is the full stack trace from this AM.
|
Hm not sure what's going on here :. Maybe it's something different from Linux postgres and OSX postgres? |
That would not shock me. I have had problems before with osx vs linux. Thanks. |
Well that's a bit frustrating :) The top of .env
The error does look different today so maybe something in nightly?
Thanks again for the help |
Well I got the migrate to work by using the raw url string instead of the Ideas why that would work? |
I then get an error with the server
I'm new to civet web server so have very little knowledge of it. Still diggin' though. |
Could you try printing out |
You nailed that one :)
The only diffs in my branch is that println and some Cargo.lock stuff so I'm not too sure what might be broken on my side. I can get the full diff or just push my branch? Lemme know what else I can do or provide. |
Aha that'd do it! What shell are you using? |
zsh |
Hm ok, you can probably do this by just removing the quotes in the |
That does indeed return the correct string. Gonna open an issue to update the comment in .env.sample for zsh users/anyone that might get that error :) |
ugh, that also fixed my issues when starting the server as well. thanks so much again for the help! |
Glad to hear! Want to send a PR to the |
Hmm. Do you mean the .env.sample file? |
Ah yes indeed! |
Cool cool. PR inbound. |
Hi all,
I'm trying to compile the rust backend and get down to the migrate command.
but then I get the following error:
I updated the DATABASE_URL var in .env but that was all I changed.
I followed the naming suggestion and even just named the db 'cargo_registry'.
I'm running rustup using nightly.
Thanks!
The text was updated successfully, but these errors were encountered: