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

Unable to extract transaction meta handled by listener. #841

Closed
xembook opened this issue Jun 17, 2022 · 0 comments · Fixed by #843
Closed

Unable to extract transaction meta handled by listener. #841

xembook opened this issue Jun 17, 2022 · 0 comments · Fixed by #843
Assignees

Comments

@xembook
Copy link

xembook commented Jun 17, 2022

  1. Expected behavior and actual behavior.

The listener receives a message when it detects the confirm of a transaction, but it seems to be failing to extract the timestamp and fee information at that time.

  1. Steps to reproduce the problem.

like this↓

address = sym.Address.createFromRawAddress("TBIL6D6RURP45YQRWV6Q7YVWIIPLQGLZQFHWFEQ");
listener.open().then(() => {
    listener.confirmed(address )
    .subscribe(tx=>{
        console.log(tx);
    });
});

error message

/src/node_modules/long/src/long.js:221
    if (str.length === 0)
            ^

TypeError: Cannot read property 'length' of undefined
    at Function.fromString (/src/node_modules/long/src/long.js:221:13)
    at Function.isLongNumericString (/src/node_modules/symbol-sdk/dist/src/model/UInt64.js:74:33)
    at Function.fromNumericString (/src/node_modules/symbol-sdk/dist/src/model/UInt64.js:62:21)
    at extractTransactionMeta (/src/node_modules/symbol-sdk/dist/src/infrastructure/transaction/CreateTransactionFromDTO.js:95:124)
    at CreateTransactionFromDTO (/src/node_modules/symbol-sdk/dist/src/infrastructure/transaction/CreateTransactionFromDTO.js:202:79)
    at Listener.handleMessage (/src/node_modules/symbol-sdk/dist/src/infrastructure/Listener.js:153:86)
    at WebSocket.webSocket.onmessage (/src/node_modules/symbol-sdk/dist/src/infrastructure/Listener.js:121:26)
    at WebSocket.onMessage (/src/node_modules/ws/lib/event-target.js:132:16)
    at WebSocket.emit (node:events:369:20)
    at Receiver.receiverOnMessage (/src/node_modules/ws/lib/websocket.js:1059:20)

  1. Specifications like the version of the project, operating system, or hardware.

symbol-sdk-typescript-javascript v.2.0.1
It has been reported by several people in a variety of settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants