Saksham Dixit
05/25/2021, 7:35 PMFailed to load and execute Flow's environment: BadCredentialsException(401
Any advice how to proceed to solve this error?Kevin Kho
Saksham Dixit
05/25/2021, 7:39 PMSaksham Dixit
05/25/2021, 7:40 PMKevin Kho
Kevin Kho
Kevin Kho
Saksham Dixit
05/25/2021, 8:00 PMKevin Kho
Kevin Kho
from github import Github
# First create a Github instance:
# using an access token
g = Github("token")
repo = g.get_repo("usename/repo_name")
contents = repo.get_contents("")
for content_file in contents:
print(content_file)
Kevin Kho
Saksham Dixit
05/25/2021, 8:26 PMKevin Kho
Saksham Dixit
05/25/2021, 8:38 PMfrom github import Github
# First create a Github instance:
# using an access token
g = Github("token",base_url="")
repo = g.get_repo("usename/repo_name")
contents = repo.get_contents("")
for content_file in contents:
print(content_file)
I get an error
assert o.hostname in [
AssertionError: None
Saksham Dixit
05/25/2021, 8:39 PMKevin Kho
Kevin Kho
g = Github(base_url="https://{hostname}/api/v3", login_or_token="token")
?Kevin Kho
Saksham Dixit
05/25/2021, 9:35 PMg = Github(base_url="https://{hostname}/api/v3", login_or_token="token")
Saksham Dixit
05/25/2021, 9:35 PMSaksham Dixit
05/25/2021, 9:36 PM