Skip to content

Improve Firecrawl configuration error message and add logging#1763

Closed
JackTheGit wants to merge 2 commits intoNousResearch:mainfrom
JackTheGit:fix/firecrawl-config-error-message
Closed

Improve Firecrawl configuration error message and add logging#1763
JackTheGit wants to merge 2 commits intoNousResearch:mainfrom
JackTheGit:fix/firecrawl-config-error-message

Conversation

@JackTheGit
Copy link
Contributor

@JackTheGit JackTheGit commented Mar 17, 2026

Improves robustness and error handling in tools/web_tools.py.

  • Adds logging and a clearer error message when Firecrawl is not configured
  • Fixes backend detection when environment variables contain only whitespace

Previously, values like " " were treated as valid configuration,
leading to incorrect backend selection.

The updated error message explicitly indicates that either
FIRECRAWL_API_KEY (cloud) or FIRECRAWL_API_URL (self-hosted) must be set.

No breaking changes.

@teknium1
Copy link
Contributor

Merged via PR #2341 — both commits cherry-picked with authorship preserved. Good catch on the whitespace edge case. Thanks!

@teknium1 teknium1 closed this Mar 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants