question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RuntimeError "The OAuth client was deleted"

See original GitHub issue

I am trying to use gcsfs on a new system. I am invoking it as follows

import gcsfs
fs = gcsfs.GCSFileSystem(project='pangeo-181919', token=None)

I get the following error, which I really don’t understand or know how to recover from. Any advice would be appreciated. This is on a remote server where I have no gloud utilities installed. The python version is 3.5…don’t know if that matters.

---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
<ipython-input-1-90388e4b9890> in <module>()
      1 import gcsfs
----> 2 fs = gcsfs.GCSFileSystem(project='pangeo-181919', token=None)

/home/rpa/.conda/envs/dask_distributed/lib/python3.5/site-packages/gcsfs/core.py in __init__(self, project, access, token, block_size)
    162         self.access = access
    163         self.dirs = {}
--> 164         self.connect()
    165         self._singleton[0] = self
    166 

/home/rpa/.conda/envs/dask_distributed/lib/python3.5/site-packages/gcsfs/core.py in connect(self, refresh)
    229                               params={'client_id': not_secret['client_id'],
    230                                       'scope': scope})
--> 231             validate_response(r, path)
    232             data = json.loads(r.content.decode())
    233             print('Enter the following code when prompted in the browser:')

/home/rpa/.conda/envs/dask_distributed/lib/python3.5/site-packages/gcsfs/core.py in validate_response(r, path)
    108             raise ValueError("Bad Request: %s\n%s" % (path, msg))
    109         else:
--> 110             raise RuntimeError(m)
    111 
    112 

RuntimeError: b'{\n  "error" : "deleted_client",\n  "error_description" : "The OAuth client was deleted."\n}'

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:32 (32 by maintainers)

github_iconTop GitHub Comments

1reaction
mrocklincommented, Dec 8, 2017

Is there a reliable way to check whether the CLI is able to call webbrowser.open? This is convenient for local access.

How convenient? In my terminal I just click on the link and a browser opens. I suppose that this may depend on terminal choice though.

0reactions
martindurantcommented, Dec 8, 2017

Docs are now correct, so I’ll close.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Does "The OAuth client was deleted" from Google mean the ...
As per the API definition, if the response has the field "lifecycleState":"DELETE_REQUESTED" , it means that the project is pending deletion but ...
Read more >
RuntimeError "The OAuth client was deleted" #46 - GitHub
For the original error, this sounds like the time previously that google deleted the API; but checking in the console, it is still...
Read more >
'deleted_client: The OAuth client was deleted.', {'error'
Hi,. In my understanding when this error appears it means that maybe the credentials (tokens) used are the ones deleted and to be...
Read more >
Flask OAuth Client — Authlib 0.12 documentation
Flask OAuth client can handle OAuth 1 and OAuth 2 services. It shares a similar API with Flask-OAuthlib, you can transfer your code...
Read more >
Error messages - Resource Manager - Google Cloud
The OAuth token was received in the query string, which this API forbids for response formats other than JSON or XML. If possible,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found