Skip to content

App does not validate server URLs #53

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

Closed
hugodutka opened this issue Feb 14, 2025 · 1 comment · Fixed by #57
Closed

App does not validate server URLs #53

hugodutka opened this issue Feb 14, 2025 · 1 comment · Fixed by #57
Assignees

Comments

@hugodutka
Copy link

By mistake, instead of prefixing the server URL with "https://", I typed "https:/". The app didn't show an error initially, but after signing in and enabling Coder VPN, the app failed to fetch workspaces with a confusing error:

Image Image

It took me a couple of minutes to figure out what's wrong. It'd be great to do basic validation of user input.

@ethanndickson ethanndickson self-assigned this Feb 14, 2025
@ethanndickson
Copy link
Member

ethanndickson commented Feb 18, 2025

This is super weird, for whatever reason a GET request to https:/dev.coder.com is working (as we validate the token against /api/v2/users/me on the sign in screen, in Swift code), as is the download, but the error you're seeing is from the Go code. Will investigate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants