Hi, We have the strangest problem and I'm hoping someone on this list can help. We have a django app running under uWSGI behind an Nginx reverse proxy. The app is a game that can either run within the Facebook iFrame or as a standalone app.
We are using a maintenance mode middleware to return a 503 error and a HTML response page to all users (except admins) if they visit the app while it's in maintenance mode. For some reason, if I access the app using the facebook iframe while it's in maintenance mode, I get a blank white page - firebug reports a 503 returned, but there is nothing in the response body. If I access the app as a standalone I get the server maintenance message displayed. Where it gets weird is that if I put a line of code to print the contents of the user's request during the execution of the maintenance mode middleware, it displays the server maintenance message correctly! The print command outputs the contents of the request to the uWSGI log, it doesn't send this as part of the response or anything like that. We've preivously run this app under apache/mod_wsgi using the same nginx frontend and never had this problem before. The maintenance mode message was always displayed correctly in both facebook and when we accessed the app standalone when we used the apache/mod_wsgi setup. Does anyone have any idea what's going on here? I'm baffled. Thanks, Guy _______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
