Skip to content

Getting Unauthoized Error in QueryAsync method. #92

@geervanibs

Description

@geervanibs

Hi,
We are having an influx db with version 2.7 (OSS). Trying to fetch data with QueryAsync method, but getting the error 'InfluxData API responded with status code=Unauthorized, response={"code":"unauthorized","message":"Unauthorized"}'

await client.Client.QueryAsync(query, bucketName);

The same query works for another influx db instance whose version is 1.8 on cloud. I need to support both of the version. How can we solve this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions