Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

init_bussiness not working, only init #71

Open
ztjona opened this issue Jul 15, 2020 · 0 comments
Open

init_bussiness not working, only init #71

ztjona opened this issue Jul 15, 2020 · 0 comments

Comments

@ztjona
Copy link

ztjona commented Jul 15, 2020

Hi, I am using onedrivecmd with my personal account. Now, I tried to use it with my bussiness account but it does not let me connect.

After pasting the text from /login.microsoftonline.com...cnbeining.com I got the following error_

`Traceback (most recent call last):
File "c:\program files\python37\lib\site-packages\urllib3\connection.py", line 157, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw
File "c:\program files\python37\lib\site-packages\urllib3\util\connection.py", line 84, in create_connection
raise err
File "c:\program files\python37\lib\site-packages\urllib3\util\connection.py", line 74, in create_connection
sock.connect(sa)
TimeoutError: [WinError 10060] Se produjo un error durante el intento de conexión ya que la parte conectada no respondió adecuadamente tras un periodo de tiempo, o bien se produjo un error en la conexión establecida ya que el host conectado no ha podido responder

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "c:\program files\python37\lib\site-packages\urllib3\connectionpool.py", line 672, in urlopen
chunked=chunked,
File "c:\program files\python37\lib\site-packages\urllib3\connectionpool.py", line 376, in _make_request
self._validate_conn(conn)
File "c:\program files\python37\lib\site-packages\urllib3\connectionpool.py", line 994, in _validate_conn
conn.connect()
File "c:\program files\python37\lib\site-packages\urllib3\connection.py", line 334, in connect
conn = self._new_conn()
File "c:\program files\python37\lib\site-packages\urllib3\connection.py", line 169, in _new_conn
self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x000001945ACFAD88>: Failed to establish a new connection: [WinError 10060] Se produjo un error durante el intento de conexión ya que la parte conectada no respondió adecuadamente tras un periodo de tiempo, o bien se produjo un error en la conexión establecida ya que el host conectado no ha podido responder

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "c:\program files\python37\lib\site-packages\requests\adapters.py", line 449, in send
timeout=timeout
File "c:\program files\python37\lib\site-packages\urllib3\connectionpool.py", line 720, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "c:\program files\python37\lib\site-packages\urllib3\util\retry.py", line 436, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.office.com', port=443): Max retries exceeded with url: /discovery/v2.0/me/services (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x000001945ACFAD88>: Failed to establish a new connection: [WinError 10060] Se produjo un error durante el intento de conexión ya que la parte conectada no respondió adecuadamente tras un periodo de tiempo, o bien se produjo un error en la conexión establecida ya que el host conectado no ha podido responder'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "c:\program files\python37\lib\runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "c:\program files\python37\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "C:\Program Files\Python37\Scripts\onedrivecmd.exe_main
.py", line 7, in
File "c:\program files\python37\lib\site-packages\onedrivecmd\onedrivecmd.py", line 47, in main
client = do_init(client, args)
File "c:\program files\python37\lib\site-packages\onedrivecmd\utils\actions.py", line 149, in do_init
client = init_business(client)
File "c:\program files\python37\lib\site-packages\onedrivecmd\utils\actions.py", line 87, in init_business
service_info = ResourceDiscoveryRequest().get_service_info(auth.access_token)[0]
File "c:\program files\python37\lib\site-packages\onedrivesdk\helpers\resource_discovery.py", line 25, in get_service_info
response = json.loads(requests.get(self._discovery_service_url, headers=headers).text)
File "c:\program files\python37\lib\site-packages\requests\api.py", line 75, in get
return request('get', url, params=params, **kwargs)
File "c:\program files\python37\lib\site-packages\requests\api.py", line 60, in request
return session.request(method=method, url=url, **kwargs)
File "c:\program files\python37\lib\site-packages\requests\sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "c:\program files\python37\lib\site-packages\requests\sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "c:\program files\python37\lib\site-packages\requests\adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='api.office.com', port=443): Max retries exceeded with url: /discovery/v2.0/me/services (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x000001945ACFAD88>: Failed to establish a new connection: [WinError 10060] Se produjo un error durante el intento de conexión ya que la parte conectada no respondió adecuadamente tras un periodo de tiempo, o bien se produjo un error en la conexión establecida ya que el host conectado no ha podido responder'))`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant