Skip to content
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

Server Error, provide more details to this exception message #250

Open
1 task
jkone27 opened this issue Nov 12, 2024 · 1 comment
Open
1 task

Server Error, provide more details to this exception message #250

jkone27 opened this issue Nov 12, 2024 · 1 comment

Comments

@jkone27
Copy link
Contributor

jkone27 commented Nov 12, 2024

Description

Swagger.OpenApiException : Server Error

this exception hides details, not clear what i should fix

Affected Type Providers

  • OpenApiClientProvider

Related information

  • MAC OS
  • master
  • .NET8 LTS
@sergey-tihon
Copy link
Member

sergey-tihon commented Nov 14, 2024

Details are probably on the server)

iirc, exception should contain all details that we have

type OpenApiException(code: int, description: string, headers: Headers.HttpResponseHeaders, content: HttpContent) =
inherit Exception(description)
member _.StatusCode = code
member _.Description = description
member _.Headers = headers
member _.Content = content

here how we raise it

raise(OpenApiException(code, desc, response.Headers, response.Content)))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants