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

fix: temporarily disable gzipping until axios bug fix is released #24

Merged
merged 1 commit into from May 21, 2019

Conversation

dpopp07
Copy link
Member

@dpopp07 dpopp07 commented May 17, 2019

Currently, 204 responses (no content) get flagged as errors because axios chokes when it tries to unzip an empty response.

A fix for this bug has been merged (see PR) but has not been released yet. Since it looks like axios is not doing patch releases for bug fixes right now but is waiting for their next big release (0.19), we need to temporarily disable gzipping in the SDK.

We could do this only for operations that return a 204 but that would require generator changes so I think that would be more work than necessary, considering a fix for the bug seems to be in the somewhat near future.

If someone thinks that it would be worth it to do that, I'm happy to do it. Just let me know

@codecov
Copy link

codecov bot commented May 17, 2019

Codecov Report

Merging #24 into master will decrease coverage by <.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #24      +/-   ##
==========================================
- Coverage   96.17%   96.16%   -0.01%     
==========================================
  Files           7        7              
  Lines         418      417       -1     
  Branches      125      124       -1     
==========================================
- Hits          402      401       -1     
  Misses         15       15              
  Partials        1        1
Impacted Files Coverage Δ
lib/requestwrapper.ts 100% <ø> (ø) ⬆️

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 fdfbf14...38b735a. Read the comment docs.

@dpopp07 dpopp07 merged commit b26a310 into master May 21, 2019
@dpopp07 dpopp07 deleted the disable-gzipping branch May 21, 2019 15:59
@dpopp07
Copy link
Member Author

dpopp07 commented May 21, 2019

🎉 This PR is included in version 0.2.6 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

None yet

2 participants