{"action":"created","issue":{"url":"https://api.github.com/repos/highfidelity/fake_braintree/issues/111","labels_url":"https://api.github.com/repos/highfidelity/fake_braintree/issues/111/labels{/name}","comments_url":"https://api.github.com/repos/highfidelity/fake_braintree/issues/111/comments","events_url":"https://api.github.com/repos/highfidelity/fake_braintree/issues/111/events","html_url":"https://github.com/highfidelity/fake_braintree/issues/111","id":120016671,"number":111,"title":"Exception raised undefined method `[]' for nil:NilClass","user":{"login":"beanieboi","id":29251,"avatar_url":"https://avatars.githubusercontent.com/u/29251?v=3","gravatar_id":"","url":"https://api.github.com/users/beanieboi","html_url":"https://github.com/beanieboi","followers_url":"https://api.github.com/users/beanieboi/followers","following_url":"https://api.github.com/users/beanieboi/following{/other_user}","gists_url":"https://api.github.com/users/beanieboi/gists{/gist_id}","starred_url":"https://api.github.com/users/beanieboi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beanieboi/subscriptions","organizations_url":"https://api.github.com/users/beanieboi/orgs","repos_url":"https://api.github.com/users/beanieboi/repos","events_url":"https://api.github.com/users/beanieboi/events{/privacy}","received_events_url":"https://api.github.com/users/beanieboi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-02T19:24:37Z","updated_at":"2015-12-07T13:24:43Z","closed_at":null,"body":"Hey,\r\n\r\nfirst of all, thanks for maintaining fake_braintree. it helps us a ton.\r\n\r\nwe recently encountered a a strange problem where we try to parse the response from a transparent_redirect request. our JSON parsing failed and said that the response is not a valid JSON. it is very hard to reproduce but i finally got a log output. it not very much, but it's a start. i just want to put that out there, maybe other people are facing the same problem.\r\n\r\nwe are using rspec with parallel_tests and therefor running 6 fake braintree servers.\r\n\r\nminor problems i faced so far:\r\n- the log file get's overwritten, since multiple threads want to access the same file. maybe we can add a uniq identifier to the log file?\r\n- all logging is disable, maybe add a debug option, it's really hard to get any output from fake_braintree to the surface.\r\n\r\nthe exception i see. sadly i don't have a stack trace yet nor which route is causing this.\r\n\r\n```\r\nInternal Server Error\r\nundefined method `[]' for nil:NilClass\r\n\r\n\r\n WEBrick/1.3.1 (Ruby/2.2.3/2015-08-18) at\r\n localhost:39331\r\n```\r\n\r\ni will update the issue when i have more information."},"comment":{"url":"https://api.github.com/repos/highfidelity/fake_braintree/issues/comments/162522890","html_url":"https://github.com/highfidelity/fake_braintree/issues/111#issuecomment-162522890","issue_url":"https://api.github.com/repos/highfidelity/fake_braintree/issues/111","id":162522890,"user":{"login":"beanieboi","id":29251,"avatar_url":"https://avatars.githubusercontent.com/u/29251?v=3","gravatar_id":"","url":"https://api.github.com/users/beanieboi","html_url":"https://github.com/beanieboi","followers_url":"https://api.github.com/users/beanieboi/followers","following_url":"https://api.github.com/users/beanieboi/following{/other_user}","gists_url":"https://api.github.com/users/beanieboi/gists{/gist_id}","starred_url":"https://api.github.com/users/beanieboi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beanieboi/subscriptions","organizations_url":"https://api.github.com/users/beanieboi/orgs","repos_url":"https://api.github.com/users/beanieboi/repos","events_url":"https://api.github.com/users/beanieboi/events{/privacy}","received_events_url":"https://api.github.com/users/beanieboi/received_events","type":"User","site_admin":false},"created_at":"2015-12-07T13:24:43Z","updated_at":"2015-12-07T13:24:43Z","body":"hey,\r\n\r\ni think i have to open this again. i debugged a little more and it seems that fake_braintree (maybe sinatra)  is sending a wrong header to rack-protection. i'm still clueless and continue debugging. "}}