I am using Rackspace cloud to upload my files from my website, it was working perfectly, but for last couple of days i am getting timeout error when i try to upload files.
[curl] 28: Resolving timed out after 200000 milliseconds [url] https://identity.api.rackspacecloud.com/v2.0/tokens
Code i am using to upload files are given below.
$client = new Rackspace(Rackspace::US_IDENTITY_ENDPOINT, array(
'username' => 'username',
'apiKey' => 'alsdfjoad8fw403p3340fs',
));
// Connection timeout in seconds
$CONNECTION_TIMEOUT = 200;
$config = $client->getConfig();
$curl_config = $config->get('curl.options');
$curl_config[CURLOPT_TIMEOUT] = $CONNECTION_TIMEOUT;
$curl_config[CURLOPT_CONNECTTIMEOUT] = $CONNECTION_TIMEOUT;
$config->set('curl.options', $curl_config);
$client->setConfig($config);
// I think this is where the error occurs.
$objectStoreService = $client->objectStoreService(null, 'IAD'));
If anyone know how to fix this, please let me know. thanks in advance.
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2vbIIcE
via IFTTT
Aucun commentaire:
Enregistrer un commentaire