Bug 49191 - "googleapps/state": HttpAccessTokenRefreshError: unauthorized_client: Client is unauthorized to retrieve access tokens using this method, or client not authorized for any of the scopes requested
"googleapps/state": HttpAccessTokenRefreshError: unauthorized_client: Client ...
Status: RESOLVED DUPLICATE of bug 46926
Product: UCS
Classification: Unclassified
Component: Google Apps for Work
UCS 4.4
Other Linux
: P5 normal (vote)
: ---
Assigned To: Mail maintainers
Mail maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2019-03-28 17:10 CET by Nico Gulden
Modified: 2019-03-28 17:17 CET (History)
1 user (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 5: Major Usability: Impairs usability in key scenarios
Who will be affected by this bug?: 1: Will affect a very few installed domains
How will those affected feel about the bug?: 3: A User would likely not purchase the product
User Pain: 0.086
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2019032321000332
Bug group (optional): External feedback
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nico Gulden univentionstaff 2019-03-28 17:10:16 CET
Please take a second to provide the following information:

1) steps to reproduce the failure
2) expected result
3) actual result

----------
UCS Version: 4.4-0 errata11 (Blumenthal)

Internal server error during "googleapps/state".
HttpAccessTokenRefreshError: unauthorized_client: Client is unauthorized to retrieve access tokens using this method, or client not authorized for any of the scopes requested.
    raise HttpAccessTokenRefreshError(error_msg, status=resp.status)
  File "/usr/lib/python2.7/dist-packages/oauth2client/client.py", line 834, in _do_refresh_request
    self._do_refresh_request(http_request)
  File "/usr/lib/python2.7/dist-packages/oauth2client/client.py", line 777, in _refresh
    credentials._refresh(orig_request_method)
  File "/usr/lib/python2.7/dist-packages/oauth2client/transport.py", line 153, in new_request
    resp, content = http.request(uri, method, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/googleapiclient/http.py", line 160, in _retry_request
    method=str(self.method), body=self.body, headers=self.headers)
  File "/usr/lib/python2.7/dist-packages/googleapiclient/http.py", line 833, in execute
    return wrapped(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/oauth2client/util.py", line 137, in positional_wrapper
    results = getattr(self.service, object_type)().list(**kwargs).execute()
  File "/usr/lib/pymodules/python2.7/univention/googleapps/handler.py", line 451, in _list_objects
    return self._list_objects("users", customer, domain, **kwargs)
  File "/usr/lib/pymodules/python2.7/univention/googleapps/handler.py", line 143, in list_users
    ol.gh.list_users(projection="basic")
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/googleapps/__init__.py", line 129, in state
    yield function(self, *args)
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/decorators.py", line 286, in _fake_func
    return list(function(self, iterator, *nones))
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/decorators.py", line 440, in _response
    return function(self, request)
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/decorators.py", line 192, in _response
    result = _multi_response(self, request)
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/decorators.py", line 318, in _response
    function.__func__(self, request, *args, **kwargs)
  File "/usr/lib/pymodules/python2.7/univention/management/console/base.py", line 253, in execute
Traceback (most recent call last):

Request: googleapps/state
Internal server error during "googleapps/state".
Comment 1 Erik Damrose univentionstaff 2019-03-28 17:17:53 CET

*** This bug has been marked as a duplicate of bug 46926 ***