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

Are there any changes in gm_auth_configure() -> error: attempt to apply non-function #194

Closed
r0bis opened this issue Oct 6, 2023 · 4 comments

Comments

@r0bis
Copy link

r0bis commented Oct 6, 2023

I was able to make this work in 2020. Admittedly things might have changed, but troubleshooting is really difficult when I cannot make sense of the error message:

gm_auth_configure(path = "client_secret_xxxx.json")

gives error Error in .auth$set_client(client) : attempt to apply non-function

Everything that I can see about usage of gm_auth_configure suggests that I should supply it with a json file

@jennybc
Copy link
Member

jennybc commented Oct 6, 2023

What version of gargle do you have? This rings a bell as a bug that I fixed there. TL;DR update gargle to the current CRAN version and try again.

@r0bis
Copy link
Author

r0bis commented Oct 6, 2023

Thanks very much, I updated from 1.4.0 to 1.5.2 and now it is not complaining at all, sitrep is finding a token in the cache. I will double check that it actually can send e-mails with attachments, but so far so good. Now gm_auth is complaining of out-of-band flow (things change over 2 years) but I will get to the bottom of it.

@jennybc
Copy link
Member

jennybc commented Oct 6, 2023

Sounds good! Yeah the out-of-band flow has changed a lot and that's just way it is, I'm afraid, given changes on the Google side. Hopefully you'll work through that OK.

@jennybc jennybc closed this as completed Oct 6, 2023
@r0bis
Copy link
Author

r0bis commented Oct 9, 2023

Yes, thanks, the e-mail works with update. OOB is ok and your article explains it very well. Maybe a short TLDR might be useful at the beginning to reassure it is not that hard (I could draft one and submit to you). Another key element to know early would be the timeframe the token may remain operational without a manual intervention. I understand If the project is Testing that would be 1 week and if it is in Published mode that would be 6 months. Best wishes

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