This repository was archived by the owner on Oct 2, 2024. It is now read-only.
This repository was archived by the owner on Oct 2, 2024. It is now read-only.
WebApi global ExceptionHandler always returns HTML instead of JSON when package SerilogWeb.Classic.WebApi is present in project #16 Copy link Copy linkClosed
Closed
WebApi global ExceptionHandler always returns HTML instead of JSON when package SerilogWeb.Classic.WebApi is present in project#16Copy link
Description victorvogelpoel opened on Feb 27, 2019Issue body actions
I have an global ExceptionHandler in my WebAPI. Any response from the ExceptionHandler is returned as HTML and not JSON, which is the default content encoding.
Upon removing the SerilogWeb.Classic.WebApi package from the project, responses are no longer in HTML, but now in JSON.
Stackoverflow https://stackoverflow.com/questions/47778018/exceptionhandler-being-called-but-not-returning-json describes the issue and also the culprit, which is SerilogWeb.Classic.WebApi.
Metadata Metadata Assignees No one assignedNo labels
Type No type Projects No projects Milestone No milestoneRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4