-
Notifications
You must be signed in to change notification settings - Fork 367
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
Fallback to non-resumable not working when $HOME is not writable #181
Comments
What version of GCS & code to reproduce? |
Code: import * as express from 'express';
const Storage = require('@google-cloud/storage');
const config = {
projectId: $INSERT_YOUR_PROJECT_ID,
bucketName: $INSERT_YOUR_BUCKET_NAME
};
const storage = new Storage({projectId: config.projectId});
const BUCKET_URL = `https://storage.googleapis.com/${config.bucketName}`;
const app = express();
app.post('/upload', async (req, res) => {
const id = 'a-random-uuid';
const file = storage.bucket(config.bucketName).file(id);
req.pipe(file.createWriteStream({gzip: true, public: true}))
.on('error',
(err: Error) => {
res.status(500).send({err});
})
.on('finish', () => {
const rawUrl = `${BUCKET_URL}/${id}`;
res.status(200).send({rawUrl});
});
});
app.listen(8080, (err: Error) => {
if (err) {
throw err;
}
console.log('Server listening on port 8080');
}); Hit it:
|
The expected work-around of passing This is a blocker for a product launch, and no work-around is known at this point. Can the priority be increased? |
Looks like we haven't released the behavior you're expecting: #165 @frankyn @jonparrott @alexander-fenster -- advice on how to proceed, please! Would you like a new release without KMS so that this product launch is unblocked, or wait for KMS? |
Let's wait for KMS unless this is a P0 bug. |
Wait on merging KMS, I don't have a recommendation on cutting release for this bug. |
Is cutting a release expensive?
…On Fri, Apr 27, 2018, 10:46 AM Frank Natividad ***@***.***> wrote:
Wait on merging KMS, I don't have opinions on cutting release for this bug.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#181 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAE0qZOSemjTMFe8LjrO0gL9ZgY8pAnBks5ts1mMgaJpZM4TmPMs>
.
|
I am personally blocked on this bug as well. What's the ETA on KMS getting into a release? |
@stephenplusplus since we haven't merged KMS stuff, can we go ahead and cut a release? |
gentle ping |
Blocked on #190 |
1.7.0 released with this feature :) |
The docs claim:
https://cloud.google.com/nodejs/docs/reference/storage/1.6.x/File#createWriteStream
However, I am getting the following error in an environment where
$HOME
is not writable.And the upload fails. The fallback to non-resumable uploads is not working as claimed in the docs.
The text was updated successfully, but these errors were encountered: