Skip to content
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

feat(core): base exception filter supports the http-errors library #5990

Merged
merged 3 commits into from
Jan 27, 2021

Conversation

kamilmysliwiec
Copy link
Member

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Other... Please describe:

What is the current behavior?

Issue Number: N/A

What is the new behavior?

BaseExceptionFilter supports the http-errors errors.

Does this PR introduce a breaking change?

[x] Yes
[ ] No

Other information

@kamilmysliwiec kamilmysliwiec changed the title feat(core): support http-errors library by the base filter feat(core): base exception filer supports the http-errors library Dec 21, 2020
@coveralls
Copy link

Pull Request Test Coverage Report for Build 232f0823-17a3-4e83-bf5f-7563dfb0013d

  • 2 of 2 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.02%) to 94.761%

Totals Coverage Status
Change from base Build 8a89d39f-9cf6-43f6-9219-2d3a689fa012: 0.02%
Covered Lines: 5083
Relevant Lines: 5364

💛 - Coveralls

@kamilmysliwiec kamilmysliwiec changed the title feat(core): base exception filer supports the http-errors library feat(core): base exception filter supports the http-errors library Dec 21, 2020
@djejaquino
Copy link

@kamilmysliwiec is there anything I can do to help get this going?

@kamilmysliwiec kamilmysliwiec changed the base branch from master to 8.0.0 January 27, 2021 11:14
@kamilmysliwiec kamilmysliwiec merged commit e547172 into 8.0.0 Jan 27, 2021
@delete-merged-branch delete-merged-branch bot deleted the feat/support-http-errors branch January 27, 2021 11:14
bilalshaikh42 added a commit to biosimulations/biosimulations that referenced this pull request Oct 21, 2021
due to an issue with nestjs not processing payload too large errors properly, such errors were returned as 500. This adds a check in the default filter to account for this case
See nestjs/nest#5990.

Co-authored-by: Jonathan Karr <[email protected]>

closes #3349
biosimulations-daemon added a commit to biosimulations/biosimulations that referenced this pull request Oct 24, 2021
# [5.9.0](v5.8.0...v5.9.0) (2021-10-24)

### Bug Fixes

* **deps:** update to nx v13 ([48dbf7c](48dbf7c))
* **exceptions:** handle cases of payload too large errors ([522cec8](522cec8)), closes [nestjs/nest#5990](nestjs/nest#5990) [#3349](#3349)
* **exceptions:** improve error handling ([083091e](083091e))

### Features

* **api:** add caching to results and ontology endpoints ([bb2a991](bb2a991))
* **api:** add caching to results endpoints ([ed54363](ed54363))
* **api:** add health check for job queue ([a05556e](a05556e))
* **api:** add health module and endpoints ([da036f5](da036f5))
* **api:** add various health checks and endpoints ([d30c7d2](d30c7d2))
* **api:** setup results cache with REDIS ([3e40fde](3e40fde))
* **dispatch-service:** add limit for retries of status for jobs ([f187b03](f187b03))
* **dispatch,platform:** added structured data for projects, simulation runs: ([7135ed0](7135ed0))
* **dispatch,simulators:** added structured data tutorials ([5c23e8d](5c23e8d))
* **dispatch,simulators:** encoded FAQs into Schema.org ([936fb44](936fb44))
* **exceptions:** dont process health check http exceptions ([b75747e](b75747e))
* **simulators-api,api:** added clearer payload too large messages ([98fb49d](98fb49d))
* **simulators-api:** add health checks for simulators-api ([26d3b63](26d3b63))
* **simulators:** added structured data for simulators as software applications ([7618db3](7618db3))

### Reverts

* **simulators-api,api:** revert partially the changes in 98fb49d ([d88fcea](d88fcea))
@fatonh
Copy link

fatonh commented Jun 24, 2022

Has this issue been introduced again somewhere. Seems I'm hitting the same error with Nest/common v8.2.3?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants