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

ERR_STREAM_PREMATURE_CLOSE error on early destroy() when downloading ndjson #9

Closed
sarahmcdougall opened this issue Jan 4, 2023 · 2 comments

Comments

@sarahmcdougall
Copy link

When testing the bulk data client with the SMART Bulk Data Server, I receive the following error from the CLI: Error [ERR_STREAM_PREMATURE_CLOSE]: Premature close.

To reproduce, use the following parameters:

See the screenshot below:
Screen Shot 2023-01-04 at 10 43 18 AM

For reference, I am using Node.js version 18.12.0. I do not receive this error on Node.js version 16. I believe this issue may be related to the got dependency upgrade to version 11.8.6. I commented on this open Github issue to bring awareness of this issue to the got team.

@vlad-ignatov
Copy link
Contributor

Thanks @sarahmcdougall, I doubt we are dealing with got issue in this case. I pushed some changes that should hopefully fix this issue. The NodeJS version shouldn't matter. Can you verify if it works for you?

@sarahmcdougall
Copy link
Author

Apologies for the late reply - the changes fixed the issue for me! Thank you!

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

No branches or pull requests

2 participants