influxdata / influxdb-client-js

InfluxDB 2.0 JavaScript client
https://influxdata.github.io/influxdb-client-js/
MIT License
327 stars 70 forks source link

deleteAPI.postDelete - 501: not implemented' #278

Closed mprevide closed 4 years ago

mprevide commented 4 years ago

Expected Behavior:

Delete the measurement

Current Behavior:

'501: not implemented'

Possible Solution:

Steps/Code to Reproduce the Problem:

// ...
      await this.deleteAPI.postDelete({
        org,
        bucket,
        body: {
          predicate: `_measurement="${measurement}"`,
          start: '1970-01-01T00:00:00Z',
          stop: new Date().toISOString(),
        },
      });

Specifications:

sranka commented 4 years ago

Thank you for posting an issue, this error probably depends on the InfluxDB server version. The client APIs were generated from swagger.yaml on September 15th, the swagger definition file and the InfluxDB server changed since then, the v2 server is still a release candidate. The error indeed signalizes that the latest InfluxDB indeed does not implement the /delete operation, it is not a client error ... it is work to do until InfluxDB reaches the final release.