joeyespo / grip

Preview GitHub README.md files locally before committing them.
MIT License
6.47k stars 424 forks source link

Using Github API that is soon to be deprecated #310

Open timgianitsos opened 4 years ago

timgianitsos commented 4 years ago

I used grip with the --user option and received this email shortly after from Github.

You recently used a password to access an endpoint through the GitHub API using python-requests/2.18.4. We will deprecate basic authentication using password to this endpoint soon:

https://api.github.com/markdown/raw

We recommend using a personal access token (PAT) with the appropriate scope to access this endpoint instead. Visit https://github.com/settings/tokens for more information.

joeyespo commented 4 years ago

Thanks for reporting this, @timgianitsos!

PATs are definitely the safer option over password access. I'll mark this as maintenance with the plan to update the README. Later, either providing a better guide from the CLI / rendered page directly. Or better, get back to working on offline rendering so this becomes a non-issue.

orzel commented 2 years ago

I guess that's what my problem is. I'm using grip 4.5.2 on linux(gentoo). It doesn't work, i got this in the browser Internal Server Error And this in the terminal:

  File "/usr/lib/python3.9/site-packages/requests/models.py", line 953, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://api.github.com/markdown/raw