Hey everyone,
I’m using Flow JS SDK on the backend. When running this script:
const response = await sdk.send(await sdk.build([
await sdk.getAccount(testNodeAddress)
]), { node: testNetNode })
it shows an error no matter what I do:
Error: Response closed without headers
Even when I switch the arguments to Flow Emulator Address and Node.
But when I use the Mainnet Node (I don’t have a Mainnet account btw.) it returns this:
Error: address XXXXXXXXXXX is invalid for chain flow-mainnet
Is it possible that the Local and Testnet nodes are not accepting the grpc connections from JS-SDK and/or FCL?