Environment is Nginx + uwsgi.
Getting a 502 bad gateway error from Nginx on certain GET requests. Seems to be related to the length of the URL. In our particular cas
This can happen if your request/response headers are quite large.
To fix it, in /etc/uwsgi/apps-available/your-app.ini add buffer-size=65535
buffer-size=65535