google.appengine.api.urlfetch_errors module
Summary
Errors used in the urlfetch API.
Contents
- exception google.appengine.api.urlfetch_errors.ConnectionClosedErrorsource
-
Bases: google.appengine.api.urlfetch_errors.DownloadError
The target server prematurely closed the connection.
- exception google.appengine.api.urlfetch_errors.DNSLookupFailedErrorsource
-
Bases: google.appengine.api.urlfetch_errors.DownloadError
The DNS lookup for a URL failed.
- exception google.appengine.api.urlfetch_errors.DeadlineExceededErrorsource
-
Bases: google.appengine.api.urlfetch_errors.DownloadError
The URL was not fetched because the deadline was exceeded.
This can occur with either the client-supplied
deadline
, or the system default if the client does not supply adeadline
parameter.
- exception google.appengine.api.urlfetch_errors.DownloadErrorsource
-
Bases: google.appengine.api.urlfetch_errors.Error
The URL could not be retrieved.
This exception is only raised when we cannot contact the server. HTTP errors (such as 404) are returned in the
status_code
field in the return value offetch
, and no exception is raised.
- exception google.appengine.api.urlfetch_errors.Errorsource
-
Bases: exceptions.Exception
Base URL fetcher error type.
- exception google.appengine.api.urlfetch_errors.InternalTransientErrorsource
-
Bases: google.appengine.api.urlfetch_errors.Error
An internal transient error occurred.
- exception google.appengine.api.urlfetch_errors.InvalidMethodErrorsource
-
Bases: google.appengine.api.urlfetch_errors.Error
An invalid value was provided for
method
.
- exception google.appengine.api.urlfetch_errors.InvalidURLErrorsource
-
Bases: google.appengine.api.urlfetch_errors.Error
The URL given was empty or invalid.
Only HTTP and HTTPS URLs are allowed. The maximum URL length is 2048 characters. The login and password portion is not allowed. In deployed applications, only ports 80 and 443 for HTTP and HTTPS respectively are allowed.
- exception google.appengine.api.urlfetch_errors.MalformedReplyErrorsource
-
Bases: google.appengine.api.urlfetch_errors.DownloadError
The target server returned an invalid HTTP response.
Responses are invalid if they contain no headers, malformed or incomplete headers, or have content missing.
- exception google.appengine.api.urlfetch_errors.PayloadTooLargeErrorsource
-
Bases: google.appengine.api.urlfetch_errors.InvalidURLError
The request payload exceeds the limit.
- exception google.appengine.api.urlfetch_errors.ResponseTooLargeError(response)source
-
Bases: google.appengine.api.urlfetch_errors.Error
The response was too large and was truncated.
- exception google.appengine.api.urlfetch_errors.SSLCertificateErrorsource
-
Bases: google.appengine.api.urlfetch_errors.Error
An invalid server certificate was presented.
- exception google.appengine.api.urlfetch_errors.TooManyRedirectsErrorsource
-
Bases: google.appengine.api.urlfetch_errors.DownloadError
follow_redirects
was set to True, and the redirect limit was hit.