question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hermes Debugger - not discoverable

See original GitHub issue

🐛 Bug Report

When I try to connect my fresh RN app 0.62 with latest Flipper 0.36, it will fail to discover my hermes on android emulator. Is there any extra setup needed?

I noticed that metro will start throwing this error every few seconds (I guess that’s flipper hermes plugin pooling to discover)

Error: Unauthorized request from http://localhost:3000. This may happen because of a conflicting browser extension. Please try to disable it and try again.
    at getSecurityHeadersMiddleware (/Users/anonymous/Git/RN062/node_modules/@react-native-community/cli/build/commands/server/middleware/getSecurityHeadersMiddleware.js:19:10)
    at call (/Users/anonymous/Git/RN062/node_modules/connect/index.js:239:7)
    at next (/Users/anonymous/Git/RN062/node_modules/connect/index.js:183:5)
    at Function.handle (/Users/anonymous/Git/RN062/node_modules/connect/index.js:186:3)
    at handle (/Users/anonymous /Git/RN062/node_modules/connect/index.js:91:14)
    at call (/Users/anonymous/Git/RN062/node_modules/connect/index.js:239:7)
    at next (/Users/anonymous/Git/RN062/node_modules/connect/index.js:183:5)
    at Function.handle (/Users/anonymous/Git/RN062/node_modules/connect/index.js:186:3)
    at Server.app (/Users/anonymous/Git/RN062/node_modules/connect/index.js:51:37)
    at Server.emit (events.js:210:5)

I can see that Chrome itself is able to find hermes for debugging via /json request image

To Reproduce

  1. Install fresh React Native app
  2. Enable Hermes and install to Android emulator
  3. Open flipper and try the Hermes debug plugin

Environment

Flipper: 0.36.0 React Native: 0.62


One screenshot to describe the situation 😄 image

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
mweststratecommented, Apr 7, 2020

Could you check the locally installed version of @react-native-community/cli? It should be 4.5.1 at least (see this PR).

1reaction
usrbowecommented, Apr 17, 2020

@Grohden For iOS, this is not the correct plugin to use. Hermes is currently only supported on Android. The Debug option is for “remote debugging” and is not currently supported within Flipper.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Flipper Hermes debugger does not show - Stack Overflow
error message: Metro is connected but no Hermes apps were found. Open a React Native screen with Hermes enabled to connect. Note: you...
Read more >
Hermes on Windows + macOS · React Native for Windows + ...
React Native for Windows with Hermes engine supports direct JavaScript runtime inspection using tools such as Chrome or Edge devtools , VSCode debugger, ......
Read more >
React-native + Hermes: debugger can't connect when debug ...
React-native + Hermes: debugger can't connect when debug Android. Set up a project. Run start and android commands from the terminal. Open debugger...
Read more >
VSCode Extension for React Native - Supports Debugging ...
Hermes is the new JavaScript engine optimized for running React Native apps on Android. It improves app performance and decreases app size. Click...
Read more >
Configuration · MobX
"never" : Proxies are not used and MobX falls back on non-proxy alternatives. ... While some problems are discoverable statically, others are detectable ......
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