expo: The development server returned response error code: 500

Followed this post and updated the sdk to 24.0.0 as I needed expo to support react-native 0.51.0 . Issue 1280

Now when I run npm start everything works fine and when I try to run the app on my moblie using npm start I get this error on console

05:31:06: Finished building JavaScript bundle in 4387ms
05:31:07: Failed building JavaScript bundle

And this on my mobile phone.

The development server returned response error code: 500

URL: http://192.168.1.3:19001/node_modules/react-native-scripts/build/bin/crna-entry.bundle?platform=android&dev=true&minify=false&hot=false&assetPlugin=/home/pankaja/Documents/Projects/react-native/placeMe/node_modules/expo/tools/hashAssetFiles

Body:
{"type":"InternalError","errors":[],"message":"Metro Bundler has encountered an internal error, please check your terminal error output for more details"}
processBundleResult
    BundleDownloader.java:223
access$100
    BundleDownloader.java:41
execute
    BundleDownloader.java:157
emitChunk
    MultipartStreamReader.java:69
readAllParts
    MultipartStreamReader.java:116
onResponse
    BundleDownloader.java:145
c
    RealCall.java:135
run
    NamedRunnable.java:32
runWorker
    ThreadPoolExecutor.java:1133
run
    ThreadPoolExecutor.java:607
run
    Thread.java:761

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 2
  • Comments: 26 (1 by maintainers)

Most upvoted comments

I had the same issue here, so what solved my problem was running npm start first and then in another terminal tab run react-native run-android

Downgrade the following: react-native init Project cd Project npm uninstall react-native npm install --save react-native@0.55.4 npm uninstall --save babel-preset-react-native npm install --save babel-preset-react-native@4.0.0 react-native run-android

Same here. Created a new project, run-android, get this in the emulator.

The development server returned response error code: 500

URL: http://10.0.2.2:8081/index.delta?platform=android&dev=true&minify=false

Body: {“type”:“InternalError”,“errors”:[],“message”:“Metro Bundler has encountered an internal error, please check your terminal error output for more details”} processBundleResult BundleDownloader.java:231 access$100 BundleDownloader.java:37 onResponse BundleDownloader.java:204 execute RealCall.java:135 run NamedRunnable.java:32 runWorker ThreadPoolExecutor.java:1162 run ThreadPoolExecutor.java:636 run Thread.java:764

Thanks for the report. We’ve had another report of the same thing, so I am going to consolidate this into that issue. Unfortunately we don’t have a solution for you yet.

delete node_modules folder from project and open package.json change react-native version “react-native”: “0.55.2”, and babel “babel-preset-react-native”: “4”, after that run yarn install or npm install and run.

Hey guys, I got this problem when I installed an npm pkg and removed, what I did to fix was run: react-native link react-native-video

iam facing same problem