Skip to content

.NET: [Bug]: RAG Step02 sample fails with 404 on the documentation pages #9647

Description

Observed Behavior

AgentWithRAG_Step02_CustomVectorStoreRAG downloads two pages from the main branch of MicrosoftDocs/semantic-kernel-docs:

  • agent-framework/overview/index.md
  • agent-framework/migration-guide/from-semantic-kernel/index.md

Since October 23 both URLs return 404. The sample stops at the first download, before it indexes anything.

Expected Behavior

The sample downloads the two pages, indexes them in Qdrant and answers the four questions.

Steps to Reproduce

  1. Start Qdrant: docker run -d -p 6333:6333 -p 6334:6334 qdrant/qdrant.
  2. Set FOUNDRY_PROJECT_ENDPOINT.
  3. Run dotnet run in dotnet/samples/02-agents/AgentWithRAG/AgentWithRAG_Step02_CustomVectorStoreRAG.

Minimal Reproduction

curl -s -o /dev/null -w "%{http_code}\n" https://raw.githubusercontent.com/MicrosoftDocs/semantic-kernel-docs/refs/heads/main/agent-framework/overview/index.md
404
curl -s -o /dev/null -w "%{http_code}\n" https://raw.githubusercontent.com/MicrosoftDocs/semantic-kernel-docs/refs/heads/main/agent-framework/migration-guide/from-semantic-kernel/index.md
404

Error Messages and Stack Traces

Unhandled exception. System.Net.Http.HttpRequestException: Response status code does not indicate success: 404 (Not Found).
   at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
   at System.Net.Http.HttpClient.GetStringAsyncCore(HttpRequestMessage request, CancellationToken cancellationToken)
   at Program.<<Main>$>g__UploadDataFromMarkdown|0_1(String markdownUrl, String sourceName, VectorStoreCollection`2 vectorStoreCollection, Int32 chunkSize, Int32 overlap) in .../AgentWithRAG_Step02_CustomVectorStoreRAG/Program.cs:line 106
   at Program.<Main>$(String[] args) in .../AgentWithRAG_Step02_CustomVectorStoreRAG/Program.cs:line 39

Package Versions

main at 9581926 (the sample references the Microsoft.Agents.AI projects of the repository)

.NET Version

.NET 10.0 (SDK 10.0.401)

Operating System

Windows

Regression

No

Additional Context

The pages were removed from main of MicrosoftDocs/semantic-kernel-docs on October 23 (merge aa7f33f). They are still available at commit caf5bacd, the last commit of main before the removal.

This issue was drafted with an AI coding agent. I verified the behavior and the reproduction.

Acknowledgements

  • I searched existing issues and did not find a duplicate.
  • I personally verified this behavior and the reproduction details are authentic.
  • I will wait for explicit maintainer agreement before starting implementation of a non-trivial change.

Activity

  1. added
    .NETUsage: [Issues, PRs], Target: .Net
    triageUsage: [Issues], Target: All issues that still need to be triaged
    on Oct 23, 2026
  2. added
    reproducedUsage: [Issues], Target: all issues that can be reproduced by the triage workflow
    on Oct 23, 2026
  3. github-actions commented on Oct 23, 2026

    @github-actions
    Contributor

    🤖 Automated triage reproduction notes (agent-authored — trust but verify)

    Agent analysis

    The bug occurs in dotnet/samples/02-agents/AgentWithRAG/AgentWithRAG_Step02_CustomVectorStoreRAG/Program.cs::UploadDataFromMarkdown at line 106 when lines 18-19 supply documentation URLs whose files were removed from the remote main branch. Minimal repro: request either hard-coded URL and observe HTTP 404; running the sample surfaces that response as HttpRequestException before indexing.

    • Failing test: none
    • Files examined: dotnet/samples/02-agents/AgentWithRAG/AgentWithRAG_Step02_CustomVectorStoreRAG/Program.cs, dotnet/eng/verify-samples/AgentsSamples.cs
    • Tests run: curl HTTP status probes for current and historical documentation URLs
  4. removed
    triageUsage: [Issues], Target: All issues that still need to be triaged
    on Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

.NETUsage: [Issues, PRs], Target: .NetreproducedUsage: [Issues], Target: all issues that can be reproduced by the triage workflow

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions