Skip to content

Conversation

@jenseng
Copy link
Contributor

@jenseng jenseng commented Mar 18, 2025

Fixes #754
Fixes octokit/octokit.js#2800

Give auth requests a dedicated queue. This ensures that they don't cause a deadlock when 10+ concurrent requests are made that need authentication (i.e. either we've never authed, or the token has expired).

@wolfy1339
Copy link
Member

Can you update the PR with octokit/auth-app.js#689

@jenseng jenseng force-pushed the fix-auth-deadlock branch from 22fd013 to 16d260b Compare April 3, 2025 17:09
@jenseng
Copy link
Contributor Author

jenseng commented Apr 3, 2025

Can you update the PR with octokit/auth-app.js#689

Done! I only updated the dev dependency and the test, since it can still work with older versions (just suboptimally). Let me know if we should tweak peerDependencies/etc too

@wolfy1339 wolfy1339 merged commit 54f107e into octokit:main Apr 3, 2025
8 checks passed
@github-actions
Copy link
Contributor

github-actions bot commented Apr 3, 2025

🎉 This PR is included in version 9.6.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@gr2m
Copy link
Contributor

gr2m commented Apr 3, 2025

Great work on adding custom throttling for auth requests 🚀

@imbroyury
Copy link

@gr2m @wolfy1339 @jenseng is it possible to backport this fix to CJS v8 version of the package?

@wolfy1339
Copy link
Member

Unfortunately not. With recent developments on require(ESM), maintaining the CJS version is no longer needed.

Besides, the Octokit packages don't have an active maintainer team at all.
I am only a community volunteer maintainer, and do my best to do what I can.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Type: Bug Something isn't working as documented

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG]: Octokit hangs when making 10 parallel requests. global group can deadlock requests if auth is not already cached

4 participants