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
Following the documentation and the examples available we tried to setup a nodejs service aiming to write and read data from an InfluxDB bucket.
The client initialization and point creation was a-ok but as soon as we run the client.query() function we always end up with the following generator state in the response payload: {[[GeneratorState]]: 'suspended'}.
We tried to run several tests in order to sort this issue out but the other results we got were all Uncaught RpcError RpcError: Received HTTP status code 405.
In the end, we rollback to V2 node client and we were able to read/write data without errors.
Thanks in advance for your help.
Code sample to reproduce problem
In our code we instantiate a client as follows:
// client init - okclient=newInfluxDBClient({host: 'my-azure-endpoint',token: 'my-token'})//point creation - okconstp=Point.measurement(measurement).setTag('unit','temperature').setFloatField('avg',24.5).setFloatField('max',45.0).setTimestamp(newDate())awaitclient.write(p,database)// bucket query - errorconstquery=` SELECT * FROM "${measurement}" WHERE time >= now() - interval '20 minute' AND "unit" IN ('temperature')`;constqueryResult=client.query(query,database,{type: 'sql'})forawait(constrowofqueryResult){console.log(`avg is ${row.avg}`)console.log(`max is ${row.max}`)}
Expected behavior
When running the client.query() function we expect the queryResult variable to be and array of Points to be iterated.
Actual behavior
We received a response payload object with this attribute: {[[GeneratorState]]: 'suspended'}
Additional info
No response
The text was updated successfully, but these errors were encountered:
Specifications
Following the documentation and the examples available we tried to setup a nodejs service aiming to write and read data from an InfluxDB bucket.
The client initialization and point creation was a-ok but as soon as we run the
client.query()
function we always end up with the following generator state in the response payload:{[[GeneratorState]]: 'suspended'}
.We tried to run several tests in order to sort this issue out but the other results we got were all
Uncaught RpcError RpcError: Received HTTP status code 405
.In the end, we rollback to V2 node client and we were able to read/write data without errors.
Thanks in advance for your help.
Code sample to reproduce problem
In our code we instantiate a client as follows:
Expected behavior
When running the
client.query()
function we expect the queryResult variable to be and array of Points to be iterated.Actual behavior
We received a response payload object with this attribute:
{[[GeneratorState]]: 'suspended'}
Additional info
No response
The text was updated successfully, but these errors were encountered: