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

drive.google.com refused to connect #76

Open
archydeberker opened this issue Aug 10, 2020 · 10 comments
Open

drive.google.com refused to connect #76

archydeberker opened this issue Aug 10, 2020 · 10 comments

Comments

@archydeberker
Copy link

I'm seeing this error when trying to use the plugin for the first time:

image

Any ideas?

@evbacher
Copy link
Owner

Apparently, you may see this error if you are logged into more than one Google account. See https://support.google.com/docs/thread/36796708?hl=en for a possible answer. Let me know if that does not solve this issue.

@archydeberker
Copy link
Author

That worked like a charm, thanks so much!

@evbacher
Copy link
Owner

Glad to hear that! Seems like the error message could be a bit more helpful.

@codebling
Copy link

The support link posted above no longer exists.

Can someone explain the fix here? Is the fix to open a private window and log into only one account?

@codebling
Copy link

Can confirm that opening in a private window and logging into only one Google account fixes the issue.

@evbacher
Copy link
Owner

@codebling : Although this is a problem for all add-ons, maybe I'll add a note to the Troubleshooting section about this. Thanks for confirming that opening in a private window and logging into only one Google account seems to solve the problem.

@evbacher
Copy link
Owner

Thanks, added a section about this here: https://github.com/evbacher/gd2md-html/wiki#drivegooglecom-refused-to-connect.

@plocket
Copy link

plocket commented Jan 28, 2021

Are addons able to update to the v8 engine to solve this instead? This was the stackoverflow post I found

@evbacher
Copy link
Owner

I had not heard that before. I've tried using the V8 engine before, but the performance is markedly worse (2x to 4x slower for both Markdown and HTML conversion). We may eventually be forced to use the V8 engine, but for now, I'll stick with the legacy.

Note that this add-on gets about 1.5 million executions per week (or 6 million per month), but in the last 30 days only 134 instances of the "You do not have access to perform that action. Please ask the owner of this item to grant access to you." error, which is how the Drive refused to connect shows up in the error report, I believe. I'm not sure that the V8 engine would solve the underlying authentication bug: https://issuetracker.google.com/issues/69270374.

@evbacher evbacher reopened this Jan 28, 2021
@j9d3it
Copy link

j9d3it commented Jun 12, 2021

I was getting really frustrated with trying to figure out why none of my addons were working. There are some workarounds suggested in this comment on the issue which could involve showing an error to the user, or running the app a different way.

Specifically:

execute the application functions NOT through google.script.run, but using the Apps Script API and OAuthToken on behalf of the user (uN) running the application.

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

5 participants