.NET: [Bug]: RAG Step02 sample fails with 404 on the documentation pages #9647
Copy link
Copy link
Labels
.NETUsage: [Issues, PRs], Target: .NetUsage: [Issues, PRs], Target: .NetreproducedUsage: [Issues], Target: all issues that can be reproduced by the triage workflowUsage: [Issues], Target: all issues that can be reproduced by the triage workflow
Description
Observed Behavior
AgentWithRAG_Step02_CustomVectorStoreRAG downloads two pages from the main branch of MicrosoftDocs/semantic-kernel-docs:
agent-framework/overview/index.mdagent-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
- Start Qdrant:
docker run -d -p 6333:6333 -p 6334:6334 qdrant/qdrant. - Set
FOUNDRY_PROJECT_ENDPOINT. - Run
dotnet runindotnet/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
404Error 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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
.NETUsage: [Issues, PRs], Target: .NetUsage: [Issues, PRs], Target: .NetreproducedUsage: [Issues], Target: all issues that can be reproduced by the triage workflowUsage: [Issues], Target: all issues that can be reproduced by the triage workflow
Type
Projects
- StatusShow more project fieldsNo status
Activity
github-actions commentedon Oct 23, 2026
🤖 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.
none