-
-
Notifications
You must be signed in to change notification settings - Fork 324
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
API error messages not getting passed #261
Comments
I'm currently experiencing this issue and still trying to figure out the issue |
@iammukeshm
Expected Behaviour
Current Behaviour
Quick helpful debugging
|
Facing Same issue . Any update about that issue? |
I am facing the same issue. I thought the error was because of my model validation problems but I even tried it with the example Product and Brand ...... The same thing is displayed. |
Not working this way! Any updates? Thanks! |
Hello all, I'm facing the same issue. I tried to search by myself. The message arrived to blazor client. You can show it with DevTools with an error code 400. But it is not displayed. We have "Something went wrong" ! If we take a look inside FSHApi.cs generated with NSwag, we can see that error 400 is not an ErrorResult but a HttpProblemValidationDetails that's why, I guess, like @kristian014 told us, ex.Result.Error is null ! I saw a file FSHApiConvention I don't know, maybe, we have to change it. 400 is not a HttpValidationProblemDetails but an ErrorResult. It is just an idea and a lead I don't know consequences. What do you think about it @iammukeshm ? Thanks |
I did communicate with @iammukeshm on linkedin regarding the above issue, and he told me that this issue and other issues will be resolved on the next update (.NET 8). But for those of us who are already working on this version, If the above proposed solution can resolve the issue, I think it is better to try it out. What do you think? |
good news thanks ! I can wait the next version (.NET8) ! now I just try the solution to see if everything work correctly ! |
He said the new version is almost completed! Didn't say when exactly. Did you try the solution to see if it works? |
ok thank you ! no,sorry, it was just an idea, I don't master enought the code ! |
Tried creating a user with username less than 6 characters, and the error object is null and nothing happens. Tested with the swagger interface and the error message works there.
The text was updated successfully, but these errors were encountered: