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

InvalidOperationException: Property 'JsonResult.SerializerSettings' must be an instance of type 'Newtonsoft.Json.JsonSerializerSettings'. #94

Closed
Cipri18 opened this issue Jan 6, 2023 · 2 comments

Comments

@Cipri18
Copy link

Cipri18 commented Jan 6, 2023

Description
The watchdog page list exception suddenly stopped logging. Doesn't log anything, I watch on my database and everything its logging ok, but visually on the page not.

To Reproduce
Steps to reproduce the behavior:

  1. Go to watchdog page
  2. Inspect page and look for console logs, there's 500 https responses calls.
  3. No error exceptions throws on my code.

Screenshots
image
image
image

Details (please complete the following information):

  • Project Type: API
  • Framework Version : NET 6
  • WatchDog Version : 1.3.3
  • Database MSSQL
  • Browser : BRAVE/CHROME
@IzyPro
Copy link
Owner

IzyPro commented Jan 6, 2023

Hi @Cipri18
Looks like your api uses Newtonsoft as a global json serializer/converter.
You need to specify that while setting up WatchDog.
See the optional configuration section of the documentation for more details.

@Cipri18
Copy link
Author

Cipri18 commented Jan 6, 2023

@IzyPro You're right. Fixed.
opt.Serializer = WatchDogSerializerEnum.Newtonsoft;

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