{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/4558","labels_url":"https://api.github.com/repos/facebook/react-native/issues/4558/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/4558/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/4558/events","html_url":"https://github.com/facebook/react-native/issues/4558","id":120359973,"number":4558,"title":"IOS Application crash in networking code RCTNetworking.m#L177","user":{"login":"FarazShaikh","id":2507850,"avatar_url":"https://avatars.githubusercontent.com/u/2507850?v=3","gravatar_id":"","url":"https://api.github.com/users/FarazShaikh","html_url":"https://github.com/FarazShaikh","followers_url":"https://api.github.com/users/FarazShaikh/followers","following_url":"https://api.github.com/users/FarazShaikh/following{/other_user}","gists_url":"https://api.github.com/users/FarazShaikh/gists{/gist_id}","starred_url":"https://api.github.com/users/FarazShaikh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FarazShaikh/subscriptions","organizations_url":"https://api.github.com/users/FarazShaikh/orgs","repos_url":"https://api.github.com/users/FarazShaikh/repos","events_url":"https://api.github.com/users/FarazShaikh/events{/privacy}","received_events_url":"https://api.github.com/users/FarazShaikh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-04T09:05:17Z","updated_at":"2015-12-04T09:05:26Z","closed_at":null,"body":"I modified the movies example to point to my rest server. Every time I scroll beyond the viewable page size for my listview (fetches next page from a golang rest server) the react native app crashes deep inside \r\n\r\nRCTNetworking.m\r\n-------------------------\r\nhttps://github.com/facebook/react-native/blob/master/Libraries/Network/RCTNetworking.m#L177\r\n\r\nError shown in chrome console\r\n------------------------------------------\r\nThe RCTURLRequestHandlers RCTFileRequestHandler: 0x7b2392d0 and RCTDataRequestHandler: 0x7b233910 both reported that they can handle the request NSMutableURLRequest: 0x7da29ed0 { URL: (null) }, and have equal priority (0). This could result in non-deterministic behavior.\r\n\r\n\r\nXCODE Error\r\n------------------------\r\n2015-12-04 00:46:44.795 [trace][tid:com.facebook.React.JavaScript][RCTContextExecutor.m:129] 'Running application \"hazen\" with appParams: {\"rootTag\":1,\"initialProps\":{}}. __DEV__ === true, development-level warning are ON, performance optimizations are OFF'\r\n2015-12-04 00:47:19.861 [warn][tid:com.facebook.React.RCTNetworkingQueue][RCTNetworking.m:175] The RCTURLRequestHandlers <RCTFileRequestHandler: 0x7b2392d0> and <RCTDataRequestHandler: 0x7b233910> both reported that they can handle the request <NSMutableURLRequest: 0x7da29ed0> { URL: (null) }, and have equal priority (0). This could result in non-deterministic behavior.\r\n2015-12-04 00:47:19.930 hazen[58790:928100] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[_NSPlaceholderData initWithContentsOfURL:options:error:]: nil URL argument'\r\n*** First throw call stack:\r\n(\r\n\t0   CoreFoundation                      0x0153ca84 __exceptionPreprocess + 180\r\n\t1   libobjc.A.dylib                     0x00788e02 objc_exception_throw + 50\r\n\t2   CoreFoundation                      0x0153c9ad +[NSException raise:format:] + 141\r\n\t3   Foundation                          0x0035a25d -[NSData(NSData) initWithContentsOfURL:options:error:] + 100\r\n\t4   Foundation                          0x0035a1df +[NSData(NSData) dataWithContentsOfURL:options:error:] + 83\r\n\t5   hazen                               0x0018f098 __50-[RCTDataRequestHandler sendRequest:withDelegate:]_block_invoke + 760\r\n\t6   Foundation                          0x00435a6b __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ + 12\r\n\t7   Foundation                          0x003598ff -[NSBlockOperation main] + 108\r\n\t8   Foundation                          0x00339d84 -[__NSOperationInternal _start:] + 697\r\n\t9   Foundation                          0x00339ac4 -[NSOperation start] + 83\r\n\t10  Foundation                          0x00339902 __NSOQSchedule_f + 245\r\n\t11  libdispatch.dylib                   0x04a119cd _dispatch_client_callout + 14\r\n\t12  libdispatch.dylib                   0x049f5650 _dispatch_queue_drain + 2227\r\n\t13  libdispatch.dylib                   0x049f4b04 _dispatch_queue_invoke + 570\r\n\t14  libdispatch.dylib                   0x049f77bb _dispatch_root_queue_drain + 550\r\n\t15  libdispatch.dylib                   0x049f758e _dispatch_worker_thread3 + 115\r\n\t16  libsystem_pthread.dylib             0x04d31270 _pthread_wqthread + 1050\r\n\t17  libsystem_pthread.dylib             0x04d2ef82 start_wqthread + 34\r\n)\r\nlibc++abi.dylib: terminating with uncaught exception of type NSException\r\n(lldb) \r\n\r\n\r\nThis is 100% reproducible, I can share the client side code .. (but server still runs on my local box so client won't run out of the box on react playground)\r\n\r\nNOTES\r\n-----------\r\nThis looks like some debug assert code under RCT_DEBUG, i removed it and tried going past the issue but the application still crashed. (so must be something serious)\r\n\r\nPlease let me know if anything else is needed in to debug this."},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/161913130","html_url":"https://github.com/facebook/react-native/issues/4558#issuecomment-161913130","issue_url":"https://api.github.com/repos/facebook/react-native/issues/4558","id":161913130,"user":{"login":"facebook-github-bot","id":6422482,"avatar_url":"https://avatars.githubusercontent.com/u/6422482?v=3","gravatar_id":"","url":"https://api.github.com/users/facebook-github-bot","html_url":"https://github.com/facebook-github-bot","followers_url":"https://api.github.com/users/facebook-github-bot/followers","following_url":"https://api.github.com/users/facebook-github-bot/following{/other_user}","gists_url":"https://api.github.com/users/facebook-github-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/facebook-github-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facebook-github-bot/subscriptions","organizations_url":"https://api.github.com/users/facebook-github-bot/orgs","repos_url":"https://api.github.com/users/facebook-github-bot/repos","events_url":"https://api.github.com/users/facebook-github-bot/events{/privacy}","received_events_url":"https://api.github.com/users/facebook-github-bot/received_events","type":"User","site_admin":false},"created_at":"2015-12-04T09:05:26Z","updated_at":"2015-12-04T09:05:26Z","body":"Hey FarazShaikh, thanks for reporting this issue!\n\nReact Native, as you've probably heard, is getting really popular and truth is we're getting a bit overwhelmed by the activity surrounding it. There are just too many issues for us to manage properly.\n\n- If this is a feature request or a bug that you would like to be fixed by the team, please report it on [Product Pains](https://productpains.com/product/react-native/). It has a ranking feature that lets us focus on the most important issues the community is experiencing.\n\n- If you don't know how to do something or not sure whether some behavior is expected or a bug, please ask on [StackOverflow](http://stackoverflow.com/questions/tagged/react-native) with the tag `react-native` or for more real time interactions, ask on [Discord](https://discord.gg/0ZcbPKXt5bZjGY5n) in the #react-native channel.\n\n- We welcome clear issues and PRs that are ready for in-depth discussion; thank you for your contributions!\n"}}