-
Notifications
You must be signed in to change notification settings - Fork 309
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
You attempted to access the Error property for a successful result. A successful result has no Error. #500
Comments
Is this a real error or just your debugger ? because I have the same in vs code when I inspect the value with the debugger, because it tries to show me the value of the Error even if there is no error. |
It is real |
Show the stacktrace, please |
|
The stacktrace shows that this error was thrown during response formatting, i.e. result was returned not only from service to controller, but also it was returned from controller itself. If you want to return results from controller, you may use this extension to add corresponding converters for System.Text.Json. |
Is that link should have something? it is empty page? :) |
My bad, updated it 👍 |
huge thanks |
I have receiving
You attempted to access the Error property for a successful result. A successful result has no Error.
error when I send value from service to controller. I receive it on service level.The text was updated successfully, but these errors were encountered: