{"action":"opened","issue":{"url":"https://api.github.com/repos/bopfermann/django-raygun-dot-io/issues/3","labels_url":"https://api.github.com/repos/bopfermann/django-raygun-dot-io/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/bopfermann/django-raygun-dot-io/issues/3/comments","events_url":"https://api.github.com/repos/bopfermann/django-raygun-dot-io/issues/3/events","html_url":"https://github.com/bopfermann/django-raygun-dot-io/issues/3","id":74516829,"number":3,"title":"Issues when using the middleware with Gunicorn","user":{"login":"ralmeida","id":167082,"avatar_url":"https://avatars.githubusercontent.com/u/167082?v=3","gravatar_id":"","url":"https://api.github.com/users/ralmeida","html_url":"https://github.com/ralmeida","followers_url":"https://api.github.com/users/ralmeida/followers","following_url":"https://api.github.com/users/ralmeida/following{/other_user}","gists_url":"https://api.github.com/users/ralmeida/gists{/gist_id}","starred_url":"https://api.github.com/users/ralmeida/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ralmeida/subscriptions","organizations_url":"https://api.github.com/users/ralmeida/orgs","repos_url":"https://api.github.com/users/ralmeida/repos","events_url":"https://api.github.com/users/ralmeida/events{/privacy}","received_events_url":"https://api.github.com/users/ralmeida/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-08T22:28:43Z","updated_at":"2015-05-08T22:28:43Z","closed_at":null,"body":"When using this middleware and runserver everything is working as expected. \r\n\r\ni.e. python manage.py runserver 0.0.0.0:9000 --settings my.settings.go\r\n\r\nBut when I use the same settings and use the Gunicorn server I get the following error everytime there is an exception. <socket._socketobject object at 0x7f3424d29130> is not JSON serializable, which is happening on the call to .toJson on line 117 and appears to be due to the request object is different when using Gunicorn. \r\n\r\nLet me know if you have any ideas.\r\n\r\nThanks,\r\nRon\r\n"}}