https://linen.dev logo
I can't deploy my app follow the Serenity Hello-Wo...
# help
b
I've followed this tutorial here exactly, but cannot deploy my app. I simultaneously can't create a project (400) yet the project also doesn't exist (404). Here is what I get:
Copy code
āžœ  discord-bot git:(main) cargo shuttle project new 
Error: 400 Bad Request
message: a project with the same name already exists
āžœ  discord-bot git:(main) cargo shuttle logs       
Error: 404 Not Found
message: project not found. Run `cargo shuttle project new` to create a new project.
I've tried blowing away the build, seeing if I've missed anything in the tutorial, looking at open tickets, and looking through messages here, but haven't found anything that helps. Also tried passing the project name manually. Rustup results:
Copy code
āžœ  discord-bot git:(main) rustup show       
Default host: x86_64-apple-darwin
rustup home:  /Users/jordanhoover/.rustup

stable-x86_64-apple-darwin (default)
rustc 1.65.0 (897e37553 2022-11-02)
Github url: https://github.com/jhoover4/discord-bot Tutorial: https://docs.shuttle.rs/examples/serenity
k
Hey šŸ‘‹
Did you try using a different, unique name?
Which error do you get then?
Something like
cargo shuttle project new --name "jhoover-bot"
b
I did :/. Same error
And thanks for helping!
I'm at a coffee shop with a VPN up, I thought maybe that was it, but no avail as well
k
Oh, you get a "a project with the same name already exists" no matter which name you pass in?
b
Welp, I tried it again with a unique name and it worked! Although I swear I tried that multiple times šŸ¤¦ā€ā™‚ļø
I'm still not sure why I'm getting this if I try to remove the original name:
Copy code
āžœ  discord-bot git:(main) āœ— cargo shuttle project rm --name "discord-bot"
Error: 404 Not Found
message: project not found. Run `cargo shuttle project new` to create a new project.
I'd rather have the name match the cargo name 😬
k
No worries, been there!
It's because someone else owns a project with that name
b
Ah, its not namespaced?
k
You can just change the name in Cargo.toml, or you can create a
Shuttle.toml
with the name you'd like
b
Got it
k
The name is used in the hostname, so it has to be unique:
jhoover-bot.shuttleapp.rs
b
Got it. Well that makes a lot of sense now
I guess I was assuming it would be under a generated namespace and appended in the url
But you know what they say about assuming šŸ‘€
Anyways appreciate the help! That was really quick
k
No problem, have fun!
3 Views