Request google app engine

96 views
Skip to first unread message

Francisco Javier Gonzalez

unread,
Oct 18, 2017, 4:32:44 PM10/18/17
to Google App Engine

I do a http request with module requests in django (python 3),

import requests
url = 'https://www.google.es'
r = requests.get(url)
str = str(r.content)

and It work right in localhost, but when I deploy in Google App Engine, It return a "('Connection aborted.', error(104, 'connection reset by peer'))", I deploy in a flex enviroment.

I read than it not necessary change for urlfetch module.

Kenworth (Google Cloud Platform)

unread,
Oct 18, 2017, 6:33:23 PM10/18/17
to Google App Engine
The error 'connection reset by peer' is usually transient in nature. The solution is just to try again and make sure your network connection has no problems.

If it persists, I highly encourage you to submit a defect report as described in this article so that proper attention and weight will be given to it. We monitor that issue tracker closely. Please include sanitized deployment logs as much as possible.


Reply all
Reply to author
Forward
0 new messages