You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To Reproduce
This is hard to reproduce and we stumbled across it by chance.
Essentially you have a 1:1000 chance that you will create an API token at exactly 000ms.
Steps to reproduce the behavior:
Create a token at exactly 000ms
try to use tokens.list()
see error
Expected behavior
Properly parse whatever is returned by the API
Screenshots
None
Desktop (please complete the following information):
Not relevant - this is a general bug in how the client parses the response
Smartphone (please complete the following information):
Not relevant - this is a general bug in how the client parses the response
Additional context
None
The text was updated successfully, but these errors were encountered:
Thanks - yeah I agree this would ideally be addressed in the API itself as it would affect every potential client not just our Python client. I'll see if I can raise this with them before we decide to include changes to handle this here.
Describe the bug
Dynatrace API does not return milliseconds if they are 000, e.g.,
2025-01-18T21:35:03.000Z
gets returned as2025-01-18T21:35:03Z
That leads to the following error in the client API:
This might be an issue in the API itself, but for now we can mitigate it by accepting both ISO pattern (with and without ms).
We currently fix this behavior by monkey patching the iso parsing function app-sre/qontract-reconcile#4815
Proposing a fix here: #110
To Reproduce
This is hard to reproduce and we stumbled across it by chance.
Essentially you have a 1:1000 chance that you will create an API token at exactly 000ms.
Steps to reproduce the behavior:
tokens.list()
Expected behavior
Properly parse whatever is returned by the API
Screenshots
None
Desktop (please complete the following information):
Not relevant - this is a general bug in how the client parses the response
Smartphone (please complete the following information):
Not relevant - this is a general bug in how the client parses the response
Additional context
None
The text was updated successfully, but these errors were encountered: