-
Notifications
You must be signed in to change notification settings - Fork 757
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
wasmer login is incredibly buggy #4712
Comments
Hey @fschutt , long time now see, how are you doing? Thanks for the feedback. We just had a big revamp of the CLI... there is some fallout. The problem with That should be fixed by detecting if a relevant command exists... |
Thanks for creating the issue, we'll investigate and try to address most of the things you commented asap! |
Three action items from our side:
|
Hello! I spent some time investigating these issues, and I'll write here what I found out. Regarding the first one - $ wasmer deploy X
error: unexpected argument 'X' found
Usage: wasmer deploy [OPTIONS]
For more information, try '--help'. Regarding the rest, we had no previous experience of the I downloaded the latest Trying to login:Trying to deploy:As can be seen in the screenshots, I experienced a different issue than those reported here - I guess due to spurious failing SSL handshakes - but which should be fixed with retries as suggested by @fschutt. Last thing, the |
Okay, (1) is fixed. It seems that (2) was related to my terminal, I used the Git Bash shell. When I used Windows Terminal, it worked as expected. I have some criticism regarding the flow of wasmer create flow.
wasmer deploy is still not functional, after I now logged in:
Result: nothing happened, I expected it to create an app but no folder was generated, nothing. EDIT: It created the I also have no idea what the difference between After that I ran wasmer deploy but I can't create the app because it doesn't exist yet (???).
Yes no shit sherlock... I am trying to create the first version of it! Of course it doesn't exist yet. Now I have to open my browser to "create an app" (I want to create an HTTP server so I can serve my website maps4print.com, whose backend is written in 100% Rust), and run into the next problem, https://docs.wasmer.io/edge/quickstart/http-server is a dead link (the correct link is https://docs.wasmer.io/edge/quickstart/rust-http-server). Please have a dead link scanner or something on docs.wasmer.io, so that this doesn't happen again. Okay, now when I created the app I forgot to pass in |
That's a good catch, we are going to see how we can fix it. Do you happen to remember how you installed Wasmer so we can try to reproduce the issue? (via
Right now we require you to input the username first, as the login with Github/Google was causing an issue, but we can easily reenable the commented behavior on the login page. (being able to "login with Github / Google" from the
We can investigate this further, we have discussed internally and we don't have a clear idea on how to solve this (perhaps via a
Oh, I think I know why things were more confusing here. Apps and packages are two different entities. Just to clarify, the information that we prompt is about the owner and name of the app (not of the package). In any case, we can move from:
@xdoardo will investigate further |
No, downloading wasmer-windows.exe and double-clicking. The default installation directory is set to |
Describe the bug
Encountered a multitude of bugs when trying out wasmer login / wasmer deploy, just thought I'd give you guys a heads up:
wasmer deploy X
tries to search for a "deploy" user and run a package. Could be done better IMO:wasmer deploy
crashes if user is not logged in, doesn't wait for y/n input (and shows a stack trace instead of allowing the user to log in):wasmer whoami
completely fails ifwasmer login
browser authentication is done with GitHub authentication:So yeah, I cannot log in at all, it seems. Therefore, I cannot use
wasmer login
, therefore I cannot trywasmer deploy
. It might be better to decouplewasmer deploy
fromwasmer login
at least for the app creation phase. It also seems that the server backend sometimes has timeout issues, would be better to implement retries instead of failing on the first try. The backend says "Authentication successful", butwasmer whoami
fails. Also, not sure if it's a good idea to encode secrets in the URL?Also just as a note: if generating UUIDs, use
short-uuid
in order to avoid characters that can mess up in the URL or in a bash script! Do not use underscores or dashes in UUIDs, only "browser-safe" characters (base54)!wasmer -vV; rustc -vV wasmer 4.3.0 (36c1ece 2024-05-10) binary: wasmer-cli commit-hash: 36c1ece0d0691243e49d550df0258160d888698a commit-date: 2024-05-10 host: x86_64-pc-windows-msvc compiler: singlepass,cranelift,llvm rustc -vV rustc 1.75.0 (82e1608df 2023-12-21) binary: rustc commit-hash: 82e1608dfa6e0b5569232559e3d385fea5a93112 commit-date: 2023-12-21 host: x86_64-pc-windows-msvc release: 1.75.0 LLVM version: 17.0.6
Using
wasmer-windows.exe
from the4.3.1
release.The text was updated successfully, but these errors were encountered: