-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
react-native example doesn't appear to be working #601
Comments
This is actually due to a limitation in React-Native and their lack of support for This actually used to work in the past for unary requests, but something may have changed in our Connect repo that is causing this to now fail for unary requests also. We also have this issue to track with a possible workaround if it helps at all. |
Thanks |
No problem, apologies for the inconvenience. I will update this repo to make more detailed mention of this issue for react-native. |
Much appreciated. I applied the patch for An example in the README showing this working with a local server would be greatly appreciated. |
If the example does not work, we have to either fix up the code causing the issue, or remove the example. |
Connect does not currently work at all with React Native, so we can either:
@timostamm let me know how you want to proceed. |
Added the custom transport in PR 602. |
@TheKeenestKeen re: your network issue, can you provide some more error details? Is there a stack trace showing what is occurring? |
Sorry for the late response @smaye81. I applied the patch as described in this post facebook/react-native#34402 (comment) to the react-native example in this repo. This seems to work when pointing to the remote Eliza server (app works as expected), but when I spin up the express server from this repo and point the mobile client to the express server at http://localhost:3000, I get the following:
What I did above was just a stab in the dark to see if I could get something working and it is unrelated to the approach in the current open PR in this repo. Please ignore my approach above. |
Hi @TheKeenestKeen. Instead of using Also, are you running on iOS or Android? Apple disables HTTP requests by default, so if you want this to be more of a long-term thing, see docs here. |
Thanks @smaye81 -- using the IP address instead got it working! For some reason I didn't mentally register that I obviously can't access my laptop via localhost from my Android device 😮💨 😄 |
Great! Going to close this issue, but if you encounter any other problems, feel free to open a new issue. |
I've installed and ran the example project and installed Expo-Go. The following is logged to the terminal in my code editor after entering text in the mobile UI:
ConnectError: [internal] FileReader.readAsArrayBuffer is not implemented
I appear to have followed the README step by step, so I'm not too sure how to resolve this.
The text was updated successfully, but these errors were encountered: