-
Notifications
You must be signed in to change notification settings - Fork 603
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
gcloud writestreams no longer working when piping stdout from GraphicsMagick #889
Comments
Thanks! I'll look into this right away. |
I was able to use the same code and get the file to upload successfully. To get around this, you can turn off validation, or limit it to a specific type. Playing with these options might help debugging where the problem is happening. To do that: // Turn off all data integrity checks
var wr = dst.createWriteStream({ validation: false });
// Use just md5
var wr = dst.createWriteStream({ validation: 'md5' });
// Use just crc32c
var wr = dst.createWriteStream({ validation: 'crc32c' }); If you try this, please let me know which worked (if any), and confirm that the file that ended up in the bucket is properly formed. |
this seems odd but-> validation: false (fails) |
I think I caught the bug, though I'm not sure why it Can you try out my patch branch to see if it works: $ npm install --save stephenplusplus/gcloud-node#spp--storage-stream-fix |
I can see why it would have failed when validation is set to false, but like you said the validation default is true when you don't specify... (and why would the stdout stream from GraphicsMagick make any difference?) ANYWAY... this fix works ;-) |
Yeah, weird. Well, PR coming soon after I write some tests. Thanks for letting us know about this issue! |
This PR was generated using Autosynth. 🌈 Synth log will be available here: https://source.cloud.google.com/results/invocations/186c39d8-938f-497c-8229-46ff7b78fe4d/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) Source-Link: googleapis/synthtool@c6706ee Source-Link: googleapis/synthtool@b33b0e2 Source-Link: googleapis/synthtool@898b38a
GraphicsMagick lib:
http://aheckmann.github.io/gm/
ex:
works in release 20 and older(using complete event); breaks in release 21, finish doesn't seem to trigger, error is fired with->
{ [Error: The uploaded data did not match the data from the server. As a precaution, the file has been deleted. To be sure the content is the same, you should try uploading the file again.] code: 'FILE_NO_UPLOAD', errors: [ null ] }
The text was updated successfully, but these errors were encountered: