I am trying to push code from github to the netlify. I am using following code to do this
url = “https://api.netlify.com/api/v1/sites”
headers = {
“Authorization”: f"Bearer ____________________",
“Content-Type”: “application/json”,
}
data = {
# “repo”: {“repo_url”: repo_url},
“name”: “caahasaaakooo”, # Replace with your desired site name,
“repo”: {
“branch”: “main”,
“private”: False,
“provider”: “github”,
“repo”: “dsfsdf”,
“public_repo”: True
},
“build_settings”: {
“branch”: “main”,
“private”: False,
“provider”: “github”,
“repo”: “sdfsdfsdff”,
“public_repo”: True
}
}
i am getting following error
Build troubleshooting tips | Netlify Docs Host key verification failed.
fatal: Could not read from remote repository
Connection is there i checked in the site created