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
The API error paths usually respond with status codes and exception messages. The only two statuses that don't have interesting messages are the 401 and 404. (and 500 but those shouldn't happen)
Here's the relevant section of the example code
https://github.com/FusionAuth/fusionauth-netcore-client/blob/master/fusionauth-netcore-client-test/fusionauth-netcore-client-test/test/io/fusionauth/Example.cs
However, if you serialize the response object, you see that the status code is returned, not the
exception
orerrorResponse
objects.If I pass the wrong API key, I get this response when I print the JSON:
And if I pass an email address which does not exist in my fusion auth databse, I get this message:
So, I'd suggest either wrapping these error codes in the error objects provided, or changing the example app code to be:
Here's my software versions:
FA: 1.15.5
FusionAuth.Client (from .csproj): 1.15.7
Target .NET framework: netcoreapp3.1
The text was updated successfully, but these errors were encountered: