# Early Return From Server-Streaming RPC in Bruno ## Metadata **Status**:: #x **Zettel**:: #zettel/fleeting **Created**:: [[2024-06-19]] ## Synopsis Call the RPC in the `pre-request` script. ```javascript const axios = require('axios');| const url = bru.getEnvVar("LND_BOB_RPC_URL") + "/v2/router/send"; const body = { payment_request: bru.getVar("BTC_PAY_REQ"), timeout_seconds: 1 }; console.log(url); console.log(body); const resp = await axios({ method: 'POST', url: url, data: body, responseType: 'stream' }); // Remember to close the stream otherwise Bruno Cli may fail to exit after // running the collection. resp.data.destroy(); ``` Leave the real request dummy or repeat the request and assert that the operation has already performed.