Skip to content

etag problem - argument entity must be string or Buffer #40

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

Open
sercaneraslan opened this issue Sep 11, 2014 · 9 comments · May be fixed by GeneralX1/gulp-webserver#4
Open

etag problem - argument entity must be string or Buffer #40

sercaneraslan opened this issue Sep 11, 2014 · 9 comments · May be fixed by GeneralX1/gulp-webserver#4

Comments

@sercaneraslan
Copy link

Hello,

I running gulp-webserver and return this error:

/Users/username/Desktop/project/node_modules/gulp-webserver/node_modules/serve-static/node_modules/send/node_modules/etag/index.js:55
throw new TypeError('argument entity must be string or Buffer')
^
TypeError: argument entity must be string or Buffer
at etag (/Users/username/Desktop/project/node_modules/gulp-webserver/node_modules/serve-static/node_modules/send/node_modules/etag/index.js:55:11)
at SendStream.setHeader (/Users/username/Desktop/project/node_modules/gulp-webserver/node_modules/serve-static/node_modules/send/index.js:724:15)
at SendStream.send (/Users/username/Desktop/project/node_modules/gulp-webserver/node_modules/serve-static/node_modules/send/index.js:500:8)
at /Users/username/Desktop/project/node_modules/gulp-webserver/node_modules/serve-static/node_modules/send/index.js:630:12
at Object.oncomplete (fs.js:97:15)

My Gulp File:

var gulp = require('gulp'),
webserver = require('gulp-webserver');

gulp.task('webserver', function() {
gulp.src('build')
.pipe(webserver({
livereload: true,
port: 9001,
open: true
}));

gulp.task('default', [
'webserver'
]);

@robtarr
Copy link

robtarr commented Sep 12, 2014

+1 I'm having the exact same problem.

@robtarr
Copy link

robtarr commented Sep 12, 2014

Commenting out line 55 of gulp-webserver/node_modules/serve-static/node_modules/send/node_modules/etag/index.js fixed the problem for me, but I'm not entirely sure of the implications.

Line 31 states that the entity can be string|Buffer|Stats, (it is a Stats object) so this seems inconsistent.

@litek
Copy link

litek commented Sep 13, 2014

I had the same problem with node 0.11.13, works fine with 0.10.26 however.

@akiva
Copy link

akiva commented Sep 17, 2014

+1 on this error. Any ETA for a proper solution?

@mck-
Copy link

mck- commented Sep 20, 2014

+1 same here

@luckylooke
Copy link

+1

3 similar comments
@xeecos
Copy link

xeecos commented Jun 24, 2015

+1

@ivankennethwang
Copy link

+1

@timendez
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants