I am trying to to debug the react native app, If I don\'t try to debug JS remotely then everything is fine, but when I try to debug JS remotely I do get this error.
This can be solved by restarting JS debugging and closing existing debugger.
On iOS, do:
CMD + CTRL + Z
Stop Remote JS Debugging
CMD + CTRL + Z
Againenable Remote JS Debugging
Almost the same on Android, but the difference is the keyboard command it is CMD + M
on Mac or CTRL+M
on Windows devices.