https ERR_TOO_MANY_REDIRECTS

440 views
Skip to first unread message

vasya Guskuskudu

unread,
Sep 27, 2016, 9:08:43 AM9/27/16
to Google App Engine
Hello. I have a project made on the flask + gae init. I installed https://letsencrypt.org certificate, and the site works is via https + www and without it, if you type the address manually. But if I set app.yaml to "secure: always" the site stops working in the error on the client specified too many redirects. Please tell me where to look for the causes of such behavior?

vasya Guskuskudu

unread,
Sep 27, 2016, 9:11:01 AM9/27/16
to Google App Engine

Adam (Cloud Platform Support)

unread,
Sep 30, 2016, 3:16:10 PM9/30/16
to Google App Engine
Could you share the custom domain of your app? The 'secure: always' directive causes a redirect from http:// to https://, which can cause problems if you're using another service that is also configured to use redirects, such as Cloudflare.

vasya Guskuskudu

unread,
Oct 1, 2016, 8:42:07 PM10/1/16
to Google App Engine
Hi thank you very much, I'm indeed do use cloudflare, can tell you what to do with it? Can i configure it in right way, or should i stop using it?

суббота, 1 октября 2016 г., 5:16:10 UTC+10 пользователь Adam (Cloud Platform Support) написал:

vasya Guskuskudu

unread,
Oct 1, 2016, 8:58:56 PM10/1/16
to Google App Engine
All ok. Thanks for the tip where to look.


суббота, 1 октября 2016 г., 5:16:10 UTC+10 пользователь Adam (Cloud Platform Support) написал:
Could you share the custom domain of your app? The 'secure: always' directive causes a redirect from http:// to https://, which can cause problems if you're using another service that is also configured to use redirects, such as Cloudflare.

Adam (Cloud Platform Support)

unread,
Oct 3, 2016, 12:16:31 PM10/3/16
to Google App Engine
Glad I was able to help. 

For others who may come across this thread, would you mind sharing your solution? I'll guess that you had disabled the additional redirect in the Cloudflare dashboard, as it's no longer needed when using 'secure: always'.

PK

unread,
Oct 3, 2016, 12:23:35 PM10/3/16
to google-a...@googlegroups.com
I am not using Cloudflare because when I looked at it I could not find a way to get my traffic encrypted from Cloudflare to Google and I cannot tell my customers that they enjoy end to end SSL when portion of the way is unencrypted. 

By the way, why would people use Cloudflare at all in front of the GAE front end?

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/fe942b20-070f-42a4-9c37-54ec14938ef3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages