-
Notifications
You must be signed in to change notification settings - Fork 339
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
HttpErrorResponse statusText always default to 'OK' for any statusCode #7
Comments
it's the default angular behaviour. For more information angular/angular#23334 |
same issue here. and i tried everything and nothing works |
'm having same issue. help! |
Same issue here, can't find the right solution |
How can you explain that?
& can you show your code snippet where you resolved this issue?
…On Fri, Aug 20, 2021 at 6:52 PM Eric J. ***@***.***> wrote:
Same issue here, can't find the right solution
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<TryCatchLearn/DatingApp#7 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AP7SO255OS7VMI4XFUGUDLDT5ZM2VANCNFSM4VXDQLQQ>
.
|
I do not have this issue, but my business partner does. He is working on a Win10 machine and I am on a M1Pro Macbook. Not sure if it matters, or if it's just a coincidence, but what OS are you running? |
Are there any updates? I'm having the same problem.. |
I have same problem in windows 10 |
I'm having the same problem. In principle the operating system should not matter at this point. I use arch linux btw on a Intel architecture iMac. Also, i had to check on about proxy configuration and same result was thrown. |
I've found a workaround. Since it is the default angular behavior as mentioned by @Zercerium, to prevent wrong HttpErrorResponse's attribute values, what I do is to create a Dto in my backend that matches the angular object HttpErrorResponse, and I provide the custom attributes to be sent to client side. That way I can get the desired status and so on values. |
For any HttpErrorResponse statusCode ( 400, 401, 500, 404 ) angular returning status text always 'OK'
but in postman returning correct status text.
The text was updated successfully, but these errors were encountered: