I configured sentry in my flask app. After that any error that was generated was getting posted to my account without any issue. But, all the PUT and POST requests are returned with 400 bad request. When sentry configuration and initialisation is commented out, it works properly. My flask app is using nginx as well and as per the documentation I had changed my nginx settings by providing proxy_pass header and also using ProxyFixer to set app.wsgi_app. But none of these changes are fixing the actual issue.