You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some errors are not caught by the errorHandlers of the onStatusChange setter.
For instance, upon calling tonConnectUI.openModal(), after selecting the OKX Wallet, the error [TON_CONNECT_SDK_ERROR] TonConnectError Aborted after attempts 1 is uncaught by the tonConnectUi component and is then caught by React which displays an error overlay.
Expected behavior
I expected to be able to catch every error, including the abort error inside the errorHandlers callback of the onStatusChange setter.
Current behavior
Instead the error cannot be caught.
Steps to Reproduce
Install the OKX Wallet browser extension.
Use the following code to trigger the wallet connection:
bchevalier
changed the title
[UI]: Errors impossible to catch and blocking user progression
[UI]: Errors impossible to catch and blocking user progression in React (dev only)
Dec 7, 2024
bchevalier
changed the title
[UI]: Errors impossible to catch and blocking user progression in React (dev only)
[UI]: Errors impossible to catch and slows user progression in React (dev only)
Dec 7, 2024
Describe the bug
Some errors are not caught by the
errorHandlers
of theonStatusChange
setter.For instance, upon calling
tonConnectUI.openModal()
, after selecting the OKX Wallet, the error[TON_CONNECT_SDK_ERROR] TonConnectError Aborted after attempts 1
is uncaught by thetonConnectUi
component and is then caught by React which displays an error overlay.Expected behavior
I expected to be able to catch every error, including the
abort
error inside theerrorHandlers
callback of theonStatusChange
setter.Current behavior
Instead the error cannot be caught.
Steps to Reproduce
Environment
npm ls @tonconnect/{ui-react,ui,sdk,protocol,isomorphic-fetch,isomorphic-eventsource}
:├─┬ @tonconnect/[email protected]
│ ├── @tonconnect/[email protected]
│ ├── @tonconnect/[email protected]
│ └── @tonconnect/[email protected]
├─┬ @tonconnect/[email protected]
│ └── @tonconnect/[email protected] deduped
└─┬ @tonconnect/[email protected]
└── @tonconnect/[email protected] deduped
OS:
MacOS
v13.5
Browser:
Chrome
v131.0.6778.109
Additional context
No response
The text was updated successfully, but these errors were encountered: