The development server returned response error code: 500

See original GitHub issue

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

Issue Analytics

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

github_iconTop GitHub Comments

57reactions
allanesquinacommented, Apr 1, 2018

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

17reactions
ravichandrasvcommented, Aug 13, 2018

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

The development server returned response error code: 500 in ...
It could be that the name of the JavaScript files that you imported is same with any React predefined libraries/components. For example, importing...
Read more >
The development server returned response error code: 500
The cause of this error is the changes of files location made in react-native dependency which other libraries like native-base point to. To ......
Read more >
The development server returned response error code 500
The development server returned response error code: 500. react-native android error Unable to resolve module `AccessibilityInfo` from.., Module ...
Read more >
Android : The development server returned response error code
Android : The development server returned response error code : 500 in react native [ Beautify Your Computer ...
Read more >
[Solved]-The development server returned response error code
Coding example for the question The development server returned response error code :500 when running react-native app-React Native.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found