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
When the datadog agent goes to run the airflow check, I see the following error:
Traceback (most recent call last):
File "/opt/datadog-agent/embedded/lib/python3.12/site-packages/datadog_checks/base/checks/base.py", line 1298, in run
self.check(instance)
File "/opt/datadog-agent/embedded/lib/python3.12/site-packages/datadog_checks/airflow/airflow.py", line 48, in check
resp = self._get_json(target_url)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/datadog-agent/embedded/lib/python3.12/site-packages/datadog_checks/airflow/airflow.py", line 137, in _get_json
resp = self.http.get(url)
^^^^^^^^^^^^^^^^^^
File "/opt/datadog-agent/embedded/lib/python3.12/site-packages/datadog_checks/base/utils/http.py", line 352, in get
return self._request('get', url, options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/datadog-agent/embedded/lib/python3.12/site-packages/datadog_checks/base/utils/http.py", line 397, in _request
self.handle_auth_token(method=method, url=url, default_options=self.options)
File "/opt/datadog-agent/embedded/lib/python3.12/site-packages/datadog_checks/base/utils/http.py", line 545, in handle_auth_token
self.auth_token_handler.poll(**request)
File "/opt/datadog-agent/embedded/lib/python3.12/site-packages/datadog_checks/base/utils/http.py", line 753, in poll
token = self.reader.read(**request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/datadog-agent/embedded/lib/python3.12/site-packages/datadog_checks/base/utils/http.py", line 841, in read
if self._token is None or get_timestamp() >= self._expiration or 'error' in request:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: '>=' not supported between instances of 'float' and 'NoneType
I suspect that the code here is causing the issue:
I am attempting to use the OAuth Reader as part of the airflow datadog integration by following the documentation outlined here.
https://github.com/DataDog/integrations-core/blob/e1dda566ad5aa2c921a396077cb8f0f8c42bba75/airflow/datadog_checks/airflow/data/conf.yaml.example
I am deploying the datadog agent via helm and using the following airflow configuration settings.
When the datadog agent goes to run the airflow check, I see the following error:
I suspect that the code here is causing the issue:
integrations-core/datadog_checks_base/datadog_checks/base/utils/http.py
Lines 836 to 842 in 74defa8
Is this a bug in the code or am I just not passing in the airflow configuration values correctly?
Thank you
The text was updated successfully, but these errors were encountered: