0

I am running polkadot-sdk on wsl I start the node: ./target/release/polkadot --dev and then when I try connecting it to polkadotjs app on browser in windows it doesn't connect

It just says - "Initializing connection"

I tried running a local version of Polkadotjs app & it is giving following error ERROR [object Event] at handleError (webpack://@polkadot/apps/../../node_modules/webpack-dev-server/client/index.js?:694:58) at eval (webpack://@polkadot/apps/../../node_modules/webpack-dev-server/client/index.js?:717:7)

then I tried connecting by using wscat cmd on Windows & it works wscat -c ws://127.0.0.1:9944/ Connected (press CTRL+C to quit)

{"jsonrpc":"2.0","id":4,"method":"state_getRuntimeVersion","params":[]} < {"jsonrpc":"2.0","result":{"specName":"rococo","implName":"parity-rococo-v2.0","authoringVersion":0,"specVersion":1008000,"implVersion":0,"apis":[["0xdf6acb689907609b",5],["0x37e397fc7c91f5e4",2],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",10],["0x49eaaf1b548a0cb0",3],["0x91d5df18b0d2cf58",2],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",4],["0x2a5e924655399e60",1],["0xfbc577b9d747efd6",1]],"transactionVersion":24,"stateVersion":1},"id":4} {"jsonrpc":"2.0","id":3,"method":"chain_getBlock","params":["0x1e4f988f93d07617204c8c988c7b7a232d62ba84dbb8425e4d1cafcd2c833ce7"]} < {"jsonrpc":"2.0","result":{"block":{"header":{"parentHash":"0xd1c55a2800c11e4b2a5a9086f158f0f8bcaa918d9c6a1c26c4851437316788cc","number":"0x2","stateRoot":"0x7adcf6500b76b864adb519a3c4d6ff141500fdafe8adb5cbd3bd8f57ef0412b5","extrinsicsRoot":"0xa9a3bbd44d277e27c0558debcd78040be803cb1685dd7892983462b95f2187ca","digest":{"logs":["0x0642414245b501010000000057170311000000007eb347dfb99f60c6ec264d4b0e7476732d83ccb85b2e2f6335000306b0d0e27ae61fb5a9842267bd28fddf763149bc6e310c9acf638df820e3bab2d425a9e10397d318af736f2cc2b35c8a5ef94ec988f8bded85901ce69961919106df17da07","0x044245454684032fb851b8ecc3f59a7863755e2af90a562d36a8e4b04093f50e9f5dfb7c93d45f","0x0542414245010190863e3a358c54fd463810787feede125e2a719ae933fa4f465145983e75c17439947962bbc9997094e4dea0761e3560bab7c768ce7320ee036d8e84fbbfdb89"]}},"extrinsics":["0x280402000b110773b88e01","0x81070436000400000000009627839051eddc26a9fbee254ef99920eb6a4b75ef85e426b08b7248a879ff0d68ae5a3cc982a3386315109848473873c4973e17fefc7f3852388f1a70985f860000cfaae713aec0d43d37c90cf5ed20681b8192a988177e82132a13993aef05cd4104bed1900ca40cf927fdfafc5ba6e08ef272d4e95bc4bf8ea337bcd56eb9e5ca8a0b5317ffcca731c53d99f1ea11f2978620efdbfdf0a5ef5c9fe93961951d56c5100642414245b501030000000056170311000000004e4292ec6614a8be61d2025114a0738dc4e3fbaa8d3e79b9afdb52871fbbe75db922d41efc20b39d1358cd378a456493a073c745c2e3845b8d60d8ad8464e502f934ba2b61883e474d8435db98b3c778d4850c84acd74a2955502bda00d27806044241424529010104d43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d01000000000000000000000000000000000000000000000000000000000000000000000000000000044245454684032aec23d219>

I am able to connect to polkadot node on wsl via windows using wscat but not via polkadotjs app

I have been stuck on this issue for a long time & haven't gotten any support from the Polkadot ecosystem

I can run on VM but I have resource constrained machine so running a VM at the same time working on Windows is not feasible

2 Answers 2

0

did you try using https://polkadot.js.org/apps/#/explorer? you can connect your local node at enter image description here

alternatively you can use https://github.com/substrate-developer-hub/substrate-front-end-template

0

Polkadot.js needs a secure connection, so without a ssl enabled proxy before the rpc port it will not connect. See also this question for pointers.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.