Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No support for v2 write api #37

Closed
fcddk opened this issue Mar 12, 2021 · 3 comments
Closed

No support for v2 write api #37

fcddk opened this issue Mar 12, 2021 · 3 comments

Comments

@fcddk
Copy link

fcddk commented Mar 12, 2021

using package 'github.com/influxdata/influxdb-client-go/v2' write data to srelay.

client log: influxdb2client E! Write error: Unexpected status code 400

srelay log: 2021-03-12 03:14:48 INF bk_duration_ms=2.608922 duration_ms=11.53337 latency_ms=8.928223 method=POST referer= returnsize=33 source=100.101.78.0:64221 status=400 trace-route="http:http-influxdbcluster> rt:pass_all> decode:ILP> rule:pass_all> " url=/api/v2/write?bucket=fcs%2Fautogen&org=&precision=ns user=- user-agent="influxdb-client-go/2.2.2 (windows; amd64)" write-points=100 write-size=45588

conf:
` # ILP /api/v2/write Endpoint
[[http.endpoint]]
uri=["/api/v2/write"]
source_format="ILP"
type = "WR"

    [[http.endpoint.route]]
      name="pass_all"
      log-inherit = true
      level="data"  # any of the following rules will need data inspection

      [[http.endpoint.route.filter]]
        name="pass_all"
        key="db"
        match=".*"

      [[http.endpoint.route.rule]]
        name="pass_all"
        action="route"
        key="db"
        match=".*"
        to_cluster="influxcluster"`
@fcddk
Copy link
Author

fcddk commented Mar 12, 2021

srelay version : 0.6.1
influxdb version: 1.8.3

@toni-moreno
Copy link
Owner

Hello @fcddk could you please switch from key=db to key=bucket ?

@toni-moreno
Copy link
Owner

Hello @fcddk I will close this issue. Reopen it if needed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants