google.appengine.api.urlfetch_errors module

Summary

Errors used in the urlfetch API.

Contents

exception google.appengine.api.urlfetch_errors.ConnectionClosedError source

Bases: google.appengine.api.urlfetch_errors.DownloadError

The target server prematurely closed the connection.

exception google.appengine.api.urlfetch_errors.DNSLookupFailedError source

Bases: google.appengine.api.urlfetch_errors.DownloadError

The DNS lookup for a URL failed.

exception google.appengine.api.urlfetch_errors.DeadlineExceededError source

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 a deadline parameter.

exception google.appengine.api.urlfetch_errors.DownloadError source

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 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

An internal transient error occurred.

exception google.appengine.api.urlfetch_errors.InvalidMethodError source

Bases: google.appengine.api.urlfetch_errors.Error

An invalid value was provided for method .

exception google.appengine.api.urlfetch_errors.InvalidURLError source

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.MalformedReplyError source

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.PayloadTooLargeError source

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.SSLCertificateError source

Bases: google.appengine.api.urlfetch_errors.Error

An invalid server certificate was presented.

exception google.appengine.api.urlfetch_errors.TooManyRedirectsError source

Bases: google.appengine.api.urlfetch_errors.DownloadError

follow_redirects was set to True, and the redirect limit was hit.

Design a Mobile Site
View Site in Mobile | Classic
Share by: