1 year ago

#224562

test-img

Hyejung

[Unhandled promise rejection: Error: Network request failed]

I use react-native with graphQL and expo.

I keep facing this error issue. This is caused when I try to upload file to back from front.

I don't know whether it is because of network issue or code issue.

ps - I use localtunnel to link back and front.

npx localtunnel --port 4000

This issue has existed for more than a month :(

Please help me.

network Error [TypeError: Network request failed]
Error: ENOENT: no such file or directory, open '/Users/hayat/Desktop/chungchunon-native/http:/172.30.1.35:19000/node_modules/expo/AppEntry.bundle?platform=android&dev=true&hot=false&strict=false&minify=false'
    at Object.openSync (node:fs:585:3)
    at Object.readFileSync (node:fs:453:35)
    at getCodeFrame (/Users/hayat/Desktop/chungchunon-native/node_modules/metro/src/Server.js:919:18)
    at Server._symbolicate (/Users/hayat/Desktop/chungchunon-native/node_modules/metro/src/Server.js:992:22)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at Server._processRequest (/Users/hayat/Desktop/chungchunon-native/node_modules/metro/src/Server.js:403:7) {
  errno: -2,
  syscall: 'open',
  code: 'ENOENT',
  path: '/Users/hayat/Desktop/chungchunon-native/http:/172.30.1.35:19000/node_modules/expo/AppEntry.bundle?platform=android&dev=true&hot=false&strict=false&minify=false'
}

[Unhandled promise rejection: Error: Network request failed]
at http://172.30.1.35:19000/node_modules/expo/AppEntry.bundle?platform=android&dev=true&hot=false&strict=false&minify=false:174965:29 in ApolloError
at node_modules/@apollo/client/core/core.cjs:1120:40 in utilities.asyncMap.subscribe$argument_0.error
at node_modules/zen-observable/lib/Observable.js:139:8 in notifySubscription
at http://172.30.1.35:19000/node_modules/expo/AppEntry.bundle?platform=android&dev=true&hot=false&strict=false&minify=false:169991:22 in onNotify
at node_modules/zen-observable/lib/Observable.js:239:11 in error
at node_modules/zen-observable/lib/Observable.js:139:8 in notifySubscription
at http://172.30.1.35:19000/node_modules/expo/AppEntry.bundle?platform=android&dev=true&hot=false&strict=false&minify=false:169991:22 in onNotify
at node_modules/zen-observable/lib/Observable.js:239:11 in error
at node_modules/@apollo/client/utilities/utilities.cjs:968:4 in iterateObserversSafely
at http://172.30.1.35:19000/node_modules/expo/AppEntry.bundle?platform=android&dev=true&hot=false&strict=false&minify=false:169570:34 in error
at node_modules/zen-observable/lib/Observable.js:139:8 in notifySubscription
at http://172.30.1.35:19000/node_modules/expo/AppEntry.bundle?platform=android&dev=true&hot=false&strict=false&minify=false:169991:22 in onNotify
at node_modules/zen-observable/lib/Observable.js:239:11 in error
at node_modules/zen-observable/lib/Observable.js:139:8 in notifySubscription
at http://172.30.1.35:19000/node_modules/expo/AppEntry.bundle?platform=android&dev=true&hot=false&strict=false&minify=false:169991:22 in onNotify
at node_modules/zen-observable/lib/Observable.js:239:11 in error
at http://172.30.1.35:19000/node_modules/expo/AppEntry.bundle?platform=android&dev=true&hot=false&strict=false&minify=false:176657:28 in error
at node_modules/zen-observable/lib/Observable.js:139:8 in notifySubscription
at http://172.30.1.35:19000/node_modules/expo/AppEntry.bundle?platform=android&dev=true&hot=false&strict=false&minify=false:169991:22 in onNotify
at node_modules/zen-observable/lib/Observable.js:239:11 in error
at node_modules/apollo-upload-client/public/createUploadLink.js:227:22 in runtimeFetch.then.then.then._catch$argument_0

--

this error message shows me some weird path: /Users/hayat/Desktop/chungchunon-native/http:/172.30.1.35:19000/node_modules/expo/AppEntry.bundle?platform=android&dev=true&hot=false&strict=false&minify=false.

if I go to /Users/hayat/Desktop/chungchunon-native, there's no 'http:/172.30~~' file.

enter image description here

btw, this http:/172.30~~ path is my expo address.

enter image description here

amazon-web-services

react-native

expo

gql

0 Answers

Your Answer

Accepted video resources