-
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
No events are emitted creating temporary file fails #45
Comments
Hi @selaux, thanks for the excellent report and reproduction. However, can you check which version of When I attempt to reproduce this, I get:
|
Actually, scratch that - I see my error there 🤦🏼. Let me look again. |
Excellent catch. Any failures from within initialization would have caused this hanging. Please see #46 which should resolve this. If this looks good to you, I'll merge release it as part of version 7 in May. |
Looks good to me. Thanks for the quick response. |
I am currently debugging weird behavior with
graphql-upload
where requests just get stuck indefinitely (not sure if I also need to open an issue there). I narrowed the issue down to theos.tmpdir()
returned by Node not being present on the machine / in the docker image. In this casefs-capacitor
does not seem to forward any information about this to the stream created bycreateReadStream
and just silently not emitting any events at all. This also appies for any cases wherefs.open
fails, e.g. permission issues. Seems like with this behavior this error can never be handled (e.g. by graphql-upload). Is this intended behavor?Reproduction:
SOME EXISTING FILE
string in the example below with a path to an existing filenode sample.js
: Events are emitted as expected.TMPDIR=/tmp/definitely-does-not-exist sample.js
: No events are emitted at all, Node just terminates.The text was updated successfully, but these errors were encountered: