akshaybabloo / release-exporter

Release exporter for GitHub and GitLab
https://www.gollahalli.com/blog/export-your-github-and-gitlab-releases-as-a-changelog/
MIT License
26 stars 8 forks source link

Error raise KeyError('Wrong credentials given. Please check if you have the correct token.') #82

Closed wickstargazer closed 10 months ago

wickstargazer commented 1 year ago

Hi it throws an error when using personal token

here is the issue

 File "/home/wick/.local/lib/python3.8/site-packages/click/decorators.py", line 21, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/home/wick/.local/lib/python3.8/site-packages/release_exporter/cli.py", line 58, in markdown
    github(force=True, token=ctx.obj['token'], location=ctx.obj['location'], repo_url=ctx.obj['repo_url'],
  File "/home/wick/.local/lib/python3.8/site-packages/release_exporter/formatter.py", line 26, in write
    md_file.writelines(self._converter())
  File "/home/wick/.local/lib/python3.8/site-packages/release_exporter/formatter.py", line 50, in _converter
    temp = self.releases()['data']['repository']['releases']['edges']
  File "/home/wick/.local/lib/python3.8/site-packages/release_exporter/request.py", line 65, in releases
    releases(first:{self._total_number_releases()}, orderBy: {{field: CREATED_AT, direction: DESC}}){{
  File "/home/wick/.local/lib/python3.8/site-packages/release_exporter/request.py", line 52, in _total_number_releases
    raise KeyError('Wrong credentials given. Please check if you have the correct token.')
KeyError: 'Wrong credentials given. Please check if you have the correct token.'
akshaybabloo commented 1 year ago

Hi. Sorry for the delay. Can you try with the newer release. Also, could you please check if your token has all the correct permissions?

akshaybabloo commented 10 months ago

I am going to close this as I haven't heard any response.