Skip to content

Can't connect to developer's tools from real device (IOS) #712

Open

Description

@Natteke

Environment

RN 61.5
Haul 0.17.0

Looks like by default device trying to connect to localhost:8081/debugger-proxy,
but the haul's server respond is like:
{"statusCode":404,"error":"Not Found","message":"File /debugger-proxy not found"}

Also real device connects fine if i use metro bundler instead.

i even thought i could bundle js by haul, and give the output to metro, but i dont manage to configure metro for that :D

Can you suggest something to connect real device to JS debugger/console?

Thanks!

Activity

  1. changed the title [-]Cant connect to developer's tools from real device (IOS)[/-] [+]Can't connect to developer's tools from real device (IOS)[/+] on Mar 19, 2020
  2. Natteke commented on Apr 22, 2020

    @Natteke
    Author

    Android works only after "adb -s reverse tcp:8081 tcp:8081"
    Maybe this is the case

    Is there any workaraunds or something i could do to connect real device to debugger?

  3. zamotany commented on Apr 22, 2020

    @zamotany
    Contributor

    Android works only after "adb -s reverse tcp:8081 tcp:8081"

    Running this command is necessary even with Metro and it's more of a Android thing than Haul/Metro/React Native.

    /debugger-proxy should be a WebSocket not HTTP route and definitely not a file.

  4. Natteke commented on Apr 22, 2020

    @Natteke
    Author

    @zamotany yes. Metro works out of the box for both platforms.
    Right now Haul issue happening only with ios device.

    Everything fine with metro (clear react-native start) and ios.
    But after adding default haul, ios real device cannot connect to dev server

  5. zamotany commented on Apr 22, 2020

    @zamotany
    Contributor

    And the error you've posted is displayed in the terminal when haul start is running?? Or where is that coming from?

  6. zamotany commented on Apr 22, 2020

    @zamotany
    Contributor
  7. zamotany commented on Apr 22, 2020

    @zamotany
    Contributor

    There's not easy workaround for that. It needs changes in the haul's server itself, changing how the WebSocket server is created.

  8. Natteke commented on Apr 22, 2020

    @Natteke
    Author

    {"statusCode":404,"error":"Not Found","message":"File /debugger-proxy not found"}

    this error haul dev server shows me in the browser when i tried to get ..../debugger-proxy.
    IOS device tries to connect with that path, and i also tried 👯
    im not very smart react-native-developer :D

  9. Natteke commented on Apr 22, 2020

    @Natteke
    Author

    There's not easy workaround for that. It needs changes in the haul's server itself, changing how the WebSocket server is created.

    Well, at least we know the problem.

    If this reproducible, maybe it could be fixed in some of next releases)

  10. danlupascu commented on Aug 25, 2020

    @danlupascu

    Hey, I'm having this issue too and I think it's kind of important. What's the point of creating such a tool if you can't use the debugger on a real iOS device?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions