We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Given the following example:
this.http.responseCheck( 'nestjs-docs', 'http://localhost:3000/api/', (res) => { return res.status === 403; }, ),
It will return the following result
{ "status": "error", "info": {}, "error": { "nestjs-docs": { "status": "down", "message": "Request failed with status code 403", "statusCode": 403, "statusText": "Forbidden" } }, "details": { "nestjs-docs": { "status": "down", "message": "Request failed with status code 403", "statusCode": 403, "statusText": "Forbidden" } } }
Even if the request itself to localhost:3000/api returns 403
No response
It should at least handle the third paramter callback
9.0.0
The text was updated successfully, but these errors were encountered:
fix(http): responseCheck callback does not get executed on unhealthy …
178127b
…http res resolves #1944
cb2eb98
d9147d8
Released with 9.1.0 🎉
Sorry, something went wrong.
No branches or pull requests
Is there an existing issue for this?
Current behavior
Given the following example:
It will return the following result
Even if the request itself to localhost:3000/api returns 403
Minimum reproduction code
Steps to reproduce
No response
Expected behavior
It should at least handle the third paramter callback
Package version
9.0.0
NestJS version
No response
Node.js version
No response
In which operating systems have you tested?
Other
No response
The text was updated successfully, but these errors were encountered: