facebook / facebook-php-business-sdk

PHP SDK for Meta Marketing API
https://developers.facebook.com/docs/business-sdk
Other
833 stars 516 forks source link

The "saga" of CACertificate Issue #472

Closed andreladocruz closed 5 years ago

andreladocruz commented 6 years ago

Sirs,

We keep receiving some "error setting certificate verify locations" error in our integration.

this is the code we are using:

 private function initApi($accessToken)
    {
        Api::init(
            config('dmg.facebook.app_id'),
            config('dmg.facebook.app_secret'),
            $accessToken)
        ->getHttpClient()
        ->setCaBundlePath(resource_path('certificates/fb_ca_chain_bundle.crt'));
    }

This is the error we are receiving:

error setting certificate verify locations:
CAfile: /home/yyy/xxxx/resources/certificates/fb_ca_chain_bundle.crt
CApath: /etc/ssl/certs

The problem is that the fb_ca_chain_bundle.crt file is in both directories.

I think that it's related to Facebook's servers and not about the cert file as it's an intermittent error. =(

We are runing SDK version 3.1.1 (the lastest)

andreladocruz commented 6 years ago

Just to illustrate how intermittent the issue is.

Our job runs each hour. At 10 am, no error is thrown. =P

captura_de_tela_2018-08-16_as_13_35_05

jingping2015 commented 5 years ago

Since we want to handle bugs more efficiently, we've decided to close issue reporting in Github and move to our dedicated bug reporting channel. If you encounter a bug with Business SDK (PHP), please report the issue at our developer bug reporting channel.