{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/10377","repository_url":"https://api.github.com/repos/facebook/react-native","labels_url":"https://api.github.com/repos/facebook/react-native/issues/10377/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/10377/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/10377/events","html_url":"https://github.com/facebook/react-native/issues/10377","id":182918739,"number":10377,"title":"JSON Parse error: Unrecognized token (no JSON shown)","user":{"login":"GeoffreyPlitt","id":382821,"avatar_url":"https://avatars.githubusercontent.com/u/382821?v=3","gravatar_id":"","url":"https://api.github.com/users/GeoffreyPlitt","html_url":"https://github.com/GeoffreyPlitt","followers_url":"https://api.github.com/users/GeoffreyPlitt/followers","following_url":"https://api.github.com/users/GeoffreyPlitt/following{/other_user}","gists_url":"https://api.github.com/users/GeoffreyPlitt/gists{/gist_id}","starred_url":"https://api.github.com/users/GeoffreyPlitt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GeoffreyPlitt/subscriptions","organizations_url":"https://api.github.com/users/GeoffreyPlitt/orgs","repos_url":"https://api.github.com/users/GeoffreyPlitt/repos","events_url":"https://api.github.com/users/GeoffreyPlitt/events{/privacy}","received_events_url":"https://api.github.com/users/GeoffreyPlitt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-13T22:22:22Z","updated_at":"2016-10-31T12:41:14Z","closed_at":null,"body":"### Issue Description\n\nJSON Parse error: Unrecognized token (no JSON shown)\n### Steps to Reproduce / Code Snippets\n\nNot sure. I get zero information in the stack trace or logs that points to my own code. This appears to be a flaw in JSON parsing error reporting.\n#### Expected Results\n\nSimilar to https://github.com/facebook/react-native/issues/8726, I have a problem when JSON tries to be parsed somewhere deep in RN, seems to even be in native-land. Unlike that bug, which was resolved by fixing Fetch, I can't even tell if Fetch or anything else is the issue here-- we need the JSON to be printed so we can see what's wrong.\n\nI searched the entire react-native codebase for both \"JSON Parse error\" and \"Unrecognized token\" to try and fix it myself, nothing found. So it must be in a dependency or something.\n\nHoping someone knows where these errors are coming from, and can print the offending JSON so I can actually fix the root cause, which is impossible to identify since the offending JSON is not shown.\n### Additional Information\n- React Native version: 0.35\n- Platform(s) (iOS, Android, or both?): Android, maybe both.\n- Operating System (macOS, Linux, or Windows?): macOS\n"},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/257283474","html_url":"https://github.com/facebook/react-native/issues/10377#issuecomment-257283474","issue_url":"https://api.github.com/repos/facebook/react-native/issues/10377","id":257283474,"user":{"login":"pranavrajs","id":2246121,"avatar_url":"https://avatars.githubusercontent.com/u/2246121?v=3","gravatar_id":"","url":"https://api.github.com/users/pranavrajs","html_url":"https://github.com/pranavrajs","followers_url":"https://api.github.com/users/pranavrajs/followers","following_url":"https://api.github.com/users/pranavrajs/following{/other_user}","gists_url":"https://api.github.com/users/pranavrajs/gists{/gist_id}","starred_url":"https://api.github.com/users/pranavrajs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pranavrajs/subscriptions","organizations_url":"https://api.github.com/users/pranavrajs/orgs","repos_url":"https://api.github.com/users/pranavrajs/repos","events_url":"https://api.github.com/users/pranavrajs/events{/privacy}","received_events_url":"https://api.github.com/users/pranavrajs/received_events","type":"User","site_admin":false},"created_at":"2016-10-31T12:41:14Z","updated_at":"2016-10-31T12:41:14Z","body":"@GeoffreyPlitt Got the same issue. Fetch API calls work when remote debugging is live, no trace of issue is available. It seems the issues with `response.json()`. When i comment `response.json`, error has gone, but the result is different."}}
{"actor":{"display_login":"pranavrajs"}}