js-api fails to connect in example app
ashishbeck opened this issue · 0 comments
ashishbeck commented
When I press the connect button in the example app, it keeps staying in the loading state forever and the following comes up in the logs:
I/flutter ( 2705): CONSOLE MESSAGE: 2021-08-01 10:32:05 REGISTRY: Unknown signed extensions SetEvmOrigin found, treating them as no-effect
I/flutter ( 2705): CONSOLE MESSAGE: 2021-08-01 10:32:05 REGISTRY: Unable to resolve type CurrencyId, it will fail on construction
I/flutter ( 2705): CONSOLE MESSAGE: 2021-08-01 10:32:05 API/INIT: Error: FATAL: Unable to initialize the API: createType(CurrencyId):: Cannot construct unknown type CurrencyId
Shortly after this it also throws the following error
I/flutter ( 2705): CONSOLE MESSAGE: 2021-08-01 10:32:58 API-WS: disconnected from wss://kusama-1.polkawallet.io:9944/: 1006:: Abnormal Closure
It never establishes a connection from this point on. I tried with 0.2.7 and 0.2.5
EDIT:
Turns out the address of the endpoint is wrong. Replacing it with any other address works fine (ex- wss://kusama.elara.patract.io)