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

Allow custom base url #39

Open
HuyNguyen7994 opened this issue Jun 30, 2022 · 0 comments
Open

Allow custom base url #39

HuyNguyen7994 opened this issue Jun 30, 2022 · 0 comments

Comments

@HuyNguyen7994
Copy link

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',))

I suggest to not automatically append .sharepoint.com at the end of the tenant

self.sharepoint_url = tenant + ".sharepoint.com"

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