Guzzle Curl Error 60 SSL unable to get local issuer

后端 未结 11 1763
刺人心
刺人心 2020-12-14 16:00

Trying to use the YouTube API v3 to get some video(s) information, using Guzzle in Symfony2 using Service Descriptors.

When I run the script, I get this:

11条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-14 16:47

    If you are using Facades Http then you can pass verify false in withOptions method :

    Http::withOptions(['verify' => false,])->withHeaders($headers)->get($endpoint);

提交回复
热议问题