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
after upgrading to "axios": "^1.2.1", #5357
Comments
+1 same error message, also 1.2.1 |
I am seeing the same error in version "headers": {
"Accept-Encoding": "gzip"
} |
Duplicate of #5346 |
Same error |
This library has been terribly instable recently, we have migrated away from it .... |
This was referenced Dec 9, 2022
Will get the fix for this out asap |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
AxiosError: unexpected end of file
at AxiosError.from (C:\Users\samqw\Documents\scrapping\sense\node_modules\axios\dist\node\axios.cjs:785:14)
at BrotliDecompress.handleStreamError (C:\Users\samqw\Documents\scrapping\sense\node_modules\axios\dist\node\axios.cjs:2696:29)
at BrotliDecompress.emit (node:events:525:35)
at emitErrorNT (node:internal/streams/destroy:151:8)
at emitErrorCloseNT (node:internal/streams/destroy:116:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
code: 'Z_BUF_ERROR',
errno: -5,
config: {
transitional: {
silentJSONParsing: true,
forcedJSONParsing: true,
clarifyTimeoutError: false
},
adapter: [ 'xhr', 'http' ],
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
env: { FormData: [Function], Blob: [class Blob] },
validateStatus: [Function: validateStatus],
headers: AxiosHeaders {
Accept: 'application/json, text/plain, /',
'User-Agent': 'axios/1.2.1',
'Accept-Encoding': 'gzip, compress, deflate, br'
},
method: 'get',
url: 'https://www.sense.com.tr/kaban-469',
data: undefined
},
To Reproduce
const response = await axios.get("https://www.sense.com.tr/kaban-469");
const outerhtml = response.data;
Code snippet
No response
Expected behavior
this snippet code above was working perfectly on "axios": "^0.21.0", before upgrading to "axios": "^1.2.1"
Axios Version
No response
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
The text was updated successfully, but these errors were encountered: