Skip to content

/query/analyze throws internal error if type is not supplied #15572

Open
@russorat

Description

@russorat

if you don't send type along with this request, it gives an internal error. It should return a helpful message about the missing parameter.

Also, if no type is specified, we should assume flux.

curl -XPOST http://localhost:9999/api/v2/query/analyze?orgID=$ORG_ID -H 'Authorization: Token  $INFLUX_TOKEN"' -d '{
    "query": "from(bucket: \"telegraf\") |> range(start: -15s) |> filter(fn: (r) => r._measurement == \"cpu\"))",
    "type": "flux"
}'

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions