Closed saberprashant closed 5 years ago
Add a service name will fix it.
httpBridge.start(5561, "service name", (request) => {...
Hey @kai-ding , thanks for your answer.
Where do I need to make this service, and what should I put in this service?
Thanks :)
@kai-ding thanks for the fix, it works for me
@saberprashant you put the service name as second argument for
httpBridge.start(5561, "SERVICENAME",
at componentWillMount()
Hey @kai-ding @dsendri , I tried the suggested fixes, now I am getting this error again which I got in starting, The development server returned response error code: 500
.
I tried to solve this error following these links but no luck :
https://github.com/react-community/create-react-native-app/issues/401
https://github.com/facebook/react-native/issues/21310
Thanks :)
Hey @kai-ding @dsendri , thank you very much guys, finally it is working.
Now, I am facing one more issue, like when I send a POST request with BODY from POSTMAN to my device(where the server is running). it shows response as OK(200)
, but I don't see data in my console logs, and to see the data I opt for Debug JS Remotely option
in the native app menu, and when the debugger opens in my chrome, no console logs are visible. Also, after this, if I send a new request from POSTMAN then request fails.
I don't know what is happening now.
Please help :)
Hey @kai-ding @dsendri , thanks once again for your help. Finally, it is working good fr me right now as I also solved some last issues which I mentioned in the above comment,
Thanks everyone for your time :)
Please update the readme instructions, I just ran into this same issue caused by following the outdated readme.
Hey @stevenalanstark , somebody has already sent a pull request for the same, I hope they will accept it soon. Well, if you run into any other issue related to http-bridge then do ping me, as I successfully made this module to work for me. Thanks :)
Hi there, @alwx @janherich @mandrigin @yenda
I am trying to use this package and I followed that little documentation, but I am getting this error on running the app on android device(Redmi Note 5). I don't know what is the exact problem, but I tried to search for it and did some trial and error, so I figured out that the code inside componentWillMount() is creating the problem.
Currently, my app code is:
Please help me with this, as I really need to use this in my app.
Thanks :)