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

potential bug: native fetch not throwing errors? #699

Closed
Uzlopak opened this issue Jun 27, 2024 · 6 comments
Closed

potential bug: native fetch not throwing errors? #699

Uzlopak opened this issue Jun 27, 2024 · 6 comments

Comments

@Uzlopak
Copy link
Contributor

Uzlopak commented Jun 27, 2024

I have a bug in the production where a 404 response is not throwing accordingly.

Very strange behaviour. For this I am currently proposing PRs which make it easier for me to investigate the bug. I have the strong feeling that there is a bug in this repo, and it is not showing properly because we mock the fetch calls.

Copy link

👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a process in place for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labeled with Status: Up for grabs. You & others like you are the reason all of this works! So thank you & happy coding! 🚀

@gr2m
Copy link
Contributor

gr2m commented Jun 29, 2024

I have a bug in the production where a 404 response is not throwing accordingly.

Is your code using vanilla @octokit/core or some higher level library?

is it for an installation access token? I think @auth/app-token does retry 404s due to a possible replication lag

@Uzlopak
Copy link
Contributor Author

Uzlopak commented Jun 29, 2024

I use probot.

Maybe something wrong with google cloud functions framework.

@Uzlopak
Copy link
Contributor Author

Uzlopak commented Jul 5, 2024

Somewhere in our code, it seems that the status code of the Response object is a string! Atleast when we use GCF. Very strange

@gr2m
Copy link
Contributor

gr2m commented Jul 10, 2024

maybe GCF middleware is doing something weird?

@Uzlopak
Copy link
Contributor Author

Uzlopak commented Jul 14, 2024

I focus on improving probot and octokit. maybe then I figure out where the issue is.

@Uzlopak Uzlopak closed this as completed Jul 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants