-
Notifications
You must be signed in to change notification settings - Fork 8
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
Files Fail to Download #10
Comments
I suspect this may be an issue with versions of node from v16.10.0 up to, but not including, v18.0.0 based on nodejs/node#40191. Versions higher than v18.0.0 suffer from Issue #9. Node 16 no longer receives active support and will only receive security updates until Sept 2023. EDIT: Still seeing empty downloads on Node 16.9.1 and 16.9.0 |
More context based on some investigation of the changes in 470f6f0.
with the switch to |
Thanks @radamson, your investigation was very helpful! I pushed some changes that should hopefully fix this issue. The NodeJS version shouldn't matter. Can you verify if it works for you now? |
Tested out the updated main branch and the issue appears to be resolved. Thanks! |
It appears that a recent commit caused a regression resulting in empty bulk data download files.
I was able to use git bisect to trace the regression to commit 8b642be. Upon further investigation I noticed that the TypeScript is not transpiled at every step, which means the error could be in a different commit. 3f8d2e3 needs a minor modification to transpile (addingfile?: string
to theLoggingOptions
type), but otherwise works.470f6f0 appears to be the true culprit.
Here is the command I used:
node . -f https://bulk-data.smarthealthit.org/eyJlcnIiOiIiLCJwYWdlIjoxMDAwMCwiZHVyIjoxMCwidGx0IjoxNSwibSI6MSwic3R1IjozLCJkZWwiOjB9/fhir -g 048d4683-703a-4311-963d-48e515a6372b
The console will show:
But, the files in the
download
directory will be empty:Tested with node v17.19.1.
The text was updated successfully, but these errors were encountered: