Back to All

react native 에서 업로드시 네트워크 오류가 떠요

폴더조회, 업로드 토큰 조회 후
조회된 폴더로 업로드를 시도하였으나 네트워크 오류라고 나오는데
어떤 오류인지 알 수 있을까요?

헤더

{"Accept": "application/json, text/plain, /", "Content-Type": "multipart/form-data"}

body

{"_parts": [["folder", 2030367], ["videofile", [Object]]]}

오류내용

{"code": "ERR_NETWORK", "columnNumber": undefined, "config": {"adapter": ["xhr", "http"], "data": {"_parts": [Array]}, "env": {"Blob": [Function Blob], "FormData": [Function FormData]}, "headers": [Object], "maxBodyLength": -1, "maxContentLength": -1, "method": "post", "timeout": 0, "transformRequest": [[Function transformRequest]], "transformResponse": [[Function transformResponse]], "transitional": {"clarifyTimeoutError": false, "forcedJSONParsing": true, "silentJSONParsing": true}, "url": "http://upload-05.wecandeo.com/v4/upload?token=HhZG1BmrAD78g71gpwr3RhgoQWOpd0n4", "validateStatus": [Function validateStatus], "xsrfCookieName": "XSRF-TOKEN", "xsrfHeaderName": "X-XSRF-TOKEN"}, "description": undefined, "fileName": undefined, "lineNumber": undefined, "message": "Network Error", "name": "AxiosError", "number": undefined, "stack": "AxiosError: Network Error
at handleError (http://192.168.0.106:8081/node_modules%5Cexpo%5CAppEntry.bundle//&platform=android&dev=true&hot=false&lazy=true:232528:39)
at call (native)
at dispatchEvent (http://192.168.0.106:8081/node_modules%5Cexpo%5CAppEntry.bundle//&platform=android&dev=true&hot=false&lazy=true:42026:31)
at setReadyState (http://192.168.0.106:8081/node_modules%5Cexpo%5CAppEntry.bundle//&platform=android&dev=true&hot=false&lazy=true:40063:33)
at didCompleteResponse (http://192.168.0.106:8081/node_modules%5Cexpo%5CAppEntry.bundle//&platform=android&dev=true&hot=false&lazy=true:39849:29)
at apply (native)
at anonymous (http://192.168.0.106:8081/node_modules%5Cexpo%5CAppEntry.bundle//&platform=android&dev=true&hot=false&lazy=true:39991:52)
at apply (native)
at emit (http://192.168.0.106:8081/node_modules%5Cexpo%5CAppEntry.bundle//&platform=android&dev=true&hot=false&lazy=true:3063:40)
at apply (native)
at
callFunction (http://192.168.0.106:8081/node_modules%5Cexpo%5CAppEntry.bundle//&platform=android&dev=true&hot=false&lazy=true:3684:36)
at anonymous (http://192.168.0.106:8081/node_modules%5Cexpo%5CAppEntry.bundle//&platform=android&dev=true&hot=false&lazy=true:3404:31)
at __guard (http://192.168.0.106:8081/node_modules%5Cexpo%5CAppEntry.bundle//&platform=android&dev=true&hot=false&lazy=true:3621:15)
at callFunctionReturnFlushedQueue (http://192.168.0.106:8081/node_modules%5Cexpo%5CAppEntry.bundle//&platform=android&dev=true&hot=false&lazy=true:3403:21)", "status": null}