Skip to content

Conversation

@Aschen
Copy link
Contributor

@Aschen Aschen commented Dec 11, 2020

What does this PR do?

HTTP headers request field have a size limite: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/431

When using the document.mGet method with the get verb, you can hit this limit who result in an 431 response with an empty body.

Now a specific error is trowed so developers can understand what is wrong

@codecov
Copy link

codecov bot commented Dec 15, 2020

Codecov Report

Merging #574 (8cd5c5e) into 7-dev (dff0b2c) will decrease coverage by 0.08%.
The diff coverage is 77.77%.

Impacted file tree graph

@@            Coverage Diff             @@
##            7-dev     #574      +/-   ##
==========================================
- Coverage   88.36%   88.28%   -0.09%     
==========================================
  Files          32       32              
  Lines        1444     1451       +7     
  Branches      252      254       +2     
==========================================
+ Hits         1276     1281       +5     
- Misses        119      120       +1     
- Partials       49       50       +1     
Impacted Files Coverage Δ
src/protocols/Http.ts 84.04% <33.33%> (-1.05%) ⬇️
src/protocols/abstract/Base.ts 92.30% <100.00%> (+0.64%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update dff0b2c...8cd5c5e. Read the comment docs.

@Yoann-Abbes Yoann-Abbes merged commit e1d55fc into 7-dev Dec 15, 2020
@Yoann-Abbes Yoann-Abbes deleted the warn-when-querystring-too-big branch December 15, 2020 12:47
@Aschen Aschen mentioned this pull request Jan 4, 2021
Aschen added a commit that referenced this pull request Jan 4, 2021
# [7.4.8](https://github.com/kuzzleio/sdk-javascript/releases/tag/7.4.8) (2021-01-04)


#### Bug fixes

- [ [#573](#573) ] Fix types for Document and CollectionMappings   ([Aschen](https://github.com/Aschen))

#### Enhancements

- [ [#575](#575) ] Support "lang" parameter for Koncorde filters   ([Yoann-Abbes](https://github.com/Yoann-Abbes))
- [ [#579](#579) ] Add event type to document notification   ([Aschen](https://github.com/Aschen))
- [ [#578](#578) ] Convert bulk controller to TS   ([Aschen](https://github.com/Aschen))
- [ [#574](#574) ] Adds a specific error when the request is too big to use the GET verb    ([Aschen](https://github.com/Aschen))
---
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