claude-code - 💡(How to fix) Fix [Bug] Content filtering incorrectly blocks country names and flags in output [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#46811Fetched 2026-04-12 13:32:26
View on GitHub
Comments
1
Participants
2
Timeline
6
Reactions
0
Timeline (top)
labeled ×5commented ×1

Error Message

[{"error":"Error: Request was aborted.\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T19:10:42.936Z"},{"error":"Error: ECONNREFUSED\n at from (/$bunfs/root/src/entrypoints/cli.js:105:7862)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:113:12934)\n at emitError (node:events:43:23)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:112:1149)\n at emitError (node:events:43:23)\n at <anonymous> (node:_http_client:253:22)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T19:10:57.992Z"},{"error":"MaxFileReadTokenExceededError: File content (18433 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n at MD7 (/$bunfs/root/src/entrypoints/cli.js:4451:12671)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T20:18:05.651Z"},{"error":"MaxFileReadTokenExceededError: File content (18433 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n at MD7 (/$bunfs/root/src/entrypoints/cli.js:4451:12671)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T20:32:00.419Z"},{"error":"McpToolCallError: {"error":{"name":"HttpException","message":"Failed to run sql query: ERROR: 42703: column \"polname\" does not exist\nLINE 2: SELECT polname, tablename FROM pg_policies \n ^\nHINT: Perhaps you meant to reference the column \"pg_policies.policyname\".\n"}}\n at oEK (/$bunfs/root/src/entrypoints/cli.js:1602:63)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T21:01:55.842Z"},{"error":"McpToolCallError: {"error":{"name":"HttpException","message":"Failed to apply database migration: ERROR: 2BP01: cannot drop column site_id of table site_ingestion_state because other objects depend on it\nDETAIL: policy Team members can read site ingestion state on table site_ingestion_state depends on column site_id of table site_ingestion_state\nHINT: Use DROP ... CASCADE to drop the dependent objects too.\n"}}\n at oEK (/$bunfs/root/src/entrypoints/cli.js:1602:63)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T21:03:09.841Z"},{"error":"McpToolCallError: {"error":{"name":"HttpException","message":"Failed to apply database migration: ERROR: 42804: column \"window_start\" is of type date but expression is of type text\nLINE 126: (CURRENT_DATE - INTERVAL '480 days')::DATE::TEXT,\n ^\nHINT: You will need to rewrite or cast the expression.\n"}}\n at oEK (/$bunfs/root/src/entrypoints/cli.js:1602:63)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T21:03:37.991Z"},{"error":"MaxFileReadTokenExceededError: File content (22134 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n at MD7 (/$bunfs/root/src/entrypoints/cli.js:4451:12671)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T21:04:59.583Z"},{"error":"Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"Output blocked by content filtering policy"},"request_id":"req_011CZxtgKdTpUtSNCRM1muGn"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:53185)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T23:59:50.239Z"}]

Root Cause

Errors

[{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T19:10:42.936Z"},{"error":"Error: ECONNREFUSED\n    at from (/$bunfs/root/src/entrypoints/cli.js:105:7862)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:113:12934)\n    at emitError (node:events:43:23)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:112:1149)\n    at emitError (node:events:43:23)\n    at <anonymous> (node:_http_client:253:22)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T19:10:57.992Z"},{"error":"MaxFileReadTokenExceededError: File content (18433 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n    at MD7 (/$bunfs/root/src/entrypoints/cli.js:4451:12671)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T20:18:05.651Z"},{"error":"MaxFileReadTokenExceededError: File content (18433 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n    at MD7 (/$bunfs/root/src/entrypoints/cli.js:4451:12671)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T20:32:00.419Z"},{"error":"McpToolCallError: {\"error\":{\"name\":\"HttpException\",\"message\":\"Failed to run sql query: ERROR:  42703: column \\\"polname\\\" does not exist\\nLINE 2: SELECT polname, tablename FROM pg_policies \\n               ^\\nHINT:  Perhaps you meant to reference the column \\\"pg_policies.policyname\\\".\\n\"}}\n    at oEK (/$bunfs/root/src/entrypoints/cli.js:1602:63)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T21:01:55.842Z"},{"error":"McpToolCallError: {\"error\":{\"name\":\"HttpException\",\"message\":\"Failed to apply database migration: ERROR:  2BP01: cannot drop column site_id of table site_ingestion_state because other objects depend on it\\nDETAIL:  policy Team members can read site ingestion state on table site_ingestion_state depends on column site_id of table site_ingestion_state\\nHINT:  Use DROP ... CASCADE to drop the dependent objects too.\\n\"}}\n    at oEK (/$bunfs/root/src/entrypoints/cli.js:1602:63)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T21:03:09.841Z"},{"error":"McpToolCallError: {\"error\":{\"name\":\"HttpException\",\"message\":\"Failed to apply database migration: ERROR:  42804: column \\\"window_start\\\" is of type date but expression is of type text\\nLINE 126:     (CURRENT_DATE - INTERVAL '480 days')::DATE::TEXT,\\n               ^\\nHINT:  You will need to rewrite or cast the expression.\\n\"}}\n    at oEK (/$bunfs/root/src/entrypoints/cli.js:1602:63)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T21:03:37.991Z"},{"error":"MaxFileReadTokenExceededError: File content (22134 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n    at MD7 (/$bunfs/root/src/entrypoints/cli.js:4451:12671)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T21:04:59.583Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"Output blocked by content filtering policy\"},\"request_id\":\"req_011CZxtgKdTpUtSNCRM1muGn\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:53185)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T23:59:50.239Z"}]

Code Example

[{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T19:10:42.936Z"},{"error":"Error: ECONNREFUSED\n    at from (/$bunfs/root/src/entrypoints/cli.js:105:7862)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:113:12934)\n    at emitError (node:events:43:23)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:112:1149)\n    at emitError (node:events:43:23)\n    at <anonymous> (node:_http_client:253:22)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T19:10:57.992Z"},{"error":"MaxFileReadTokenExceededError: File content (18433 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n    at MD7 (/$bunfs/root/src/entrypoints/cli.js:4451:12671)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T20:18:05.651Z"},{"error":"MaxFileReadTokenExceededError: File content (18433 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n    at MD7 (/$bunfs/root/src/entrypoints/cli.js:4451:12671)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T20:32:00.419Z"},{"error":"McpToolCallError: {\"error\":{\"name\":\"HttpException\",\"message\":\"Failed to run sql query: ERROR:  42703: column \\\"polname\\\" does not exist\\nLINE 2: SELECT polname, tablename FROM pg_policies \\n               ^\\nHINT:  Perhaps you meant to reference the column \\\"pg_policies.policyname\\\".\\n\"}}\n    at oEK (/$bunfs/root/src/entrypoints/cli.js:1602:63)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T21:01:55.842Z"},{"error":"McpToolCallError: {\"error\":{\"name\":\"HttpException\",\"message\":\"Failed to apply database migration: ERROR:  2BP01: cannot drop column site_id of table site_ingestion_state because other objects depend on it\\nDETAIL:  policy Team members can read site ingestion state on table site_ingestion_state depends on column site_id of table site_ingestion_state\\nHINT:  Use DROP ... CASCADE to drop the dependent objects too.\\n\"}}\n    at oEK (/$bunfs/root/src/entrypoints/cli.js:1602:63)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T21:03:09.841Z"},{"error":"McpToolCallError: {\"error\":{\"name\":\"HttpException\",\"message\":\"Failed to apply database migration: ERROR:  42804: column \\\"window_start\\\" is of type date but expression is of type text\\nLINE 126:     (CURRENT_DATE - INTERVAL '480 days')::DATE::TEXT,\\n               ^\\nHINT:  You will need to rewrite or cast the expression.\\n\"}}\n    at oEK (/$bunfs/root/src/entrypoints/cli.js:1602:63)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T21:03:37.991Z"},{"error":"MaxFileReadTokenExceededError: File content (22134 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n    at MD7 (/$bunfs/root/src/entrypoints/cli.js:4451:12671)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T21:04:59.583Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"Output blocked by content filtering policy\"},\"request_id\":\"req_011CZxtgKdTpUtSNCRM1muGn\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:53185)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T23:59:50.239Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description Recieved invalid request: "output blocked by content filtering policy" but I only asked it to put country flags and correct english names of every country in the report page of my app.

Environment Info

  • Platform: linux
  • Terminal: gnome-terminal
  • Version: 2.1.101
  • Feedback ID: 6c302505-69a6-4943-aa85-c5e7e25ef9cd

Errors

[{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T19:10:42.936Z"},{"error":"Error: ECONNREFUSED\n    at from (/$bunfs/root/src/entrypoints/cli.js:105:7862)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:113:12934)\n    at emitError (node:events:43:23)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:112:1149)\n    at emitError (node:events:43:23)\n    at <anonymous> (node:_http_client:253:22)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T19:10:57.992Z"},{"error":"MaxFileReadTokenExceededError: File content (18433 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n    at MD7 (/$bunfs/root/src/entrypoints/cli.js:4451:12671)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T20:18:05.651Z"},{"error":"MaxFileReadTokenExceededError: File content (18433 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n    at MD7 (/$bunfs/root/src/entrypoints/cli.js:4451:12671)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T20:32:00.419Z"},{"error":"McpToolCallError: {\"error\":{\"name\":\"HttpException\",\"message\":\"Failed to run sql query: ERROR:  42703: column \\\"polname\\\" does not exist\\nLINE 2: SELECT polname, tablename FROM pg_policies \\n               ^\\nHINT:  Perhaps you meant to reference the column \\\"pg_policies.policyname\\\".\\n\"}}\n    at oEK (/$bunfs/root/src/entrypoints/cli.js:1602:63)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T21:01:55.842Z"},{"error":"McpToolCallError: {\"error\":{\"name\":\"HttpException\",\"message\":\"Failed to apply database migration: ERROR:  2BP01: cannot drop column site_id of table site_ingestion_state because other objects depend on it\\nDETAIL:  policy Team members can read site ingestion state on table site_ingestion_state depends on column site_id of table site_ingestion_state\\nHINT:  Use DROP ... CASCADE to drop the dependent objects too.\\n\"}}\n    at oEK (/$bunfs/root/src/entrypoints/cli.js:1602:63)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T21:03:09.841Z"},{"error":"McpToolCallError: {\"error\":{\"name\":\"HttpException\",\"message\":\"Failed to apply database migration: ERROR:  42804: column \\\"window_start\\\" is of type date but expression is of type text\\nLINE 126:     (CURRENT_DATE - INTERVAL '480 days')::DATE::TEXT,\\n               ^\\nHINT:  You will need to rewrite or cast the expression.\\n\"}}\n    at oEK (/$bunfs/root/src/entrypoints/cli.js:1602:63)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T21:03:37.991Z"},{"error":"MaxFileReadTokenExceededError: File content (22134 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n    at MD7 (/$bunfs/root/src/entrypoints/cli.js:4451:12671)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T21:04:59.583Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"Output blocked by content filtering policy\"},\"request_id\":\"req_011CZxtgKdTpUtSNCRM1muGn\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:53185)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T23:59:50.239Z"}]

extent analysis

TL;DR

The issue is likely caused by a content filtering policy blocking the output, and to fix it, you may need to adjust the request or the policy settings.

Guidance

  • Review the content filtering policy to ensure it is not blocking the required output, specifically the country flags and English names of countries.
  • Check the request being made to see if it can be modified to comply with the content filtering policy.
  • Investigate the MaxFileReadTokenExceededError and McpToolCallError errors to ensure they are not contributing to the issue.
  • Verify that the database migration errors are resolved, as they may be related to the content filtering policy issue.

Example

No specific code example can be provided without more context, but reviewing the generate function at /$bunfs/root/src/entrypoints/cli.js:11:53185 may help identify the issue.

Notes

The issue seems to be related to a combination of errors, including content filtering, database migration, and file reading. Resolving each of these errors may be necessary to fix the overall issue.

Recommendation

Apply a workaround by adjusting the request or content filtering policy settings to allow the required output. This may involve modifying the policy to exclude certain types of content or adjusting the request to comply with the policy.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING