I deployed my django project in GAE and I get the 502 Bad Gateway error
on all pages except the main one.
The previous version was working, but
is not working since I added API calls for storage
(storages.backends.gcloud.GoogleCloudStorage).
I added environment
variable GOOGLE_APPLICATION_CREDENTIALS in both settings.py and
app.yaml. Log shows this error:
[error] 32#32: *111 upstream prematurely closed connection while reading response header from upstream, client: xxx.xxx.xxx.xxx, server: , request: "GET /accounts/login/ HTTP/1.1", upstream: "http://xxx.xxx.xxx.xxx:8080/accounts/login/", host: "xxxx.appspot.com", referrer: "https://xxxx.appspot.com/"
I posted a question in stackoverflow too and I get no answer. I spent 2 days in this and can't get it working.