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

Cannot read properties of null (reading, 'body'). regression in 2.6.7 #1700

Closed
shannah opened this issue Jan 16, 2023 · 6 comments
Closed

Cannot read properties of null (reading, 'body'). regression in 2.6.7 #1700

shannah opened this issue Jan 16, 2023 · 6 comments

Comments

@shannah
Copy link

shannah commented Jan 16, 2023

Just reporting this bug upstream that we've run across in crowdin.

crowdin/crowdin-cli#523

Downloading java runtime environment for version 11
/Users/shannah/.npm/_npx/e624e2fddcf46226/node_modules/node-fetch/lib/index.js:1519
			destroyStream(response.body, err);
			                       ^

TypeError: Cannot read properties of null (reading 'body')
    at /Users/shannah/.npm/_npx/e624e2fddcf46226/node_modules/node-fetch/lib/index.js:1519:27
    at IncomingMessage.<anonymous> (/Users/shannah/.npm/_npx/e624e2fddcf46226/node_modules/node-fetch/lib/index.js:1749:6)
    at Object.onceWrapper (node:events:641:28)
    at IncomingMessage.emit (node:events:527:28)
    at emitCloseNT (node:internal/streams/destroy:138:10)
    at processTicksAndRejections (node:internal/process/task_queues:82:21)

This issue doesn't appear to happen using 2.6.7

To reproduce, you can just create an empty directory and run npx @crowdin/cli@3.9.2

@shannah shannah added the bug label Jan 16, 2023
@Fonnte
Copy link

Fonnte commented Jan 18, 2023

yeah, i also experience this after updating to 2.6.8

TypeError: Cannot read properties of null (reading 'body') at /user/production/node_modules/node-fetch/lib/index.js:1519:27 at IncomingMessage.<anonymous> (/user/production/node_modules/node-fetch/lib/index.js:1749:6) at Object.onceWrapper (node:events:627:28) at IncomingMessage.emit (node:events:513:28) at emitCloseNT (node:internal/streams/destroy:132:10) at process.processTicksAndRejections (node:internal/process/task_queues:81:21)

@Fleker
Copy link

Fleker commented Jan 19, 2023

I've run into this on 2.6.8 as well. After downgrading to 2.6.7 things worked as expected.

ben-poole added a commit to Radioplayer/isomorphic-fetch that referenced this issue Jan 20, 2023
@abhinav-saini
Copy link

An old bug in case of a redirect seems to be reintroduced in this version 2.6.8 - #1222

@Danrejk
Copy link

Danrejk commented Jan 23, 2023

I also have this issue

@SelinR
Copy link

SelinR commented Jan 24, 2023

Also met such problem. Returned to 2.6.7 version - and it fixed it.

@github-actions
Copy link

🎉 This issue has been resolved in version 2.6.9 🎉

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
Projects
None yet
Development

No branches or pull requests

7 participants