Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TagBot failed with github.GithubException.UnknownObjectException #81

Closed
tkf opened this issue Mar 4, 2020 · 9 comments
Closed

TagBot failed with github.GithubException.UnknownObjectException #81

tkf opened this issue Mar 4, 2020 · 9 comments

Comments

@tkf
Copy link

tkf commented Mar 4, 2020

I found this in the error log:

##[error]TagBot experienced an unexpected internal failure
Traceback (most recent call last):
  File "/root/tagbot/action/__main__.py", line 52, in <module>
    versions = repo.new_versions()
  File "/root/tagbot/action/repo.py", line 221, in new_versions
    old = self._versions(min_age=self._lookback)
  File "/root/tagbot/action/repo.py", line 182, in _versions
    contents = self._registry.get_contents(f"{root}/Versions.toml", **kwargs)
  File "/usr/local/lib/python3.8/site-packages/github/Repository.py", line 1685, in get_contents
    headers, data = self._requester.requestJsonAndCheck(
  File "/usr/local/lib/python3.8/site-packages/github/Requester.py", line 317, in requestJsonAndCheck
    return self.__check(
  File "/usr/local/lib/python3.8/site-packages/github/Requester.py", line 342, in __check
    raise self.__createException(status, responseHeaders, output)
github.GithubException.UnknownObjectException: 404 {"message": "Not Found", "documentation_url": "https://developer.github.com/v3/repos/contents/#get-contents"}

Response (403): {
  "message": "Forbidden"
}

https://github.com/tkf/SplittablesBase.jl/runs/484158558?check_suite_focus=true#step:3:35

@christopher-dG
Copy link
Member

christopher-dG commented Mar 4, 2020

Two bugs in one!

I thought that a previous check would have guaranteed that the file we're looking for would exist... but apparently something is gone wrong.

And the automatic error reporting is somehow misconfigured and all requests return 403. without ever reaching my code 🙃
This is super weird, I can reach the service via curl and requests, but not from a web browser.

I'll get right on both of them.

@christopher-dG
Copy link
Member

Your issue should be fixed by 189876a, I'll leave this open until I see it work and I fix the second bit.

@tkf
Copy link
Author

tkf commented Mar 4, 2020

Thanks a lot for super quick fix!

And the automatic error reporting is somehow misconfigured and all requests return 403.

Yeah, I wasn't sure if I should open an issue as I thought it would be opened automatically.

@christopher-dG
Copy link
Member

It kind of started working... See the 20 new issues lol. But the particular error being reported is supposed to be ignored... Lots of work to do.

@tkf
Copy link
Author

tkf commented Mar 4, 2020

Not sure if it is related to the original issue, but here is another strange thing.

TagBot says No new versions to release:
https://github.com/tkf/SplittablesBase.jl/runs/484324695?check_suite_focus=true#step:3:35

...while this package is already registered JuliaRegistries/General#10344 and no related release exist yet https://github.com/tkf/SplittablesBase.jl/releases

@christopher-dG
Copy link
Member

Hm, yeah that really shouldn't be happening either. It's picking up the new version when I run it locally, so I'll check what happens when it runs next. Could you set the repo secret ACTIONS_STEP_DEBUG to true for me?

@tkf
Copy link
Author

tkf commented Mar 4, 2020

@christopher-dG
Copy link
Member

Well then... My guess is that it was related to #80 but I'm not really sure. Let's just assume it'll keep working...

@christopher-dG
Copy link
Member

Alright 1883573 should take care of the error reporting problems. The initial problem of "no requests are going through" was solved by just redeploying... I guess it's flaky.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants