Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[UI]: Error [TON_CONNECT_SDK_ERROR] TonConnectError Aborted after attempts 1 triggers without waiting for user input #296

Open
bchevalier opened this issue Dec 6, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@bchevalier
Copy link

bchevalier commented Dec 6, 2024

Describe the bug

Upon calling tonConnectUI.openModal(), after selecting the OKX Wallet, the error [TON_CONNECT_SDK_ERROR] TonConnectError Aborted after attempts 1 triggers without waiting for any further input from the user.
Strangely, as a user, if I ignore the error, I can move forward with the wallet connection. In React the error makes the application testing less smooth as it overlays on top of the screen.

OKX Wallet interface:
Screenshot 2024-12-06 at 18 41 10

React error overlay that stops the user progression:
Screenshot 2024-12-06 at 18 41 45

Expected behavior

I expected that no abort error would show if I did not abort anything as a user.

Current behavior

Instead I observed that the abort error triggers before the user aborts anything.

Steps to Reproduce

  • Install the OKX Wallet browser extension.
  • Use the following code to trigger the wallet connection:
    const tonConnectUI = new TonConnectUI({
      manifestUrl,
    });

    tonConnectUI.onStatusChange(
      async (status: ConnectedWallet | null) => {
        // do something here
      },
      (error: TonConnectError) => {
        // handle error here
      },
    );

    await tonConnectUI.openModal();
  • Select the "Browser Extension" log-in method when prompted

Environment

npm ls @tonconnect/{ui-react,ui,sdk,protocol,isomorphic-fetch,isomorphic-eventsource}:
├─┬ @tonconnect/sdk@3.0.5
│ ├── @tonconnect/isomorphic-eventsource@0.0.2
│ ├── @tonconnect/isomorphic-fetch@0.0.3
│ └── @tonconnect/protocol@2.2.6
├─┬ @tonconnect/ui-react@2.0.9
│ └── @tonconnect/ui@2.0.9 deduped
└─┬ @tonconnect/ui@2.0.9
└── @tonconnect/sdk@3.0.5 deduped

OS: MacOS v13.5
Browser: Chrome v131.0.6778.109

Additional context

No response

@bchevalier bchevalier added the bug Something isn't working label Dec 6, 2024
@bchevalier bchevalier changed the title [UI]: Error [TON_CONNECT_SDK_ERROR] TonConnectError Aborted after attempts 1 without waiting for user input [UI]: Error [TON_CONNECT_SDK_ERROR] TonConnectError Aborted after attempts 1 triggers without waiting for user input Dec 7, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants