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

AuthenticateInStandaloneApplication.php faulting when run from examples #289

Closed
BeyondClicks opened this issue Mar 11, 2020 · 6 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@BeyondClicks
Copy link

Which version of the client library are you using?
3.1.0

Which version of PHP are you using?
PhP 7.4.3

Which operating system (Linux, Windows, ...) and version?
Windows 10 - 10.0.18363 Build 18363

Actions taken
AuthenticateInStandaloneApplication.php run normally, oauth details provided and authenticated, authorization code provided with no problem.

Expected result
Application proceeds as normal to verify my Oauth key

Actual result
Process stops, PHP fatal errors provided as below -

`PHP Fatal error: Uncaught GuzzleHttp\Exception\RequestException: cURL error 60: SSL certificate problem: unable to get local issuer certificate
(see https://curl.haxx.se/libcurl/c/libcurl-errors.html) in C:\Users\Mike\Desktop\Work Data\Code\google-ads\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php:201
Stack trace:
#0 C:\Users\Mike\Desktop\Work Data\Code\google-ads\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php(155): GuzzleHttp\Handler\CurlFactory::createRejection(Object(GuzzleHttp\Handler\EasyHandle), Array)
#1 C:\Users\Mike\Desktop\Work Data\Code\google-ads\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php(105): GuzzleHttp\Handler\CurlFactory::finishError(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHttp\Handler\CurlFactory))
#2 C:\Users\Mike\Desktop\Work Data\Code\google-ads\vendor\guzzlehttp\guzzle\src\Handler\CurlHandler.php(43): GuzzleHttp\Handler\CurlFactory::finish(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHt in C:\Users\Mike\Desktop\Work Data\Code\google-ads\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php on line 201

Fatal error: Uncaught GuzzleHttp\Exception\RequestException: cURL error 60: SSL certificate problem: unable to get local issuer certificate (see
https://curl.haxx.se/libcurl/c/libcurl-errors.html) in C:\Users\Mike\Desktop\Work Data\Code\google-ads\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php:201
Stack trace:
#0 C:\Users\Mike\Desktop\Work Data\Code\google-ads\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php(155): GuzzleHttp\Handler\CurlFactory::createRejection(Object(GuzzleHttp\Handler\EasyHandle), Array)
#1 C:\Users\Mike\Desktop\Work Data\Code\google-ads\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php(105): GuzzleHttp\Handler\CurlFactory::finishError(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHttp\Handler\CurlFactory))
#2 C:\Users\Mike\Desktop\Work Data\Code\google-ads\vendor\guzzlehttp\guzzle\src\Handler\CurlHandler.php(43): GuzzleHttp\Handler\CurlFactory::finish(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHt in C:\Users\Mike\Desktop\Work Data\Code\google-ads\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php on line 201`

@BeyondClicks BeyondClicks added the bug Something isn't working label Mar 11, 2020
@fiboknacky
Copy link
Member

Could you try what's suggested in this wiki and see if the issue is gone?

@fiboknacky fiboknacky self-assigned this Mar 11, 2020
@BeyondClicks
Copy link
Author

The Curl file mentioned was missing, went through the guide and re-added it but no change was made to the issue.

@fiboknacky
Copy link
Member

Could you elaborate what "Curl" file is missing? You mean you don't have curl command in your system?

@BeyondClicks
Copy link
Author

The .crt file was missing. Curl is in and functional now

@fiboknacky
Copy link
Member

What steps did you do in particular? There are many steps in the wiki, so could you please specify what you did in detail?

And in what line of AuthenticateInStandaloneApplication did it stop?

@BeyondClicks
Copy link
Author

Went to recreate the steps to get the point in which it stopped, and it seemed to run this time, Wiki fix must have gone though. I re-downladed the curl-ca-bundle.crt and placed it in my home path, then used the first of the three solutions (explicit connection in PHP.ini)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants