Skip to content
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

pixlet login redirects to localhost:8085 #810

Open
bahua opened this issue Jun 6, 2023 · 1 comment
Open

pixlet login redirects to localhost:8085 #810

bahua opened this issue Jun 6, 2023 · 1 comment

Comments

@bahua
Copy link

bahua commented Jun 6, 2023

Whenever I try to login with pixlet, a successful login always redirects me to localhost:8085, which of course accomplishes nothing, since my desktop isn't running anything on 8085. My tidbyt device isn't listening on 8085 either, so changing localhost to the local IP my device is using doesn't help either. What is supposed to happen when localhost:8085 loads? What steps can I take to determine if I'm doing something wrong?

@CoatedMoose
Copy link

I think I was having a similar issue, but there's not enough information in in the issue description for me to be sure.

The pixlet login command attempts to start a webserver on localhost:8085 (here). The expectation is that, after successfully completing the OAuth flow, the browser should show please close this window and return to pixlet and the pixlet command will save the token passed in the localhost redirect. The command will output confirmation of success, and exit.

The problem I encountered was another process was already listening on the port (firebase pub/sub emulator), so the emulator handled the redirect instead of the webserver started by pixlet.

In my opinion, pixlet should fail if it's not able to start the webserver, or it should pick some other port, rather than hang until the port becomes available.

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

No branches or pull requests

2 participants