Skip to content

MissingSchema: Invalid URL 'None': No scheme supplied. Perhaps you meant http://None? #75

Description

@mcleanshepherd

No matter what I do, I can't seem to get aroud this error. I take the code from the examples (subsituting the arguments with the name of my own site):

import requests
import sharepy

auth = sharepy.auth.SharePointOnline(username="user@example.com")
auth.login(site="example.sharepoint.com")
r = requests.get("https://example.sharepoint.com", auth=auth)

Adding 'https://' or 'http://' to the site argument of auth.login does not change anything.

Python: 3.9.13
requests: 2.28.1
sharepy: 2.0.0

trace in attached file, beginning directly after entering my password at the prompt.
sharepy_auth_login_missing_schema.txt

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions