You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There should be a way to abort a running query, either by passing an integer in milliseconds as timeout or an AbortController (like it can be done with fetch) into the query function.
If the server isn't available or the network is bad, the query just takes forever.
Steps/Code to Reproduce the Problem
use a wrong server address
then start a query
const Influx = require('influx')
const influx = new Influx.InfluxDB(/* connection data with wrong address */)
const result = await influx.query(/* query */)
console.log('this line will never be executed')
Specifications
Version: 5.6.0
Platform: ?
Subsystem: ?
The text was updated successfully, but these errors were encountered:
Expected Behavior
There should be a way to abort a running query, either by passing an integer in milliseconds as timeout or an AbortController (like it can be done with
fetch
) into thequery
function.Example with
fetch
:Actual Behavior
If the server isn't available or the network is bad, the query just takes forever.
Steps/Code to Reproduce the Problem
Specifications
The text was updated successfully, but these errors were encountered: