-
Notifications
You must be signed in to change notification settings - Fork 5k
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
WebsocketProvider on React-Native url == null #2602
Comments
Thanks for opening this issue! There is already a PR regarding this issue (#2593). I will check it closer and release the fix asap. |
Thank you nivida! I wish to add that the same codes work in node.js but on React-Native, it gives me
|
this is caused by a bug in websocket module of react native |
well i have this problem using websocket provider instead of http provider const provider = new Web3(
new Web3.providers.WebsocketProvider(
`wss://${NETWORK}.infura.io/v3/${INFURA_API_KEY}`
)
); [Sun Dec 20 2020 19:51:49.756] ERROR Error: not implemented
[Sun Dec 20 2020 19:51:49.758] ERROR Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication)
[Sun Dec 20 2020 19:51:50.812] ERROR Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication) Environment info:
|
@ravi0the0sun did you use the patch? |
do you known how to do that @sirpy as the PR hasnt been pushed yet. |
use the npm package `patch-package`
apply the fixes from the PR and follow the patch-package instructions
|
hi @sirpy i applied the patch to my node_moduels but the error still there and im not sure where this error is being thrown from. |
it seems like RN implementation of URL is very minimal |
Summary: Conform with Websocket javascript api. related to web3js issues: web3/web3.js#2864 web3/web3.js#2602 Reviewed By: javache Differential Revision: D25927475 Pulled By: TheSavior fbshipit-source-id: 26b2df0565dac581d546b6824dd4f0fc2c8cdc32
I am on 1.0.0-beta.50 and React-Native 0.57 via expo SDK 32.0
I am trying to connect to a private ethereum node with the following codes:
I am unable to connect to my node. The following error is shown.
url == null
The text was updated successfully, but these errors were encountered: