Incorrect RequestResult is received when adding trackRequestResult to an http request.
ozderko opened this issue · 8 comments
Which @ngneat/elf-* package(s) are the source of the bug?
requests-status
Is this a regression?
No
Description
I added it to the service
trackRequestResult([AuthRequestStatus.sendPhone]) and in the selector joinRequestResult([AuthRequestStatus.sendPhone])
But I get an incorrect status when the backend responds with a 400 error.
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
No response
Please provide the environment you discovered this bug in
No response
Anything else?
No response
Do you want to create a pull request?
No
Can you provide a reproduction on stackblitz, please?
Something doesn't make sense in your image. The response is from POST signin request and not AuthRequestStatus.sendPhone
Interesting, I'll check it.
https://stackblitz.com/edit/angular-cm1m1n?file=src%2Fmain.ts
It works fine. Please try to reproduce it.
I think it's a problem on my end, I'm using Ionic and I tried to call catchError and nothing happened :c
Thanks for the help )
It turned out to be even easier, I had an Interceptor that caught the error before it reaches the service)