My organization is using teamsite.<tenant>.com instead of normal <tenant>.sharepoint.com. Hence, when I tried to connect it returned following error:
Test failed: Failed to initialize kernel : <class 'robust_session.RobustSessionError'> : Error on attempt #5: HTTPSConnectionPool(host='teamsite.<tenant>.sharepoint.com', port=443): Max retries exceeded with url: /sites/<mysite>/_api/contextinfo (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f219f728320>: Failed to establish a new connection: [Errno -2] Name or service not known',))
My organization is using
teamsite.<tenant>.com
instead of normal<tenant>.sharepoint.com
. Hence, when I tried to connect it returned following error:I suggest to not automatically append
.sharepoint.com
at the end of the tenant https://github.com/dataiku/dss-plugin-sharepoint-online/blob/f7a9ef9f8584a77a9586dc12ec2f7b11870b999b/python-lib/sharepoint_client.py#L136