You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, Sorry to bug you with this... I should probably be able to dig into it and eventually figure it out. But I figured, since you know the code better than I do, maybe you'd have a quick answer?:
PHP Fatal error: Uncaught exception 'Requests_Exception' with message 'cURL error 28: Operation timed out after 10001 milliseconds with 0 bytes received' in /var/www/sites/frantz/photos/requests_lib/library/Requests/Transport/cURL.php:421
Stack trace:
#0 /var/www/sites/frantz/photos/requests_lib/library/Requests/Transport/cURL.php(177): Requests_Transport_cURL->process_response('', Array)
#1 /var/www/sites/frantz/photos/requests_lib/library/Requests.php(379): Requests_Transport_cURL->request(Object(Requests_IRI), Array, '{"path":"id:cm8...', Array)
#2 /var/www/sites/frantz/photos/requests_lib/library/Requests.php(268): Requests::request('https://api.dro...', Array, '{"path":"id:cm8...', 'POST', Array)
#3 /var/www/sites/frantz/photos/dbxapi.php(97): Requests::post('https://api.dro...', Array, '{"path":"id:cm8...')
#4 /var/www/sites/frantz/photos/dbxapi.php(133): dbx_get_metadata('ptFv6sHgGyAAAAA...', 'id:cm8IQIpr6GAA...')
#5 /var/www/sites/frantz/photos/PhotoLinx2.php(542): dbx_list_folder('ptFv6sHgGyAAAAA...', '/Camera Upload in /var/www/sites/frantz/photos/requests_lib/library/Requests/Transport/cURL.php on line 421
Is it just as simple as, "The remote resource didn't respond, so Requests timed-out..."?
If so, is there something I should have done within my code to catch this, rather than end up with a Fatal error and my program halting?
Thanks,
Barry Lake
The text was updated successfully, but these errors were encountered:
Requests "just" performs HTTP requests, like curl or sockets would do. It's up to you, library user, to deal with various scenarios, just like you would do using plain curl functions for instance.
Requests returns results when there is results to return (which may or may not be a "successful" request, for instance a 404 page) and returns an exception when it could not perform the request.
The typical use would be :
try {
$result = Requests::request($url, $headers, $data, $type, $options);
// now do something with $result, like checking if it's a "200 OK" request or something else
} catch( Requests_Exception$e ) {
// there was an error, do something with $e, for instancemy_debug_func( $e->getMessage(), $url );
};
Hi, Sorry to bug you with this... I should probably be able to dig into it and eventually figure it out. But I figured, since you know the code better than I do, maybe you'd have a quick answer?:
Is it just as simple as, "The remote resource didn't respond, so Requests timed-out..."?
If so, is there something I should have done within my code to catch this, rather than end up with a Fatal error and my program halting?
Thanks,
Barry Lake
The text was updated successfully, but these errors were encountered: