AxiosError: unexpected end of file
Problem
Describe the bug AxiosError: unexpected end of file Was not present before 1.2.1 To Reproduce _No response_ Code snippet _No response_ Expected behavior _No response_ Axios Version 1.2.1 Adapter Version _No response_ Browser _No response_ Browser Version _No response_ Node.js Version _No response_ OS _No response_ Additional Library Versions _No response_ Additional context/Screenshots _No response_
Error Output
Error: unexpected end of file
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Solution: AxiosError: unexpected end of file
I've been having a similar issue downgrading to axios v1.2.0 will fix the problem Something is broken with Brotli decompression and I think the culprit is somewhere in this merge https://github.com/axios/axios/pull/5306 An alternative if you don't want to downgrade right now is to force an encoding header with [code block] This should make the response use something other than the "br" brotli
Trust Score
9 verifications
- 1
I've been having a similar issue downgrading to axios v1.2.0 will fix the proble
I've been having a similar issue downgrading to axios v1.2.0 will fix the problem
- 2
Something is broken with Brotli decompression and I think the culprit is somewhe
Something is broken with Brotli decompression and I think the culprit is somewhere in this merge https://github.com/axios/axios/pull/5306
- 3
An alternative if you don't want to downgrade right now is to force an encoding
An alternative if you don't want to downgrade right now is to force an encoding header with
- 4
This should make the response use something other than the "br" brotli compressi
This should make the response use something other than the "br" brotli compression encoding
Validation
Resolved in axios/axios GitHub issue #5346. Community reactions: 92 upvotes.
Verification Summary
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep