request.js icon indicating copy to clipboard operation
request.js copied to clipboard

potential bug: native fetch not throwing errors?

Open Uzlopak opened this issue 1 year ago • 4 comments

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.

Uzlopak avatar Jun 27 '24 13:06 Uzlopak

👋 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! 🚀

github-actions[bot] avatar Jun 27 '24 13:06 github-actions[bot]

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

gr2m avatar Jun 29 '24 01:06 gr2m

I use probot.

Maybe something wrong with google cloud functions framework.

Uzlopak avatar Jun 29 '24 02:06 Uzlopak

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

Uzlopak avatar Jul 05 '24 10:07 Uzlopak

maybe GCF middleware is doing something weird?

gr2m avatar Jul 10 '24 00:07 gr2m

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

Uzlopak avatar Jul 14 '24 10:07 Uzlopak