Skip to content
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

The operation couldn’t be completed #5973

Closed
3 tasks done
mehakdeep1898 opened this issue Sep 6, 2024 · 3 comments
Closed
3 tasks done

The operation couldn’t be completed #5973

mehakdeep1898 opened this issue Sep 6, 2024 · 3 comments

Comments

@mehakdeep1898
Copy link

  • Bug report
  • Support request
  • What is the current behavior and expected behavior?
    I'm requesting with the wss://westend-rpc.polkadot.io node endpoint for the websocket; however, I'm not able to establish a connection with the endpoint.

Current Behavior:
I'm trying to retrieve the api through inputting the wss://westend-rpc.polkadot.io endpoint into the websocket. However, it returns this message: API-WS: disconnected from wss://westend-rpc.polkadot.io: 1006:: The operation couldn’t be completed. (OSStatus error -9836.)

while running on android it is connected but giving issue in ios.

Expected Behavior:
Establish a connection with the wss://westend-rpc.polkadot.io node endpoint.

  • ** What is the motivation for changing the behavior?**
    Currently, I'm trying to establish a connection, and retrieve data. However, I cannot go to the next step, due to this issue.

Screenshot 2024-09-06 at 3 28 13 PM

Screenshot 2024-09-06 at 3 29 14 PM

  • Please tell us about your environment:

    "@polkadot/api": "^12.4.2",
    "react": "18.3.1",
    "react-native": "0.75.2",

    • Version:

    • Environment:

      React-native

    • Language:

      • TypeScript (include tsc --version)
@TarikGul
Copy link
Member

TarikGul commented Sep 6, 2024

under const api = ...

could you try await api.isReady.

@TarikGul
Copy link
Member

React native has always posed issues with the PJS libraries, and is not tested on with it's maintainers and/or is a target framework.

Closing for now since there is no response.

@polkadot-js-bot
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue if you think you have a related problem or query.

@polkadot-js polkadot-js locked as resolved and limited conversation to collaborators Nov 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants