iwestlin / gd-utils

Google Drive 百宝箱
1.31k stars 424 forks source link

有没有新的方法获取sa,AutoRclone现在获取sa会报错了 #212

Open christan-duplicate opened 4 years ago

christan-duplicate commented 4 years ago

有没有新的方法获取sa,AutoRclone现在获取sa会报错了

dmuxue commented 4 years ago

尽量使用未删除过的项目,就不会报错

新的谷歌id

Dingzhenpiyi commented 4 years ago

我也是创建SA失败,请问有解决办法吗?

Mrycp commented 3 years ago

我也是创建SA失败,404报错,接口直接请求不到,查看接口里提示:The request is missing a valid API key googleapiclient.errors.HttpError: <HttpError 404 when requesting https://iam.googleapis.com/v1/projects/saf-giatwp59nehqekew-xfyrjiigu/serviceAccounts?pageSize=100&alt=json returned "Requested entity was not found.">

lzkgbld commented 3 years ago

我这边运行是报错 Traceback (most recent call last): File "gen_sa_accounts.py", line 323, in download_keys=args.download_keys File "gen_sa_accounts.py", line 168, in serviceaccountfactory creds.refresh(Request()) File "/usr/local/lib/python3.7/dist-packages/google/oauth2/credentials.py", line 206, in refresh self._scopes, File "/usr/local/lib/python3.7/dist-packages/google/oauth2/_client.py", line 248, in refresh_grant response_data = _token_endpoint_request(request, token_uri, body) File "/usr/local/lib/python3.7/dist-packages/google/oauth2/_client.py", line 124, in _token_endpoint_request _handle_error_response(response_body) File "/usr/local/lib/python3.7/dist-packages/google/oauth2/_client.py", line 60, in _handle_error_response raise exceptions.RefreshError(error_details, response_body) google.auth.exceptions.RefreshError: ('deleted_client: The OAuth client was deleted.', '{\n "error": "deleted_client",\n "error_description": "The OAuth client was deleted."\n}')

zacred0rryn commented 2 years ago

我这边运行是报错 Traceback (most recent call last): File "gen_sa_accounts.py", line 323, in download_keys=args.download_keys File "gen_sa_accounts.py", line 168, in serviceaccountfactory creds.refresh(Request()) File "/usr/local/lib/python3.7/dist-packages/google/oauth2/credentials.py", line 206, in refresh self._scopes, File "/usr/local/lib/python3.7/dist-packages/google/oauth2/_client.py", line 248, in refresh_grant response_data = _token_endpoint_request(request, token_uri, body) File "/usr/local/lib/python3.7/dist-packages/google/oauth2/_client.py", line 124, in _token_endpoint_request _handle_error_response(response_body) File "/usr/local/lib/python3.7/dist-packages/google/oauth2/_client.py", line 60, in _handle_error_response raise exceptions.RefreshError(error_details, response_body) google.auth.exceptions.RefreshError: ('deleted_client: The OAuth client was deleted.', '{\n "error": "deleted_client",\n "error_description": "The OAuth client was deleted."\n}')

我报的和这个几乎一模一样的错,不知道该怎么解决。