Open mooreds opened 2 years ago
If no response is sent at all, FusionAuth may throw an error in the system logs. It might look like this
2024-07-24 05:21:31.317 PM ERROR io.fusionauth.app.primeframework.error.ExceptionExceptionHandler - An unhandled exception was thrown
org.primeframework.mvc.PrimeException: The action [class io.fusionauth.app.action.api.twoFactor.SendAction] is missing a field annotated with @JSONResponse. This is used to figure out what to send back in the response.
at org.primeframework.mvc.action.result.JSONResult.execute(JSONResult.java:101)
at org.primeframework.mvc.action.result.JSONResult.execute(JSONResult.java:55)
at org.primeframework.mvc.action.result.DefaultResultInvocationWorkflow.perform(DefaultResultInvocationWorkflow.java:105)
at org.primeframework.mvc.workflow.SubWorkflowChain.continueWorkflow(SubWorkflowChain.java:50)
at org.primeframework.mvc.scope.DefaultScopeStorageWorkflow.perform(DefaultScopeStorageWorkflow.java:60)
at org.primeframework.mvc.workflow.SubWorkflowChain.continueWorkflow(SubWorkflowChain.java:50)
...
No error message is returned for a failed generic messenger call
Description
If I set up a generic messenger and it returns a status code outside of 200-299 range, I'd expect some kind of notification. But it appears that the error message is swallowed.
Affects versions
1.32.1
Steps to reproduce
Expected behavior
I'd like to see:
Related
Community guidelines
All issues filed in this repository must abide by the FusionAuth community guidelines.
Additional context
We should update the docs added in this PR with information about how the error message is displayed when the message receiver fails to return a 200: