Skip to content

[Bug]: False positive "No (or too few) code snippets found" error during APEXlang processing #2861

Description

@ferreira-marlon

MCP Client

Other (specify in description)

Context7 MCP Version

NA

Bug Description

Description

An error occurred during the documentation processing pipeline for the APEXlang API Reference. The parser successfully chunked the index.md file and extracted 1,154 snippets, but the final validation failed, reporting a negative snippet count and triggering a "too few code snippets" error.

URL of the Documentation

https://docs.oracle.com/en/database/oracle/apex/26.1/apxln/

Logs & Metadata

Tokens: -1
Snippets: -2
Trust Score: 9.1
Update: 1 day ago

##Processing Timeline:

Jul 1, 16:46:30 - Snippet already processed (chunked), removed from array (90)
Jul 1, 16:46:46 - Info Snippet already processed (chunked), removed from array (9)
Jul 1, 17:03:59 - Processed chunked file: index.md (333 chunks, 1154 snippets, model: gemini-2.5-flash-lite)
Result: Error: No (or too few) code snippets found in documentation files.

Steps to Reproduce

Not possible to reproduce:

The library [/websites/oracle_en_database_oracle_apex_26_1_apxln](https://context7.com/websites/oracle_en_database_oracle_apex_26_1_apxln) already exists. You can provide a base URL to limit crawling to specific pages.

Expected Behavior

The parser should recognize the 1,154 processed snippets from index.md as a successful extraction and complete the library processing without throwing an error.

Actual Behavior

The system records an impossible negative snippet count (Snippets: -2) after the array-removal steps, causing the job to fail the minimum snippet threshold check.

Error Messages / Logs

Transport Method

stdio (default)

Node.js Version

No response

Operating System

No response

Configuration

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions