tus-node-server icon indicating copy to clipboard operation
tus-node-server copied to clipboard

This GCS data store goes directly to the GCS resumable API, bypassing the google cloud SDK

Open m0rganic opened this issue 8 years ago • 8 comments

m0rganic avatar Feb 20 '17 21:02 m0rganic

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?

bhstahl avatar Feb 23 '17 12:02 bhstahl

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 .

m0rganic avatar Feb 23 '17 12:02 m0rganic

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.

m0rganic avatar Feb 23 '17 12:02 m0rganic

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?

nfriedly avatar May 25 '17 02:05 nfriedly

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 .

m0rganic avatar May 25 '17 02:05 m0rganic

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:

screen shot 2017-05-25 at 10 07 43 am

nfriedly avatar May 25 '17 14:05 nfriedly

you should be able to roll with this pretty easily...

https://gist.github.com/m0rganic/dab293011ee328e45427cc0b06ca3076

m0rganic avatar May 26 '17 02:05 m0rganic

Thanks for adding this, but would #90 solve your problems @m0rganic ?

bhstahl avatar Feb 21 '18 14:02 bhstahl