google-drive-vscode icon indicating copy to clipboard operation
google-drive-vscode copied to clipboard

"Authorize this app by visiting the external URL" error

Open moonryul opened this issue 4 years ago • 2 comments

Describe the bug "Authorize this app by visiting the external URL" when I clicked the "gdrive" icon on the left column of the vscode screen. I opened my google accoun.

But I got the following error:

image

Did I do something wrong when I defined my Google Service Account in Console.drive.google.com?

moonryul avatar Apr 25 '22 15:04 moonryul

Hi @moonryul, thanks for opening this issue!

From the pictures you attached to the comment, it looks like there is another application on your computer listening on port 3000, which is the same port the extension uses to start a temporary HTTP server to proceed with the authentication process. However, the port is busy, so the HTTP server is not initiated by the extension and the auth process cannot proceed.

As a workaround, I would suggest to check which application is already listening on this port and manually close it.

We can leave this issue open to implement a mechanism that tries to restart the HTTP server on different ports until it finds an available port.

GustavoASC avatar Apr 26 '22 00:04 GustavoASC

Hi @GustavoASC and @moonryul.

I think that we can close this issue, because now we have the setting google.drive.authPort, available since version 1.3.4. This settings allows to configure a port to start the server on the local machine to proceed with the OAuth authorization flow.

Should we close this issue?

gustavosimon avatar Sep 22 '22 00:09 gustavosimon