Git Product home page Git Product logo

Comments (7)

WilDoane avatar WilDoane commented on September 2, 2024 19

@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.

RockScience avatar RockScience commented on September 2, 2024 11

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.

thisismydesign avatar thisismydesign commented on September 2, 2024 2

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.

jimhester avatar jimhester commented on September 2, 2024 1

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.

tgwhite avatar tgwhite commented on September 2, 2024

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.

 avatar commented on September 2, 2024

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.

jimhester avatar jimhester commented on September 2, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.