kaxil commented on code in PR #24682:
URL: https://github.com/apache/airflow/pull/24682#discussion_r909675257
##########
airflow/providers/google/common/hooks/base_google.py:
##########
@@ -270,7 +271,12 @@ def _get_credentials(self) ->
google.auth.credentials.Credentials:
def _get_access_token(self) -> str:
"""Returns a valid access token from Google API Credentials"""
- return self._get_credentials().token
+ credentials = self._get_credentials()
+ auth_req = google.auth.transport.requests.Request()
+ # credentials.token is None
+ # Need to refresh credentials to populate the token
Review Comment:
How was it working before the change if it was returning `None`?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]