403 permission denied errors in some libraries with always_use_jwt_access = True #929
Description
@parthea noticed some library system and sample tests failing in PRs adding always_use_jwt_access (see #920)
There are three slightly different error messages:
-
google.api_core.exceptions.PermissionDenied: 403 Provided scope(s) are not authorized-
feat: add always_use_jwt_access python-asset#211 - Strangely, only one sample fails. The other 11 sample tests passed.
-
-
google.api_core.exceptions.PermissionDenied: 403 The caller does not have permission
-
google.api_core.exceptions.PermissionDenied: 403 User does not have sufficient permissions for this property. To learn more about Property ID, see https://developers.google.com/analytics/devguides/reporting/data/v1/property-id.
Sample tests in many other repositories did pass, and I do not see an obvious difference between these APIs and the ones above.
Activity
parthea commentedon Jun 25, 2021
Raising priority to P1 as we're blocking releases due to this bug.
arithmetic1728 commentedon Jun 25, 2021
working on it now
parthea commentedon Jun 25, 2021
Thanks so much!
arithmetic1728 commentedon Jun 26, 2021
Created a PR to fix this: #935