-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.Net: Include request metadata in KernelException if response cannot be serialized #6407
Merged
markwallace-microsoft
merged 5 commits into
microsoft:main
from
markwallace-microsoft:users/markwallace/issue_6405
May 30, 2024
Merged
.Net: Include request metadata in KernelException if response cannot be serialized #6407
markwallace-microsoft
merged 5 commits into
microsoft:main
from
markwallace-microsoft:users/markwallace/issue_6405
May 30, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3178bdd
to
d97aee5
Compare
dotnet/src/Functions/Functions.OpenApi/RestApiOperationRunner.cs
Outdated
Show resolved
Hide resolved
westey-m
approved these changes
May 27, 2024
a34e2bf
to
673166b
Compare
ba2f820
to
bef67e0
Compare
bef67e0
to
0337564
Compare
dmytrostruk
reviewed
May 29, 2024
d79f252
to
5f7b482
Compare
SergeyMenshykh
approved these changes
May 30, 2024
dmytrostruk
approved these changes
May 30, 2024
dotnet/src/SemanticKernel.Abstractions/Http/HttpOperationException.cs
Outdated
Show resolved
Hide resolved
…tion.cs Co-authored-by: Dmytro Struk <13853051+dmytrostruk@users.noreply.github.com>
dmytrostruk
approved these changes
May 30, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
kernel.core
kernel
Issues or pull requests impacting the core kernel
.NET
Issue or Pull requests regarding .NET code
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation and Context
We include additional metadata in
HttpOperationException
i.e. request uri, payload, etc. When the response serialization fails we currently throw aKernelException
which doesn't include the HTTP request metadata. This PR changes which exception is thrown toHttpOperationException
so we have one type of exception for clients to catch and this includes all of the additional metadata . This is a behaviour change but it enables clients to catch a single exception and to get access to the request uri, payload, etc.Description
Contribution Checklist