I recently changed my Django app powered by Docker over to a paid plan. After I did this on next the deploy my service started not loading in the browser with the error message saying there were to many redirects.
There are no errors in the deployment logs or the runtime logs. When running a simple GET request to https://globalfingerprints.onrender.com I see the following headers come back.
I seems like perhaps cloudflare is involved and perhaps doing the redirects? My app doesn’t use cloudfare so I am wondering if could be something on the render.com side.
Alan, Thank you that was the problem! I did indeed have an SSL redirect in my app. The only thing I cannot explain is the app was working with redirect on and then sudden stopped working. I have now taken the SSL redirect out and things are working great.
I do have the ALLOW_HOSTS configured as the docs state:
ALLOWED_HOSTS = ['app.globalfingerprints.org']
RENDER_EXTERNAL_HOSTNAME = os.environ.get('RENDER_EXTERNAL_HOSTNAME')
if RENDER_EXTERNAL_HOSTNAME:
ALLOWED_HOSTS.append(RENDER_EXTERNAL_HOSTNAME)