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
I have built the concept of a 'maintenance mode' for my API which returns a status code of 503. When the NGXS action GetAppConfiguration is dispatched the API call fails (which is expected)m but I also expected it to return the original headers and body of the error that was thrown. Instead I get statusCode: 0 which is then incorrectly identified by the error handler.
I have looked at the source code and I see this lines:
I have built the concept of a 'maintenance mode' for my API which returns a status code of
503
. When the NGXS actionGetAppConfiguration
is dispatched the API call fails (which is expected)m but I also expected it to return the original headers and body of the error that was thrown. Instead I getstatusCode: 0
which is then incorrectly identified by the error handler.I have looked at the source code and I see this lines:
abp/npm/ng-packs/packages/core/src/lib/states/config.state.ts
Lines 242 to 245 in 01f7e75
This previously worked in my code on Abp v2.6.0 and was changed in this commit: 43e9cd2#diff-81ce61c98a835356c2c2f135c82a45ea
Is it possible you could return the original error unless it is an error that occurs after the API call?
The text was updated successfully, but these errors were encountered: