cli icon indicating copy to clipboard operation
cli copied to clipboard

Max HTTP request size/read buffer size arguments - names have changed, docs not updated

Open WhitWaldo opened this issue 9 months ago • 6 comments

Expected Behavior

The JS SDK runs several E2E tests before PRs can be accepted. In a recent one, I've updated the E2E test to use the latest Dapr runtime (1.15.3) and CLI (1.15.0).

Since then, one of the E2E tests is failing where it specifies the --dapr-http-max-request-size flag with an argument value of 10.

Since this argument is listed in the documentation, I would expect it'd be a legal flag.

This appears to be a regression, as I've successfully had two PRs complete E2E testing when this was previously using Dapr CLI version 1.14.0 and Dapr runtime 1.41.1 prior to this PR.

Actual Behavior

That E2E test fails before it even starts with the following ending in an error:

@dapr/[email protected] test:e2e:http:server npm run prebuild && TEST_SECRET_1=secret_val_1 TEST_SECRET_2=secret_val_2 dapr run --app-id test-suite --app-protocol http --app-port 50001 --dapr-http-port 50000 --dapr-http-max-request-size 10 --components-path ./test/components -- jest --runInBand --detectOpenHandles --testMatch [ '**/test/e2e/http/(server).test.ts' ]

@dapr/[email protected] prebuild ./scripts/prebuild.sh

Error: unknown flag: --dapr-http-max-request-size Usage: unknown flag: --dapr-http-max-request-size dapr run [flags]

Steps to Reproduce the Problem

Re-run the failed job.

Release Note

RELEASE NOTE: FIX Dapr CLI allows use of --dapr-http-max-request-size flag fixing regression

WhitWaldo avatar Mar 14 '25 03:03 WhitWaldo

Found it - apparently not an unintentional regression, but the docs are out of date following this recent change.

This page says that --max-body-size isn't supported on the CLI, but the note for --dapr-http-max-request-size says --max-body-size should be used.

And this page doesn't mention --max-body-size at all.

WhitWaldo avatar Mar 14 '25 06:03 WhitWaldo

This page also needs an update to reflect the new argument name of --dapr-http-read-buffer-size to --read-buffer-size

WhitWaldo avatar Mar 16 '25 18:03 WhitWaldo

This page also needs the update to reflect the change to -dapr-http-read-buffer-size.

WhitWaldo avatar Mar 17 '25 01:03 WhitWaldo

This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged (pinned, good first issue, help wanted or triaged/resolved) or other activity occurs. Thank you for your contributions.

dapr-bot avatar Apr 16 '25 01:04 dapr-bot

This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged (pinned, good first issue, help wanted or triaged/resolved) or other activity occurs. Thank you for your contributions.

dapr-bot avatar May 16 '25 02:05 dapr-bot

This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged (pinned, good first issue, help wanted or triaged/resolved) or other activity occurs. Thank you for your contributions.

dapr-bot avatar Jun 15 '25 16:06 dapr-bot

This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged (pinned, good first issue, help wanted or triaged/resolved) or other activity occurs. Thank you for your contributions.

dapr-bot avatar Jul 15 '25 16:07 dapr-bot

This issue has been automatically closed because it has not had activity in the last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as pinned, good first issue, help wanted or triaged/resolved. Thank you for your contributions.

dapr-bot avatar Jul 22 '25 16:07 dapr-bot