Skip to content

SharePoint access site issue. #1134

Open
@thsheep

Description

@thsheep

https://github.com/O365/python-o365/blob/705e676ca10055b41448d0b7e5c199a1ce9407af/O365/sharepoint.py#L665C1-L665C60

It caused the site to be inaccessible.

Changing it to: site = '{}:/sites{}'.format(host_name, path_to_site) works fine.

Is my code still incorrect?

`
o365 = Account(credentials=(client_id, client_secret),
auth_flow_type='credentials',
tenant_id=MicroSoftGraphTenantId)
o365.authenticate()

o365.sharepoint().get_site('xxxxxxx.sharepoint.com', 'xxxxxx')

`
error:

`
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://graph.microsoft.com/v1.0/sites/xxxxxxx.sharepoint.com:/xxxxxx: | Error Message: The provided path does not exist, or does not represent a site

`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions