Giter Site home page Giter Site logo

Yet another SSL::SSLError issue about gibbon HOT 7 CLOSED

amro avatar amro commented on August 20, 2024
Yet another SSL::SSLError issue

from gibbon.

Comments (7)

amro avatar amro commented on August 20, 2024

I'm seeing this on two of my servers (Ubuntu 14.04) but haven't been able to track it down. In those cases a simple call with curl also fails for the same reason (cert validation). Can you try a request with curl to confirm this?

I am not yet sure whether this is an environment issue or actually an issue with MailChimp's SSL certs.

Thanks,
Amro

Sent from my iPhone

On Jul 8, 2014, at 6:24 PM, Rocco Galluzzo [email protected] wrote:

Hi,

if call gb = Gibbon::API.new('XXXXXXXXXXXXXXXXXXX-us4') get:

OpenSSL::SSL::SSLError (hostname "us1.api.mailchimp.com." does not match the server certificate):
note us1in the url. This happens both with api_keys created with mailchimp panel that those generated with omniauth-mailchimp.

Have tried also with:

  token = 'xxxxxxxxxxxxxxxx-us4'
  gb = Gibbon::API.new(token, {api_endpoint:
    "https://#{token.split(//).last(3).join}.api.mailchimp.com."})

Same error but in this case the url have us4.


Reply to this email directly or view it on GitHub.

from gibbon.

roccogalluzzo avatar roccogalluzzo commented on August 20, 2024

Sent a call to https://us4.api.mailchimp.com/2.0/lists/list and work. On the same computer inside rails the same call not work.

from gibbon.

roccogalluzzo avatar roccogalluzzo commented on August 20, 2024

Note: Part of problem is because gibbon not set correct datacenter, and maybe the other issue is because don't delete -us4 part from api key before send. Is possible?

from gibbon.

roccogalluzzo avatar roccogalluzzo commented on August 20, 2024

I think I found the bugs, send a pull request with details asap.

from gibbon.

amro avatar amro commented on August 20, 2024

Thank you

Thanks,
Amro

Sent from my iPhone

On Jul 8, 2014, at 7:14 PM, Rocco Galluzzo [email protected] wrote:

I think I found the bugs, send a pull request with details asap.


Reply to this email directly or view it on GitHub.

from gibbon.

roccogalluzzo avatar roccogalluzzo commented on August 20, 2024

Yesterday while I was debugging started to to work again. Definitely was Mailchimp problems. Anyway I had look to gibbon code and have refactored a bit, IMO only API class should set, save and transform options. APICategory instead should be used only to make calls. See https://github.com/byterussian/gibbon/tree/fix_issue_90

Is incomplete at the moment, APICategory in my vision should also receive whole api root url, previously built by API class.

Tell me if are interested on this.

from gibbon.

amro avatar amro commented on August 20, 2024

Closing this for now. I'll take a look when I get a moment. Sorry but the last few weeks have been a whirlwind for me in many ways.

from gibbon.

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.