# Error when sending interaction on js SDK

**URL:** <https://forum.flow.com/t/error-when-sending-interaction-on-js-sdk/2219>\
**Category:** Flow JavaScript SDK\
**Tags:** flow-sdk-js\
**Created:** [July 21, 2021, 9:08am UTC](https://forum.flow.com/t/error-when-sending-interaction-on-js-sdk/2219 "2021-07-21T09:08:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ula](https://avatars.discourse-cdn.com/v4/letter/u/7cd45c/32.png) [@Ula](https://forum.flow.com/u/Ula)\
**Post date:** [July 21, 2021, 9:08am UTC](https://forum.flow.com/t/error-when-sending-interaction-on-js-sdk/2219/1 "2021-07-21T09:08:57Z")

</div>

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?
