I’m new to flow, trying to get familiar.
Receiving error message to the following code:
await sdk.send(await sdk.build([ sdk.getAccount("0xba1132bc08f82fe2") ]))
The error is:
(node:5548) UnhandledPromiseRejectionWarning: Error
at Object.onEnd (/home/ula/Documents/flow/node_modules/@onflow/sdk/dist/sdk.js:1:8818)
at /home/ula/Documents/flow/node_modules/@improbable-eng/grpc-web/dist/grpc-web-client.js:1:24140
at /home/ula/Documents/flow/node_modules/@improbable-eng/grpc-web/dist/grpc-web-client.js:1:11457
at Array.forEach ()
at e.rawOnError (/home/ula/Documents/flow/node_modules/@improbable-eng/grpc-web/dist/grpc-web-client.js:1:11419)
at e.onTransportHeaders (/home/ula/Documents/flow/node_modules/@improbable-eng/grpc-web/dist/grpc-web-client.js:1:8996)
at NodeHttp.responseCallback (/home/ula/Documents/flow/node_modules/@improbable-eng/grpc-web-node-http-transport/lib/index.js:31:22)
at Object.onceWrapper (events.js:482:26)
at ClientRequest.emit (events.js:375:28)
at HTTPParser.parserOnIncomingClient (_http_client.js:647:27)
Can anyone give me a clue what am I doing wrong?