Comments (21)
Can anyone verify that this is an issue? Confirm/Deny?
from grunt-contrib-connect.
Confirmed. Looks like it was a bug in the connect version we were using. Upgraded connect and seemed to work fine.
Try out 0.2.0 ;)
from grunt-contrib-connect.
Still seems to be broken :( We have a video coming soon to demonstrate...when vimeo gets doen processing it'll be here... https://vimeo.com/61268804
Video curtesy of @stephenplusplus
from grunt-contrib-connect.
Sorry, forgot to npm publish
:/
It's up now.
from grunt-contrib-connect.
Hey @sindresorhus, I actually tested with 0.2.0 by manually cloning it into daspecsters-example-project/node_modules. npm installed, which got [email protected], and then grunt server'd the project. Still clipped the .html at 40k.
Same result by updating the project's /package.json with 0.2.0 for grunt-contrib-connect.
from grunt-contrib-connect.
Alright, so I've narrowed it down to the livereloadSnippet, no idea why it worked for me though, might be some unclosed connection or something. Anyway, seems like the html is cut of because the content-length
is never set to more than 40kb (that being the max buffer size).
https://github.com/gruntjs/grunt-contrib-livereload/blob/master/lib/utils.js
Can you open an issue on grunt-contrib-livereload?
from grunt-contrib-connect.
Brilliant! I will do that right now!
https://github.com/gruntjs/grunt-contrib-livereload/issues/25
Thanks for all your help too btw!
from grunt-contrib-connect.
I'm still having this issue with the latest grunt-contrib-connect and using livereload: true
. Anybody else?
from grunt-contrib-connect.
same problem here... does not work with grunt-contrib-connect 0.2.0 and 0.5.0
from grunt-contrib-connect.
Would you guys mind opening the issue on https://github.com/intesso/connect-livereload? That is the underlying library that handles this part of the task now. Thanks!
from grunt-contrib-connect.
one thing I just noticed is that when I npm install grunt-contrib-connect, I get connect-livereload 0.2.0, but in the git repo, I see connect-livereload: 0.3.0.
from grunt-contrib-connect.
confirmed that when connect-livereload 0.3.0 is used the issue goes away. So I think the fix is to publish a new version of grunt-contrib-connect to npm with connect-livereload ~0.3.0 as a dependency.
Just an FYI, if you run npm info grunt-contrib-connect
it shows:
dependencies:
{ connect: '~2.7.11',
'connect-livereload': '~0.2.0',
open: '0.0.4' },
from grunt-contrib-connect.
if you push a new version, please use the latest one of connect-livereload: 0.3.1
from grunt-contrib-connect.
Ah strange. Ok reopening to remind me to do this. Thanks!
from grunt-contrib-connect.
Fixed on 0.6.0
.
from grunt-contrib-connect.
Still getting this bug on the latest grunt-contrib-connect
@0.7.1 (it depends on 'connect-livereload': '~0.3.0')
The use case is a html view file being served by AngularJS using XHR. The file served is around 100 KBytes and gets truncated at the end.
from grunt-contrib-connect.
This is still an issue for us, has this been looked into further?
from grunt-contrib-connect.
Same here, our pages are being cut and we're working with grunt contrib watch (0.6.1) and connect (0.9.0). Should we roll back to 0.6.0?
from grunt-contrib-connect.
It once was an issue with connect-livereload
, but it should have been fixed... I quickly checked the versions: grunt-contrib-connect
0.9.0 uses connect-livereload
0.5.0 (the latest one would be 0.5.0), but this bug was supposed to be fixed in 0.5.0 already.
intesso/connect-livereload@v0.5.0...v0.5.2
there is a test with large files (~2.9MB):
https://github.com/intesso/connect-livereload/blob/master/test/app.render.large-file.js
anyway, can you send me a test file or add a test case to connect-livereload?
from grunt-contrib-connect.
I just updated connect-livereload
's test dependencies and added another test case with connect and large files. v0.5.3.
The tests run with:
"connect": "^3.3.4",
"express": "~4.11.2",
from grunt-contrib-connect.
do you use some other middleware with size limits? e.g.:
https://github.com/expressjs/body-parser#limit
from grunt-contrib-connect.
Related Issues (20)
- Access to Server Instance in Middleware Function
- Can this connect from a remote server to either the web or to my local machine?
- ExperimentalWarning: The http2 module is an experimental API. HOT 6
- forwarding grunt connect to different url HOT 2
- DES3 is a weak cipher
- warning corifeus-builder-angular > grunt-contrib-connect > [email protected]: Use the built-in module in node 9.0.0 or newer, instead HOT 10
- Can I force TLS 1.2? HOT 2
- Can we use this with helmet? HOT 1
- Changing content type of files HOT 2
- Is it possible to configure the mime type returned by grunt-contrib-connect? HOT 1
- Options are just being ignored HOT 1
- This project's build is currently broken. HOT 1
- How to preview a Markdown file?
- Port parameter passed in as string leads to misleading error HOT 1
- Upgrade morgan package, CVE-2019-5413
- Cannot access Angular App hosted on CentOS 7 VM in Windows 10
- Security vulnerability GHSA-6fc8-4gx4-v693 affecting "ws" package (nested dependency) HOT 2
- opn dependency was renamed to `open` HOT 1
- `node-http2` is deprecated. Use node's built in `http2` HOT 6
- Fix vulnerability from websocket dependency: Denial of Service HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grunt-contrib-connect.