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

Cannot connect to Tusc network #248

Closed
grctest opened this issue Jun 6, 2023 · 2 comments
Closed

Cannot connect to Tusc network #248

grctest opened this issue Jun 6, 2023 · 2 comments

Comments

@grctest
Copy link
Contributor

grctest commented Jun 6, 2023

Describe the bug

Connecting to a Tusc node fails & subsequently the balances don't load on the main page.

I get the following error:

C:\Users\username\AppData\Local\Programs\Beet Blockchain Companion\resources\app.asar\node_modules\bitsharesjs-ws\lib\ApiInstances.js:2 wss://api.cryptotusc.com Failed to initialize with error Cannot read properties of null (reading 'call')
(anonymous) @ C:\Users\username\AppData\Local\Programs\Beet Blockchain Companion\resources\app.asar\node_modules\bitsharesjs-ws\lib\ApiInstances.js:2 BlockchainAPI.js:97 
The Universal Settlement Coin Failed to connect to wss://api.cryptotusc.com TypeError: Cannot read properties of null (reading 'call') at GrapheneApi.init (C:\Users\username\AppData\Local\Programs\Beet Blockchain Companion\resources\app.asar\node_modules\bitsharesjs-ws\lib\GrapheneApi.js:1:349) at C:\Users\username\AppData\Local\Programs\Beet Blockchain Companion\resources\app.asar\node_modules\bitsharesjs-ws\lib\ApiInstances.js:2:2653 BlockchainAPI.js:66 
wss://api.cryptotusc.com BitShares.js:859 
ensureConnection: wss://api.cryptotusc.com
2BitShares.js:1030 TypeError: Cannot read properties of null (reading 'balances') at BitShares.js:1001:45
BlockchainAPI.js:97 The Universal Settlement Coin Failed to connect to null Timeout
BitShares.js:859 ensureConnection: null

I believe that we need to use the tuscjs and tuscjs-ws libraries to interact with tusc nodes, not simply extend the Bitshares blockchain factory class.

To Reproduce
Steps to reproduce the behavior:

Launch Beet, add a tusc account to your beet wallet, switch active account to the tusc account.

Expected behavior

A network connection to the TUSC nodes is established and Tusc balances are shown.

Desktop (please complete the following information):

  • OS: Windows
  • Version: main & develop branches

Additional context

Added more TUSC nodes, however this issue persists.

Edit: I was however able to successfully broadcast a raw-deeplink create_ticket operation, so perhaps we can just overwrite the inherited Bitshares class functions which are causing issue.

Edit: Also unable to upload a local airdrop (multiple transfers in one), because it queries the network for human readable prompt details (like usernames, asset symbols). It currently loops infinitely trying to connect.. hmm

@grctest
Copy link
Contributor Author

grctest commented Jul 5, 2023

Resolved in #247

sschiessl-bcp pushed a commit that referenced this issue Aug 29, 2023
Implement new upload JSON feature to address #246

Introduced a fix for TUSC: #248

Introduces optimized account/asset lookup for all BTS operations: #249

Fix balances rendering properly: #255

Localizes the contents of BTS blockchain based injected operation prompts: #252

Resolves #256
@grctest
Copy link
Contributor Author

grctest commented Aug 29, 2023

Fix merged into develop branch.

@grctest grctest closed this as completed Aug 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant