Skip to content

fix(firecrawl): bound auth validation timeout#37522

Open
luochen211 wants to merge 1 commit into
langgenius:mainfrom
luochen211:fix/firecrawl-auth-timeout
Open

fix(firecrawl): bound auth validation timeout#37522
luochen211 wants to merge 1 commit into
langgenius:mainfrom
luochen211:fix/firecrawl-auth-timeout

Conversation

@luochen211

Copy link
Copy Markdown
Contributor

Summary

  • add a bounded timeout for Firecrawl credential validation requests
  • assert the auth validation request passes an explicit httpx.Timeout

Root cause

FirecrawlAuth._post_request() called httpx.post() without an explicit timeout, so a slow or hanging Firecrawl endpoint could stall credential validation longer than intended.

Closes #37521

Tests

  • uv run --project api pytest -o addopts='' api/tests/unit_tests/services/auth/test_firecrawl_auth.py -q
  • uv run --project api --with ruff ruff check api/services/auth/firecrawl/firecrawl.py api/tests/unit_tests/services/auth/test_firecrawl_auth.py
  • uv run --project api --with ruff ruff format --check api/services/auth/firecrawl/firecrawl.py api/tests/unit_tests/services/auth/test_firecrawl_auth.py

@dosubot dosubot Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Jun 16, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Pyrefly Type Coverage

Metric Base PR Delta
Type coverage 48.58% 48.58% +0.00%
Strict coverage 48.09% 48.09% +0.00%
Typed symbols 27,986 27,987 +1
Untyped symbols 29,920 29,920 0
Modules 2892 2892 0

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

Labels

size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Firecrawl credential validation POST lacks bounded timeout

1 participant