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

Auth fails with a 404 error #49

Closed
roccojiang opened this issue Dec 9, 2017 · 3 comments
Closed

Auth fails with a 404 error #49

roccojiang opened this issue Dec 9, 2017 · 3 comments

Comments

@roccojiang
Copy link

A while ago the workflow started running very slowly for me so I decided to log out and log back in again in an attempt to solve the problem. However, once I tried to log back in, the browser fails with a 404 code. This issue seems similar to error #48 but there isn't a process running on port 1337 (at least I don't think so).

I'm running macOS 10.12.6 and Alfred v3.5.1 (883) on Opera.
The logs are:

[2017-12-09 21:09:28.699] [61031] [ERROR] Already waiting for authentication: Address already in use - bind(2)
[2017-12-09 21:09:28.699] [61031]  [INFO] Requesting user authentication via browser
[2017-12-09 21:09:28.782] [61031] [FATAL] Uncaught exception: No access token
[2017-12-09 21:09:28.782] [61031] [FATAL] ./google-drive.rb:243:in `abort'
[2017-12-09 21:09:28.782] [61031] [FATAL] ./google-drive.rb:243:in `token'
[2017-12-09 21:09:28.782] [61031] [FATAL] ./google-drive.rb:320:in `get_items'
[2017-12-09 21:09:28.782] [61031] [FATAL] ./google-drive.rb:335:in `items'
[2017-12-09 21:09:28.782] [61031] [FATAL] ./google-drive.rb:499:in `<main>'
[2017-12-09 21:09:28.782] [61031] [DEBUG] Execution took 0.169 seconds

After this happened, I tried this on another laptop finding that I had been automatically logged out. However, the issue did not happen there and I was able to log back in successfully.

@sorbits
Copy link
Collaborator

sorbits commented Dec 11, 2017

This issue seems similar to error #48 but there isn't a process running on port 1337 (at least I don't think so).

Try open http://localhost:1337 in a browser (without doing anything with this workflow).

If you get a response, something is running on that port, which sounds like the most likely explanation, especially as the Alfred Google Drive code should not give you a “404” but rather say “Something went wrong” (browser response) and it would show Received HTTP request in the log, if it had been able to run the http server.

@roccojiang
Copy link
Author

http://localhost:1337 returns 404 page not found.

@sorbits
Copy link
Collaborator

sorbits commented Dec 11, 2017

Then something is definitely running on that port. Try run something like this to find out what:

lsof -i -n -P | grep '1337.*TCP'

@sorbits sorbits closed this as completed Dec 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants