POST request returns a 500 INTERNAL SERVER ERROR

Hi,

I have set-up an On-Premise Sentry server to capture exceptions from Cloudflare Workers.

However, it seems my Sentry server isn’t responding correctly to POST requests.

I am not sure why I am getting a 500 response code from the server.

$ curl -v -H "X-Sentry-Auth: Sentry sentry_secret=<my_secret>" -X POST "http://mydomain.com/api/3/store/?sentry_version=7&sentry_client=raven-js%2F3.24.2&sentry_key=<my_key>" -d '{ "project": "<my_project>", "logger": "javascript", "platform": "javascript", "exception": { "values": [ { "type": "Error", "value": "Test" } ] } }'
Note: Unnecessary use of -X or --request, POST is already inferred.
*   Trying x.x.x.x...
* Connected to mydomain.com (x.x.x.x) port 80 (#0)
> POST /api/3/store/?sentry_version=7&sentry_client=raven-js%2F3.24.2&sentry_key=my_key HTTP/1.1
> Host: mydomain.com
> User-Agent: curl/7.47.0
> Accept: */*
> X-Sentry-Auth: Sentry sentry_secret=<my_secret>
> Content-Length: 149
> Content-Type: application/x-www-form-urlencoded
> 
* upload completely sent off: 149 out of 149 bytes
< HTTP/1.1 500 INTERNAL SERVER ERROR
< Server: nginx/1.10.3 (Ubuntu)
< Date: Tue, 08 May 2018 02:35:11 GMT
< Content-Type: text/plain
< Content-Length: 0
< Connection: keep-alive
< X-XSS-Protection: 1; mode=block
< X-Content-Type-Options: nosniff
< Content-Language: en
< Expires: Tue, 08 May 2018 02:35:11 GMT
< Vary: Accept-Language, Cookie
< Last-Modified: Tue, 08 May 2018 02:35:11 GMT
< Cache-Control: max-age=0
< X-Frame-Options: deny
< 
* Connection #0 to host mydomain.com left intact