URL error 0: The cURL request was retried 3 times and did not succeed

后端 未结 1 1523
野趣味
野趣味 2020-12-21 03:28

I am working on a project that is hosted on Google App Engine, and using app_devserver for local development. At the start I had problems with certificates but when I finall

相关标签:
1条回答
  • 2020-12-21 04:09

    I had exactly this problem using the Google Drive app, after hours trying to find a solution, I got it to work using the GuzzleHttp sink option

    $client = new \Google_Client();
    // ... Client Configuration
    
    $httpClient = new Client([
        'sink' => 'path_to_any_temp_file',
        'base_uri' => $client->getConfig('base_path'),
    ]);
    $client->setHttpClient($httpClient);
    

    Worth the try.

    0 讨论(0)
提交回复
热议问题