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

Github server error 502 during Get Release handler #53

Open
beyarkay opened this issue Jul 16, 2022 · 4 comments
Open

Github server error 502 during Get Release handler #53

beyarkay opened this issue Jul 16, 2022 · 4 comments
Assignees
Labels
Releaser Action 'releaser'

Comments

@beyarkay
Copy link
Contributor

beyarkay commented Jul 16, 2022

I'm getting an error (link) that I can't figure out:

...
· Check SemVer compliance of the reference/tag
· Get GitHub API handler (authenticate)
· Get Repository handler
· Get Release handler
Traceback (most recent call last):                                 <---- error starts here
· RM set. All previous assets are being cleared...
  File "/releaser.py", line 179, in <module>
 - eastern-cape-graaf-reinet.ics
    asset.delete_asset()
  File "/usr/local/lib/python3.9/site-packages/github/GitReleaseAsset.py", line 138, in delete_asset
    headers, data = self._requester.requestJsonAndCheck("DELETE", self.url)
  File "/usr/local/lib/python3.9/site-packages/github/Requester.py", line 353, in requestJsonAndCheck
    return self.__check(
  File "/usr/local/lib/python3.9/site-packages/github/Requester.py", line 378, in __check
    raise self.__createException(status, responseHeaders, output)
github.GithubException.GithubException: 502 {"message": "Server Error"}

My workflow looks like:

      uses: pyTooling/Actions/releaser@main
      with:
        tag: latest
        rm: true
        token: ${{ secrets.GITHUB_TOKEN }}
        files: calendars/*.*

Not sure what the issue here is, or if it's even a permanent one? (as opposed to github just being broken?)

Here's the link to the release in question that I was trying to update: https://github.com/beyarkay/eskom-calendar/releases/tag/latest.
The asset in question (eastern-cape-graaf-reinet.ics) doesn't exist in the release but I think it does exist in the new list of assets to be uploaded, maybe that's the issue?

@Paebbels
Copy link
Member

Is this maybe related to the following issues?


Sorry I'm not into JavaScript, so I can help here.
@umarcor has currently not enough time to help fixing it.

So we're seeking for a skilled person helping out on that topic. It gets more and more reported.

@Paebbels Paebbels added the Releaser Action 'releaser' label Jul 16, 2022
@beyarkay
Copy link
Contributor Author

Hmm they look similar, although not exactly the same. I'm going to retry manually and see if it goes away. My javascript isn't great either, but I'll have a look to see if I can implement something simple.

@umarcor
Copy link
Member

umarcor commented Jul 20, 2022

The releaser Action is written in python, not in javascript! See https://github.com/pyTooling/Actions/blob/main/releaser/releaser.py.

It seems that the issue is produced in

if paramRM:
print("· RM set. All previous assets are being cleared...")
for asset in gh_release.get_assets():
print(f" - {asset.name}")
asset.delete_asset()
. Hence, I would suggest changing the title of this issue.

@beyarkay is this issue still reproducible? It might have been a transitory connection problem on GitHub.

@Paebbels
Copy link
Member

I'm open to accept pull requests.

Please also see #82.

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

No branches or pull requests

3 participants