Hi,
I just learned that the query_api.query_raw () does not return a str as written in the documentation bus instead an urllib3.response.HTTPResponse object, from which the resulting str can be fetched.
I would appreciate either updating the documentation or the function to actually returning a str
Activity
jules-ch commentedon Aug 22, 2023
I've encountered this only on the sync client, the async client returns str as per the docs.
powersj commentedon Aug 22, 2023
@ivankudibal - is this just a doc update for the sync client?
jules-ch commentedon Aug 22, 2023
Per the doc both sync and async should return a str representation of the CSV from the response
jules-ch commentedon Aug 22, 2023
Execute synchronous Flux query and return result as raw unprocessed result as a str.
jules-ch commentedon Aug 22, 2023
the sync QueryAPI:
The Async one:
In the sync one, the response should also be read and decoded as UTF8 just like the async version.
I can submit a PR if needed.
powersj commentedon Aug 22, 2023
Please do :)
strinstead ofurllib3.HTTPResponsefor `InfluxDBClie… #606