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

show headers during GithubException #299

Merged
merged 17 commits into from
Nov 15, 2023

Conversation

IanButterworth
Copy link
Member

@IanButterworth IanButterworth commented Nov 14, 2023

Trying to check for information we currently ignore that could investigate #298

@IanButterworth
Copy link
Member Author

My python knowledge is getting in the way

https://github.com/PyGithub/PyGithub/blob/673974918882d68826659daa5435e833cd7148c2/github/GithubException.py#L74C9-L74C16

>           logger.info(e.headers())
E           AttributeError: 'GithubException' object has no attribute 'headers'

@DilumAluthge
Copy link
Member

Why version of pygithub are we using in our CI here?

@IanButterworth
Copy link
Member Author

@DilumAluthge
Copy link
Member

😭

@DilumAluthge
Copy link
Member

What's the first version of pygithub that stores the headers?

@@ -9,7 +9,7 @@ license = "MIT"
python = "^3.8"
Flask = "^1.1.2"
Jinja2 = "^2.11.2"
PyGithub = "^1.51"
PyGithub = "1.58.2"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it intentional that you dropped the caret?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes. 1.59 had breaking changes

@IanButterworth
Copy link
Member Author

IanButterworth commented Nov 15, 2023

woo. Now we just need someone with a failing TagBot to try this out by setting TagBot@427ecaa29643c27fc588b03f43d071badfb3c7c9

@IanButterworth
Copy link
Member Author

Or maybe we just release this as a patch and see in the wild

@IanButterworth
Copy link
Member Author

Let's do it. It's green and we can revert in a patch if needed

@IanButterworth IanButterworth merged commit 3f28a80 into JuliaRegistries:master Nov 15, 2023
@IanButterworth IanButterworth deleted the ib/error_headers branch November 15, 2023 01:12
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

Successfully merging this pull request may close these issues.

2 participants