{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/4961","repository_url":"https://api.github.com/repos/facebook/react-native","labels_url":"https://api.github.com/repos/facebook/react-native/issues/4961/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/4961/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/4961/events","html_url":"https://github.com/facebook/react-native/issues/4961","id":123791955,"number":4961,"title":"[Android][fetch] app crashes when response contains special character \\u2028","user":{"login":"han4wluc","id":8134740,"avatar_url":"https://avatars.githubusercontent.com/u/8134740?v=3","gravatar_id":"","url":"https://api.github.com/users/han4wluc","html_url":"https://github.com/han4wluc","followers_url":"https://api.github.com/users/han4wluc/followers","following_url":"https://api.github.com/users/han4wluc/following{/other_user}","gists_url":"https://api.github.com/users/han4wluc/gists{/gist_id}","starred_url":"https://api.github.com/users/han4wluc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/han4wluc/subscriptions","organizations_url":"https://api.github.com/users/han4wluc/orgs","repos_url":"https://api.github.com/users/han4wluc/repos","events_url":"https://api.github.com/users/han4wluc/events{/privacy}","received_events_url":"https://api.github.com/users/han4wluc/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/facebook/react-native/labels/Android","name":"Android","color":"bfe5bf"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":25,"created_at":"2015-12-24T11:06:26Z","updated_at":"2016-07-06T16:28:09Z","closed_at":null,"body":"`fetch('http://someurl')`;\r\nif the response contains the character \\u2028 , the app crashes with the following error\r\n`SyntaxError: Unexpected EOF (line 1 in the generated bundle)`\r\n\r\nIt looks like a tricky character. \r\nTry copy paste the below statement in your browser console, it should give you an error.\r\nvar invalidString = \"s .\" ;\r\nThe special character is between the \"s\" and the \".\";\r\n\r\nRunning on react-native-0.16.0\r\nThis error does not appear during chrome debug mode.\r\n"},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/230827540","html_url":"https://github.com/facebook/react-native/issues/4961#issuecomment-230827540","issue_url":"https://api.github.com/repos/facebook/react-native/issues/4961","id":230827540,"user":{"login":"MITDelian","id":1158032,"avatar_url":"https://avatars.githubusercontent.com/u/1158032?v=3","gravatar_id":"","url":"https://api.github.com/users/MITDelian","html_url":"https://github.com/MITDelian","followers_url":"https://api.github.com/users/MITDelian/followers","following_url":"https://api.github.com/users/MITDelian/following{/other_user}","gists_url":"https://api.github.com/users/MITDelian/gists{/gist_id}","starred_url":"https://api.github.com/users/MITDelian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MITDelian/subscriptions","organizations_url":"https://api.github.com/users/MITDelian/orgs","repos_url":"https://api.github.com/users/MITDelian/repos","events_url":"https://api.github.com/users/MITDelian/events{/privacy}","received_events_url":"https://api.github.com/users/MITDelian/received_events","type":"User","site_admin":false},"created_at":"2016-07-06T16:28:09Z","updated_at":"2016-07-06T16:28:09Z","body":"So for us this turned out to be a Async Storage issue. On Android the max dB size is 5 MB and max query size is 1 MB.\r\n\r\nWe ended up forking react native and compiling from source to up the max size to 50 MB and we shard all of our storage saves into 1 MB pieces and then remerge on the relaunch of the app.\r\n\r\nWe did not face the same character issue as others have."}}
{"actor":{"display_login":"MITDelian"}}