Skip to content

Add note to onboarding document about request size#599

Merged
harisang merged 2 commits intomainfrom
Update-Onboarding
Mar 2, 2026
Merged

Add note to onboarding document about request size#599
harisang merged 2 commits intomainfrom
Update-Onboarding

Conversation

@bram-vdberg
Copy link
Contributor

@bram-vdberg bram-vdberg commented Mar 2, 2026

Description

This PR adds a note to the onboarding document to solvers to increase the default request size for Nginx. We notice many solvers running into this issue and not realizing this until we look into the logs. By adding this to the documentation we will hopefully make it easier for solvers to debug or avoid this in the future.

Changes

  • Add note to the solver's onboarding document that the auction size is larger than the Nginx default

Summary by CodeRabbit

  • Documentation
    • Added warnings in the solver onboarding guide about large /solve responses and default Nginx request size limits that can block reception of auctions.

@bram-vdberg bram-vdberg requested a review from a team as a code owner March 2, 2026 11:31
@vercel
Copy link

vercel bot commented Mar 2, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview Mar 2, 2026 4:18pm

Request Review

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 2, 2026

📝 Walkthrough

Walkthrough

Added two warning notes in the solver onboarding documentation indicating the /solve response can be large and default Nginx request size limits may block receiving auctions.

Changes

Cohort / File(s) Summary
Documentation Updates
docs/cow-protocol/tutorials/solvers/onboard.md
Inserted two notes warning that the /solve response payload can be large and that default Nginx client body/request size may need increasing; no functional code changes.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🐇 I hopped through docs with ears held high,
Found a bulky response that might pass by,
"Raise Nginx limits!" I gently plea,
So auctions flow through wild and free,
A tiny note from me to thee ✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title directly and clearly describes the main change: adding a note about request size to the onboarding document.
Description check ✅ Passed The description includes all required sections with adequate context and a checklist item describing the change, though the checklist is incomplete.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch Update-Onboarding

Tip

Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs).
Share your feedback on Discord.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@docs/cow-protocol/tutorials/solvers/onboard.md`:
- Line 50: Update the note to say the large payload is the HTTP request body
sent TO your /solve endpoint (not the response), and add a concrete Nginx
configuration example to raise allowed request size (e.g., instruct operators to
set client_max_body_size to an appropriate value like "10M" in their server or
http block). Mention the specific endpoint name (/solve) so readers know which
handler receives the large request body and include the exact Nginx directive
(client_max_body_size) and where to place it (server/http block).

ℹ️ Review info

Configuration used: defaults

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 00b4a6d and 1e2b5b7.

📒 Files selected for processing (1)
  • docs/cow-protocol/tutorials/solvers/onboard.md

envName values: shadow, staging, prod
supported networks: arbitrum-one, avalanche, base, bnb, lens, linea, mainnet, polygon, xdai (gnosis) and more are coming out!

> **_NOTE_** The `/solve` response sent to your solver is quite large. If you are using Nginx then the default request size will be too small and prevent you from receiving any auctions.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Clarify HTTP terminology and add an actionable Nginx setting.

On Line 50, “/solve response sent to your solver” is confusing; this should describe the request body received by your /solve endpoint. Please also include a concrete Nginx example (e.g., client_max_body_size ...;) so operators can fix it immediately.

Suggested doc tweak
-> **_NOTE_** The `/solve` response sent to your solver is quite large. If you are using Nginx then the default request size will be too small and prevent you from receiving any auctions.
+> **_NOTE:_** Requests to your `/solve` endpoint can have large bodies. If you use Nginx, increase `client_max_body_size` (default is often too low), or auctions may be dropped/rejected (e.g., HTTP 413).
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
> **_NOTE_** The `/solve` response sent to your solver is quite large. If you are using Nginx then the default request size will be too small and prevent you from receiving any auctions.
> **_NOTE:_** Requests to your `/solve` endpoint can have large bodies. If you use Nginx, increase `client_max_body_size` (default is often too low), or auctions may be dropped/rejected (e.g., HTTP 413).
🧰 Tools
🪛 LanguageTool

[style] ~50-~50: As an alternative to the over-used intensifier ‘quite’, consider replacing this phrase.
Context: .../solve` response sent to your solver is quite large. If you are using Nginx then the defaul...

(EN_WEAK_ADJECTIVE)

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@docs/cow-protocol/tutorials/solvers/onboard.md` at line 50, Update the note
to say the large payload is the HTTP request body sent TO your /solve endpoint
(not the response), and add a concrete Nginx configuration example to raise
allowed request size (e.g., instruct operators to set client_max_body_size to an
appropriate value like "10M" in their server or http block). Mention the
specific endpoint name (/solve) so readers know which handler receives the large
request body and include the exact Nginx directive (client_max_body_size) and
where to place it (server/http block).

@harisang
Copy link
Contributor

harisang commented Mar 2, 2026

This is the preview, and something looks off to me
image

we usually do this, i think

:::note
.....
:::

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

♻️ Duplicate comments (1)
docs/cow-protocol/tutorials/solvers/onboard.md (1)

50-51: ⚠️ Potential issue | 🟡 Minor

Use correct HTTP direction and include the exact Nginx directive.

Line 51 still describes this as a /solve “response,” but this issue is the request body received by your /solve endpoint. Please also add a concrete Nginx setting (for example, client_max_body_size 10M; in http/server) so operators can fix it immediately.

Suggested wording
 :::note
-The `/solve` response sent to your solver is quite large. If you are using Nginx then the default request size will be too small and prevent you from receiving any auctions.
+Requests to your `/solve` endpoint can have large bodies. If you use Nginx, increase `client_max_body_size` (e.g., `client_max_body_size 10M;` in the `http` or `server` block), otherwise auctions may be rejected (HTTP 413).
 :::
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@docs/cow-protocol/tutorials/solvers/onboard.md` around lines 50 - 51, Update
the note to refer to the "/solve" request body received by your /solve endpoint
(not the "response") and add a concrete Nginx directive example so operators can
fix it immediately; specifically mention adding e.g. client_max_body_size 10M;
in the http or server block of nginx.conf and explain that increasing
client_max_body_size prevents large /solve requests from being rejected.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Duplicate comments:
In `@docs/cow-protocol/tutorials/solvers/onboard.md`:
- Around line 50-51: Update the note to refer to the "/solve" request body
received by your /solve endpoint (not the "response") and add a concrete Nginx
directive example so operators can fix it immediately; specifically mention
adding e.g. client_max_body_size 10M; in the http or server block of nginx.conf
and explain that increasing client_max_body_size prevents large /solve requests
from being rejected.

ℹ️ Review info

Configuration used: defaults

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 1e2b5b7 and 46f3440.

📒 Files selected for processing (1)
  • docs/cow-protocol/tutorials/solvers/onboard.md

@harisang
Copy link
Contributor

harisang commented Mar 2, 2026

@bram-vdberg i applied the change i mentioned above. Let me know if you agree with it. Here is how it looks now

image

@harisang harisang merged commit 903479b into main Mar 2, 2026
5 checks passed
@harisang harisang deleted the Update-Onboarding branch March 2, 2026 23:42
@github-actions github-actions bot locked and limited conversation to collaborators Mar 2, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants