Comments (7)
@jimhester: an additional possibility that too many packages ignore: in enterprise and government environments, users often must use custom CA bundles provided by their IT. Having a well documented example in the package docs that shows how to successfully point to a custom certificate file would be beneficial.
from gmailr.
I have finally managed to get rid of this error by running first (don't ask me why it fixes it, I have found this on another forum, for a slightly different problem)
httr::set_config( config( ssl_verifypeer = 0L ) )
Should we include this in gmailr?
from gmailr.
httr::set_config( config( ssl_verifypeer = 0L ) )
don't ask me why it fixes it
Seems very much like you're disabling peer verification which would not be the right way to go.
from gmailr.
httr uses curl, not RCurl so you need to update the curl package. However the error you are getting looks to me like your CA certificates are either not being found appropriately or are outdated in your OS.
If updating curl does not fix the issue I would open an issue at https://github.com/jeroenooms/curl/issues/.
In either case I don't believe this is a gmailr issue.
from gmailr.
I had a similar problem with a different site and your fix worked as well. The issue is that the target site's SSL chain is screwed up somehow and httr rejects a connection accordingly. Your fix tells the system "don't worry about it."
from gmailr.
Mine was cause because of incorrect system date and time. If that's the case you just have to change your computer date and time to the real one.
from gmailr.
@WilDoane, I agree with you, having a well documented example would be great, however I do not know what the best practice for how to do this is, nor the local setup to reproduce and test the suggested fixes.
I think a combination of CURL_CA_BUNDLE
and CURL_SSL_BACKEND
environment variables can be used to configure the proper bundles for your system in the curl package, but really I think the best place for this documentation in the curl package, not in gmailr.
from gmailr.
Related Issues (20)
- display name not showing up HOT 1
- Getting Started Vignette Seems Outdated HOT 3
- Problem on R 4.2.1? HOT 8
- gm_auth_configure() and gm_send_message() work locally but not remotely on Cloud Build with same JSON file (or key and secret) specified HOT 7
- Unable to confirm Google credentials for `Gmailr` when running via Windows Task Scheduler HOT 8
- Update `gm_auth_configure()` to take `client` HOT 1
- Upkeep for gmailr
- `usethis::use_readme_rmd()`
- Update errors to rlang 1.0.0. Helpful guides:
- Add the web / pseudo-oob case to the OAuth client article
- Move lots of README content to articles
- Make it possible to pass `subject` to `gm_auth()`
- Update Get Started
- send another email in the same thread HOT 1
- Release gmailr 2.0.0 HOT 2
- Authentication expiring repetitively for non-interactive auth HOT 2
- Subject becomes garbled when it contains accented character and more than 55 characters HOT 2
- Are there any changes in gm_auth_configure() -> error: attempt to apply non-function HOT 4
- Upkeep for gmailr (2023)
- Update error for `gmailr_query()`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gmailr.