Skip to content

Include DataForSEO status code in AI Overview errors#473

Merged
jrhizor merged 1 commit into
mainfrom
jrhizor/dataforseo-aio-status-code
Jul 19, 2026
Merged

Include DataForSEO status code in AI Overview errors#473
jrhizor merged 1 commit into
mainfrom
jrhizor/dataforseo-aio-status-code

Conversation

@jrhizor

@jrhizor jrhizor commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

Why

The /status page shows 0% for Google AI Overview on DataForSEO. Diagnosis so far: in a single CI run, every DataForSEO surface passes (AI Mode + ChatGPT/Perplexity/Gemini LLM Responses) except Google AI Overview — the only one using googleOrganicLiveAdvanced + load_async_ai_overview — which fails 100% with Internal SE Server Error. The same request succeeds 10/10 against a different (demo) DataForSEO account. That points at an account-level difference on DataForSEO's side (async-AI-Overview feature enablement, balance, or a cost cap on the extra async charge), not a code bug.

The blocker to confirming this is that the failure path threw only DataForSEO's status_message ("Internal SE Server Error."), swallowing the numeric status_code. The code distinguishes a billing/limit rejection from a genuinely transient server error.

Change

Prefix the DataForSEO status_code to the AI Overview error, matching what the LLM Responses path already does. The next failing scheduled run then logs e.g. DataForSEO API Error: 40202 ... instead of an opaque message — self-diagnosing the real cause.

Follows #472 (the retry). Internal error-detail only — no changeset.

The AI Overview failure path threw only DataForSEO's status_message ("Internal SE Server Error."), hiding the numeric status_code that distinguishes a billing/limit rejection from a genuinely transient server error. Match the LLM Responses path and prefix the code, so a failing scheduled run is self-diagnosing.
@vercel

vercel Bot commented Jul 19, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
elmo Ready Ready Preview, Comment Jul 19, 2026 9:03pm

Request Review

@jrhizor
jrhizor merged commit 0147824 into main Jul 19, 2026
9 of 10 checks passed
@jrhizor
jrhizor deleted the jrhizor/dataforseo-aio-status-code branch July 19, 2026 21:26
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.

1 participant