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

Fix TypeError in ResultPager #1093

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

iwiznia
Copy link

@iwiznia iwiznia commented Nov 7, 2022

Fixes #1091

Not sure if this is the best fix, if it is not, would love guidance on a better one.

@iwiznia
Copy link
Author

iwiznia commented Jan 19, 2023

Can someone take a look at this PR? Is this project abandoned?

@acrobat
Copy link
Collaborator

acrobat commented Jan 25, 2023

Hi @iwiznia, thanks for the PR! I'm not sure if this is the "right" fix as we hide the actual error by returning an empty array. I don't understand why the httpClient call doesn't throw an exception (through our GithubExceptionThrower plugin in case of this 500 error.

So for me the fix would rather be to check why there is no exception thrown on this error, something that can be catched by the application and a retry can be executed. Instead of an empty array that could just mean there is no data.

wdyt @iwiznia?

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.

ResultPager::get() can return string
2 participants