Error Handler not called with umbRequestHelper.resourcePromise
When I call the resourcePromise method and an error happens my error handler doesn't get called.
What happens is that the side panel appears with the detail of the error returned by the server but my handler is not called.
Am I doing something wrong or is there a bug somewhere?
Error Handler not called with umbRequestHelper.resourcePromise
When I call the
resourcePromise
method and an error happens my error handler doesn't get called. What happens is that the side panel appears with the detail of the error returned by the server but my handler is not called.Am I doing something wrong or is there a bug somewhere?
Here the code I'm using:
Basically, what I found out, is that the error handler doesn't get called in case the resource returns a 500 server error.
But this way the clean-up code in my dialog never gets called. I think
deferred.reject
should always be called, in addition to showing the error.I created an issue http://issues.umbraco.org/issue/U4-8128 and a PR https://github.com/umbraco/Umbraco-CMS/pull/1157
is working on a reply...