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
When I receive the Json format error input request, I can find the log output the JSON input formatter threw an exception. message. But sad, I do not know why the input be error.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
When I receive the Json format error input request, I can find the log output the
JSON input formatter threw an exception.
message. But sad, I do not know why the input be error.My log format code:
The
logMessage
will beJSON input formatter threw an exception.
string. And I can not useformatter
to format the exception tologMessage
.I find the code here
aspnetcore/src/Mvc/Mvc.NewtonsoftJson/src/NewtonsoftJsonInputFormatter.cs
Lines 438 to 442 in 449abac
Does it work as expected?
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions