{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/20895","repository_url":"https://api.github.com/repos/facebook/react-native","labels_url":"https://api.github.com/repos/facebook/react-native/issues/20895/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/20895/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/20895/events","html_url":"https://github.com/facebook/react-native/issues/20895","id":354807196,"node_id":"MDU6SXNzdWUzNTQ4MDcxOTY=","number":20895,"title":"While uploading a blob using Fetch app crashes on iOS","user":{"login":"bhavukjain1","id":15347380,"node_id":"MDQ6VXNlcjE1MzQ3Mzgw","avatar_url":"https://avatars3.githubusercontent.com/u/15347380?v=4","gravatar_id":"","url":"https://api.github.com/users/bhavukjain1","html_url":"https://github.com/bhavukjain1","followers_url":"https://api.github.com/users/bhavukjain1/followers","following_url":"https://api.github.com/users/bhavukjain1/following{/other_user}","gists_url":"https://api.github.com/users/bhavukjain1/gists{/gist_id}","starred_url":"https://api.github.com/users/bhavukjain1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhavukjain1/subscriptions","organizations_url":"https://api.github.com/users/bhavukjain1/orgs","repos_url":"https://api.github.com/users/bhavukjain1/repos","events_url":"https://api.github.com/users/bhavukjain1/events{/privacy}","received_events_url":"https://api.github.com/users/bhavukjain1/received_events","type":"User","site_admin":false},"labels":[{"id":860603247,"node_id":"MDU6TGFiZWw4NjA2MDMyNDc=","url":"https://api.github.com/repos/facebook/react-native/labels/:globe_with_meridians:Networking","name":":globe_with_meridians:Networking","color":"fef2c0","default":false},{"id":257497884,"node_id":"MDU6TGFiZWwyNTc0OTc4ODQ=","url":"https://api.github.com/repos/facebook/react-native/labels/:large_blue_diamond:iOS","name":":large_blue_diamond:iOS","color":"bfd4f2","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-28T16:24:08Z","updated_at":"2018-08-28T17:05:05Z","closed_at":null,"author_association":"NONE","body":"I'm trying to upload my file to a pre-signed URL using fetch:\r\n\r\n```sh\r\nlet url = `data:image/png;base64,${response.data}`\r\nfetch(url)\r\n   .then(res => res.blob())\r\n   .then(blob => {\r\n      fetch(s3URL, {method:'PUT', body:blob})\r\n   })\r\n```\r\n\r\nI get this error:\r\n\r\n```sh\r\nException '*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]' was thrown while invoking sendRequest on target Networking with params (\r\n        {\r\n        data =         {\r\n            blob =             {\r\n                blobId = \"e292f653-6729-498c-9020-8ea47a0f277f\";\r\n                lastModified = 1535473043365;\r\n                offset = 0;\r\n                size = 690263;\r\n                type = \"\";\r\n            };\r\n            trackingName = unknown;\r\n        };\r\n        headers =         {\r\n        };\r\n        incrementalUpdates = 0;\r\n        method = PUT;\r\n        responseType = text;\r\n        timeout = 0;\r\n        url = \"https://example.com\";\r\n        withCredentials = 0;\r\n    },\r\n    387\r\n)\r\ncallstack: (\r\n\t0   CoreFoundation                      0x0000000183dceda4 <redacted> + 252\r\n\t1   libobjc.A.dylib                     0x0000000182f885ec objc_exception_throw + 56\r\n\t2   CoreFoundation                      0x0000000183d67750 _CFArgv + 0\r\n\t3   CoreFoundation                      0x0000000183ca00cc <redacted> + 352\r\n\t4   CoreFoundation                      0x0000000183c9ff48 <redacted> + 64\r\n\t5   QuizOn_New                          0x00000001049486ec -[RCTBlobManager handleNetworkingRequest:] + 664\r\n\t6   QuizOn_New                          0x0000000104ba1934 -[RCTNetworking processDataForHTTPQuery:callback:] + 1436\r\n\t7   QuizOn_New                          0x0000000104ba06e0 -[RCTNetworking buildRequest:completionBlock:] + 3108\r\n\t8   QuizOn_New                          0x0000000104ba6d10 -[RCTNetworking sendRequest:responseSender:] + 232\r\n\t9   CoreFoundation                      0x0000000183dd6580 <redacted> + 144\r\n\t10  CoreFoundation                      0x0000000183cb5748 <redacted> + 284\r\n\t11  CoreFoundation                      0x0000000183cba56c <redacted> + 60\r\n\t12  QuizOn_New                          0x00000001049def30 -[RCTModuleMethod invokeWithBridge:module:arguments:] + 2064\r\n\t13  QuizOn_New                          0x0000000104a89b60 _ZN8facebook5reactL11invokeInnerEP9RCTBridgeP13RCTModuleDatajRKN5folly7dynamicE + 664\r\n\t14  QuizOn_New                          0x0000000104a896f0 _ZZN8facebook5react15RCTNativeModule6invokeEjON5folly7dynamicEiENK3$_0clEv + 132\r\n\t15  QuizOn_New                          0x0000000104a89660 ___ZN8facebook5react15RCTNativeModule6invokeEjON5folly7dynamicEi_block_invoke + 28\r\n\t16  libdispatch.dylib                   0x000000010565d260 _dispatch_call_block_and_release + 24\r\n\t17  libdispatch.dylib                   0x000000010565d220 _dispatch_client_callout + 16\r\n\t18  libdispatch.dylib                   0x000000010566be80 _dispatch_queue_serial_drain + 768\r\n\t19  libdispatch.dylib                   0x0000000105660730 _dispatch_queue_invoke + 328\r\n\t20  libdispatch.dylib                   0x000000010566cdd8 _dispatch_root_queue_drain_deferred_wlh + 352\r\n\t21  libdispatch.dylib                   0x0000000105673ebc _dispatch_workloop_worker_thread + 676\r\n\t22  libsystem_pthread.dylib             0x00000001839f3e70 _pthread_wqthread + 860\r\n\t23  libsystem_pthread.dylib             0x00000001839f3b08 start_wqthread + 4\r\n)\r\n\r\nRCTFatal\r\nfacebook::react::invokeInner(RCTBridge*, RCTModuleData*, unsigned int, folly::dynamic const&)\r\nfacebook::react::RCTNativeModule::invoke(unsigned int, folly::dynamic&&, int)::$_0::operator()() const\r\ninvocation function for block in facebook::react::RCTNativeModule::invoke(unsigned int, folly::dynamic&&, int)\r\n_dispatch_call_block_and_release\r\n_dispatch_client_callout\r\n_dispatch_queue_serial_drain\r\n_dispatch_queue_invoke\r\n_dispatch_root_queue_drain_deferred_wlh\r\n_dispatch_workloop_worker_thread\r\n_pthread_wqthread\r\nstart_wqthread\r\n```"},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/416664712","html_url":"https://github.com/facebook/react-native/issues/20895#issuecomment-416664712","issue_url":"https://api.github.com/repos/facebook/react-native/issues/20895","id":416664712,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNjY2NDcxMg==","user":{"login":"react-native-bot","id":32686087,"node_id":"MDQ6VXNlcjMyNjg2MDg3","avatar_url":"https://avatars0.githubusercontent.com/u/32686087?v=4","gravatar_id":"","url":"https://api.github.com/users/react-native-bot","html_url":"https://github.com/react-native-bot","followers_url":"https://api.github.com/users/react-native-bot/followers","following_url":"https://api.github.com/users/react-native-bot/following{/other_user}","gists_url":"https://api.github.com/users/react-native-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/react-native-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/react-native-bot/subscriptions","organizations_url":"https://api.github.com/users/react-native-bot/orgs","repos_url":"https://api.github.com/users/react-native-bot/repos","events_url":"https://api.github.com/users/react-native-bot/events{/privacy}","received_events_url":"https://api.github.com/users/react-native-bot/received_events","type":"User","site_admin":false},"created_at":"2018-08-28T17:05:05Z","updated_at":"2018-08-28T17:05:05Z","author_association":"COLLABORATOR","body":"<!--\n  {\n    \"flagged_by\":\"react-native-bot\",\n    \"nag_reason\": \"no-template\"\n  }\n-->\nWe are automatically closing this issue because it does not appear to follow any of the provided [issue templates](https://github.com/facebook/react-native/issues/new/choose).\n\nPlease make use of the [bug report template](https://github.com/facebook/react-native/issues/new?template=bug_report.md) to let us know about a **reproducible bug or regression** in the **core** React Native library.\n\nIf you'd like to propose a change or discuss a feature request, there is a repository dedicated to [Discussions and Proposals](https://github.com/react-native-community/discussions-and-proposals) you may use for this purpose.\n"}}
{"actor":{"display_login":"react-native-bot"}}