Open
Description
In api/devices.py#162
the statement...
request = authorization_api.create_authorization(authorization)
should be
request = authorization_api.create_authorization(authorization=authorization)
This is related to.
- chore: add type checks for Authorization with new example. influxdb-client-python#682
- Cannot create authorization token via python client influxdb-client-python#680
- docs: update argument in python tutorial authorizations code. docs-v2#5701
Note that on clicking the Auth link in the flask UI, the tutorial application is now returning...
ApiException
influxdb_client.rest.ApiException: (400)
Reason: Bad Request
HTTP response headers: HTTPHeaderDict({'Content-Type': 'application/json; charset=utf-8', 'X-Influxdb-Build': 'OSS', 'X-Influxdb-Version': 'v2.7.11', 'X-Platform-Error-Code': 'invalid', 'Date': 'Wed, 04 Dec 2024 13:04:14 GMT', 'Content-Length': '163'})
HTTP response body: {
"code": "invalid",
"message": "invalid json structure: json: cannot unmarshal object into Go struct field postAuthorizationRequest.orgID of type platform.ID"
}
The example here is causing confusion for some users.
I tried to push a branch with this change to create a PR, however I do not have write permissions to this repository.
Metadata
Metadata
Assignees
Labels
No labels