You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An exception of type 'System.UriFormatException' occurred in System.Private.CoreLib.dll but was not handled in user code: 'Invalid URI: The format of the URI could not be determined.'
This is because the path has value ("/user") and this is indeed an invalid URI.
Build and run the application and use message "What is my username?"
See error
Expected behavior
A clear and concise description of what you expected to happen.
The GET on the GitHub should be executed and the agent should answer with the username.
Screenshots
Platform
OS: Windows
IDE: VS CODE
Language: c#
Source:
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
github-actionsbot
changed the title
Bug: Sample code in GitHubPlugin.cs is not correct
.Net: Bug: Sample code in GitHubPlugin.cs is not correct
Jan 7, 2025
### Motivation and Context
Closes#9264Closes#10105
### Description
<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->
### Contribution Checklist
<!-- Before submitting this PR, please make sure: -->
- [ ] The code builds clean without any errors or warnings
- [ ] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [ ] All unit tests pass, and I have added new tests where possible
- [ ] I didn't break anyone 😄
Describe the bug
I am following the guidance in https://learn.microsoft.com/en-us/semantic-kernel/frameworks/agent/examples/example-chat-agent?pivots=programming-language-csharp. This refers to https://github.com/microsoft/semantic-kernel/blob/08a41117c24cdd1f8f98332a222abc5b8f46ea0d/dotnet/samples/LearnResources/Plugins/GitHub/GitHubPlugin.cs as GitHubPlugin for the sample agent.
In line
semantic-kernel/dotnet/samples/LearnResources/Plugins/GitHub/GitHubPlugin.cs
Line 102 in 08a4111
This gives the error:
This is because the path has value ("/user") and this is indeed an invalid URI.
This can be solved by changing the line to
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
The GET on the GitHub should be executed and the agent should answer with the username.
Screenshots
Platform
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: