This GCS data store goes directly to the GCS resumable API, bypassing the google cloud SDK
Thanks for working on tus @m0rganic! I'm hesitant to replace the SDK that Google maintains to use GCS, since we'll have to keep up to date with future improvements ourselves. Have you considered submitting a PR to google-cloud then we can bump the version here when it gets merged?
There shouldn't be much risk to that since we're going directly to the google cloud JSON API and we can always have the GCSDataStore to fall back on. On Thu, Feb 23, 2017 at 06:12 Ben Stahl [email protected] wrote:
Thanks for working on tus @m0rganic https://github.com/m0rganic! I'm hesitant to replace the SDK that Google maintains to use GCS, since we'll have to keep up to date with future improvements ourselves. Have you considered submitting a PR to google-cloud then we can bump the version here when it gets merged?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/tus/tus-node-server/pull/67#issuecomment-281976083, or mute the thread https://github.com/notifications/unsubscribe-auth/AAgD2xPXMpGH7Cwjh1XSyXcvXdYdX4sDks5rfXeYgaJpZM4MGoSl .
That being said I'll check with the gcloud node maintainers and see if I can help out there. Although they may be resistant to artificially delaying the write operation to ensure filesize is reported properly - that seems much more like a tus-node-server requirement becasue its an artifact of how the client and server intereact when data is being chunked from client.
Does this fix the 409 conflict errors that I'm getting after a chunk of data has been uploaded but google is still reporting a file size of 0?
Yes I believe so
On Wed, May 24, 2017 at 9:40 PM Nathan Friedly [email protected] wrote:
Does this fix the 409 conflict errors that I'm getting after a chunk of data has been uploaded but google is still reporting a file size of 0?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/tus/tus-node-server/pull/67#issuecomment-303906777, or mute the thread https://github.com/notifications/unsubscribe-auth/AAgD2xW7ATdLHkhrpr5NUZlQS3Gnwgmfks5r9OobgaJpZM4MGoSl .
Is there any way I can test this locally (aside from copying the changes over one-by-one)? I'd normally just npm install from your fork, but GitHub can't seem to find it:
you should be able to roll with this pretty easily...
https://gist.github.com/m0rganic/dab293011ee328e45427cc0b06ca3076
Thanks for adding this, but would #90 solve your problems @m0rganic ?