Created
June 17, 2022 18:39
-
-
Save suhiymof/979017e0e42ccbd04cc581281495da05 to your computer and use it in GitHub Desktop.
python3 gen_sa_accounts.py --quick-setup -1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
creat projects: -1 | |
Will overwrite all service accounts in existing projects. | |
So make sure you have some projects already. | |
Press Enter to continue... | |
Enabling services | |
Traceback (most recent call last): | |
File "/root/SA/gen_sa_accounts.py", line 312, in <module> | |
resp = serviceaccountfactory( | |
File "/root/SA/gen_sa_accounts.py", line 225, in serviceaccountfactory | |
_enable_services(serviceusage,ste,services) | |
File "/root/SA/gen_sa_accounts.py", line 89, in _enable_services | |
batch.execute() | |
File "/usr/local/python3/lib/python3.10/site-packages/googleapiclient/_helpers.py", line 130, in positional_wrapper | |
return wrapped(*args, **kwargs) | |
File "/usr/local/python3/lib/python3.10/site-packages/googleapiclient/http.py", line 1566, in execute | |
self._execute(http, self._order, self._requests) | |
File "/usr/local/python3/lib/python3.10/site-packages/googleapiclient/http.py", line 1496, in _execute | |
resp, content = http.request( | |
File "/usr/local/python3/lib/python3.10/site-packages/google_auth_httplib2.py", line 218, in request | |
response, content = self.http.request( | |
File "/usr/local/python3/lib/python3.10/site-packages/httplib2/__init__.py", line 1701, in request | |
(response, content) = self._request( | |
File "/usr/local/python3/lib/python3.10/site-packages/httplib2/__init__.py", line 1421, in _request | |
(response, content) = self._conn_request(conn, request_uri, method, body, headers) | |
File "/usr/local/python3/lib/python3.10/site-packages/httplib2/__init__.py", line 1343, in _conn_request | |
conn.connect() | |
File "/usr/local/python3/lib/python3.10/site-packages/httplib2/__init__.py", line 1135, in connect | |
self.sock = self._context.wrap_socket(sock, server_hostname=self.host) | |
File "/usr/local/python3/lib/python3.10/ssl.py", line 513, in wrap_socket | |
return self.sslsocket_class._create( | |
File "/usr/local/python3/lib/python3.10/ssl.py", line 1071, in _create | |
self.do_handshake() | |
File "/usr/local/python3/lib/python3.10/ssl.py", line 1342, in do_handshake | |
self._sslobj.do_handshake() | |
ssl.SSLEOFError: EOF occurred in violation of protocol (_ssl.c:997) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
py gen_sa_accounts.py --enable-services myprojectid
Enabling services
Traceback (most recent call last):
File "F:\云服务器\SA\gen_sa_accounts.py", line 311, in
resp = serviceaccountfactory(
File "F:\云服务器\SA\gen_sa_accounts.py", line 224, in serviceaccountfactory
_enable_services(serviceusage,ste,services)
File "F:\云服务器\SA\gen_sa_accounts.py", line 89, in _enable_services
batch.execute()
File "E:\soft\python3\lib\site-packages\googleapiclient_helpers.py", line 130, in positional_wrapper
return wrapped(*args, **kwargs)
File "E:\soft\python3\lib\site-packages\googleapiclient\http.py", line 1566, in execute
self._execute(http, self._order, self._requests)
File "E:\soft\python3\lib\site-packages\googleapiclient\http.py", line 1496, in execute
resp, content = http.request(
File "E:\soft\python3\lib\site-packages\google_auth_httplib2.py", line 218, in request
response, content = self.http.request(
File "E:\soft\python3\lib\site-packages\httplib2_init.py", line 1701, in request
(response, content) = self.request(
File "E:\soft\python3\lib\site-packages\httplib2_init.py", line 1421, in _request
(response, content) = self.conn_request(conn, request_uri, method, body, headers)
File "E:\soft\python3\lib\site-packages\httplib2_init.py", line 1343, in conn_request
conn.connect()
File "E:\soft\python3\lib\site-packages\httplib2_init.py", line 1135, in connect
self.sock = self._context.wrap_socket(sock, server_hostname=self.host)
File "E:\soft\python3\lib\ssl.py", line 513, in wrap_socket
return self.sslsocket_class._create(
File "E:\soft\python3\lib\ssl.py", line 1071, in _create
self.do_handshake()
File "E:\soft\python3\lib\ssl.py", line 1342, in do_handshake
self._sslobj.do_handshake()
ssl.SSLEOFError: EOF occurred in violation of protocol (_ssl.c:997)