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

Behavior mismatch: too few subrequests #274

Closed
isaac-mcfadyen opened this issue Jun 2, 2022 · 1 comment
Closed

Behavior mismatch: too few subrequests #274

isaac-mcfadyen opened this issue Jun 2, 2022 · 1 comment
Labels
behaviour mismatch Different behaviour to Workers runtime
Milestone

Comments

@isaac-mcfadyen
Copy link

According to the recent blog post, Workers Unbound can now use up to 1000 subrequests.

However, when making more than 50 subrequests, Miniflare throws an error:
Error: Too many subrequests. Workers can make up to 50 subrequests per request.

We might want to add a flag or similar to enable the increased limit (if you know that you want Unbound)? Would also be required in wrangler2 because that uses Miniflare internally.

@mrbbot
Copy link
Contributor

mrbbot commented Jun 9, 2022

Hey! 👋 Thanks for raising this. We should be able to increase the limit automatically when usage_model = "unbound" in wrangler.toml. For now, you can set the environment variable MINIFLARE_SUBREQUEST_LIMIT=1000.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
behaviour mismatch Different behaviour to Workers runtime
Projects
None yet
Development

No branches or pull requests

2 participants