google.appengine.api.urlfetch_errors module¶
Errors used in the urlfetch API developers.
-
exception
google.appengine.api.urlfetch_errors.
ConnectionClosedError
[source]¶ Bases:
google.appengine.api.urlfetch_errors.DownloadError
Raised when the target server prematurely closes the connection.
-
exception
google.appengine.api.urlfetch_errors.
DNSLookupFailedError
[source]¶ Bases:
google.appengine.api.urlfetch_errors.DownloadError
Raised when the DNS lookup for a URL failed.
-
exception
google.appengine.api.urlfetch_errors.
DeadlineExceededError
[source]¶ Bases:
google.appengine.api.urlfetch_errors.DownloadError
Raised when we could not fetch the URL because the deadline was exceeded.
This can occur with either the client-supplied ‘deadline’ or the system default, if the client does not supply a ‘deadline’ parameter.
-
exception
google.appengine.api.urlfetch_errors.
DownloadError
[source]¶ Bases:
google.appengine.api.urlfetch_errors.Error
Raised when we could not fetch the URL for any reason.
Note that this exception is only raised when we cannot contact the server. HTTP errors (e.g., 404) are returned in the status_code field in the return value of fetch, and no exception is raised.
-
exception
google.appengine.api.urlfetch_errors.
Error
[source]¶ Bases:
exceptions.Exception
Base URL fetcher error type.
-
exception
google.appengine.api.urlfetch_errors.
InternalTransientError
[source]¶ Bases:
google.appengine.api.urlfetch_errors.Error
Raised when an internal transient error occurs.
-
exception
google.appengine.api.urlfetch_errors.
InvalidMethodError
[source]¶ Bases:
google.appengine.api.urlfetch_errors.Error
Raised when an invalid value for ‘method’ is provided
-
exception
google.appengine.api.urlfetch_errors.
InvalidURLError
[source]¶ Bases:
google.appengine.api.urlfetch_errors.Error
Raised when the URL given is empty or invalid.
Only http: and https: URLs are allowed. The maximum URL length allowed is 2048 characters. The login/pass 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.
MalformedReplyError
[source]¶ Bases:
google.appengine.api.urlfetch_errors.DownloadError
Raised when the target server returns 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.
ResponseTooLargeError
(response)[source]¶ Bases:
google.appengine.api.urlfetch_errors.Error
Raised when the response was too large and was truncated.
-
exception
google.appengine.api.urlfetch_errors.
SSLCertificateError
[source]¶ Bases:
google.appengine.api.urlfetch_errors.Error
Raised when an invalid server certificate is presented.
-
exception
google.appengine.api.urlfetch_errors.
TooManyRedirectsError
[source]¶ Bases:
google.appengine.api.urlfetch_errors.DownloadError
Raised when follow_redirects input parameter was set to true and the redirect limit was hit.