title: google.oauth2 'No access token in response' error while trying to open spreadsheet
body: <p>I'm trying to open google spreadsheet via gspread, but my code fails with error:</p>
  <pre><code>Traceback (most recent call last):
    File &quot;/home/memcpy/.local/lib/python3.6/site-packages/google/oauth2/_client.py&quot;, line 156, in jwt_grant
      access_token = response_data[&quot;access_token&quot;]
  KeyError: 'access_token'
  
  The above exception was the direct cause of the following exception:
  
  Traceback (most recent call last):
    File &quot;email_sender.py&quot;, line 20, in &lt;module&gt;
      fetch_users()
    File &quot;email_sender.py&quot;, line 16, in fetch_users
      sheet = client.open('some')
  
    some more tracebacks....
  
    File &quot;/home/memcpy/.local/lib/python3.6/site-packages/google/auth/transport/requests.py&quot;, line 444, in request
      self.credentials.before_request(auth_request, method, url, request_headers)
    File &quot;/home/memcpy/.local/lib/python3.6/site-packages/google/auth/credentials.py&quot;, line 133, in before_request
      self.refresh(request)
    File &quot;/home/memcpy/.local/lib/python3.6/site-packages/google/oauth2/service_account.py&quot;, line 359, in refresh
      access_token, expiry, _ = _client.jwt_grant(request, self._token_uri, assertion)
    File &quot;/home/memcpy/.local/lib/python3.6/site-packages/google/oauth2/_client.py&quot;, line 159, in jwt_grant
      six.raise_from(new_exc, caught_exc)
    File &quot;&lt;string&gt;&quot;, line 3, in raise_from
  google.auth.exceptions.RefreshError: ('No access token in response.', {'id_token': 'there was some token so I hided it'})
  </code></pre>
  <p>I tried to google the error, but did not found anything about it. This is my code:</p>
  <pre><code>import gspread
  from google.oauth2.service_account import Credentials
  
  scope = [
      'https://googleapis.com/auth/drive',
      'https://googleapis.com/auth/spreadsheets'
  ]
  
  creds = Credentials.from_service_account_file('creds.json', scopes=scope)
  client = gspread.authorize(creds)
  sheet = client.open('some')
  </code></pre>