Repository: mapbox/mapbox-studio-classic

Issue #645: intermittent crashes while zooming/panning 
Created: 2014-08-12T07:46:46Z
I'm getting intermittent crashes while browsing maps  (OS X):
Error: Can't set headers after they are sent.
    at ServerResponse.OutgoingMessage.setHeader (http.js:689:11)
    at ServerResponse.res.setHeader (/Applications/Mapbox Studio.app/Contents/Resources/app/node_modules/express/node_modules/connect/lib/patch.js:59:22)
    at ServerResponse.res.set.res.header (/Applications/Mapbox Studio.app/Contents/Resources/app/node_modules/express/lib/response.js:518:10)
    at ServerResponse.res.cookie (/Applications/Mapbox Studio.app/Contents/Resources/app/node_modules/express/lib/response.js:590:8)
    at done (/Applications/Mapbox Studio.app/Contents/Resources/app/lib/server.js:160:17)
    at cb (/Applications/Mapbox Studio.app/Contents/Resources/app/node_modules/tilelive-vector/index.js:124:20)
    at sourceGet (/Applications/Mapbox Studio.app/Contents/Resources/app/node_modules/tilelive-vector/backend.js:95:66)
    at /Applications/Mapbox Studio.app/Contents/Resources/app/lib/cache.js:44:17
    at /Applications/Mapbox Studio.app/Contents/Resources/app/node_modules/tilejson/lib/tilejson.js:141:25
    at done (/Applications/Mapbox Studio.app/Contents/Resources/app/node_modules/tilejson/lib/tilejson.js:214:13)
or
http.js:689
    throw new Error('Can\'t set headers after they are sent.');
    ^
Error: Can't set headers after they are sent.
    at ServerResponse.OutgoingMessage.setHeader (http.js:689:11)
    at ServerResponse.res.setHeader (/Applications/Mapbox Studio.app/Contents/Resources/app/node_modules/express/node_modules/connect/lib/patch.js:59:22)
    at ServerResponse.res.set.res.header (/Applications/Mapbox Studio.app/Contents/Resources/app/node_modules/express/lib/response.js:518:10)
    at ServerResponse.res.cookie (/Applications/Mapbox Studio.app/Contents/Resources/app/node_modules/express/lib/response.js:590:8)
    at done (/Applications/Mapbox Studio.app/Contents/Resources/app/lib/server.js:166:13)
    at /Applications/Mapbox Studio.app/Contents/Resources/app/node_modules/tilelive-vector/index.js:192:28

Duplicate issue #730: Can't set headers after they are sent
Created: 2014-08-27T02:04:32Z
Mapbox Studio @ http://localhost:3000/
[libprotobuf ERROR google/protobuf/message_lite.cc:123] Can't parse message of type "mapnik.vector.tile" because it is missing required fields: (cannot determine missing fields for lite message)
http.js:689
throw new Error('Can't set headers after they are sent.');
^
Error: Can't set headers after they are sent.
at ServerResponse.OutgoingMessage.setHeader (http.js:689:11)
at ServerResponse.res.setHeader (/Users/elankey/Documents/GitHub/mapbox-studio/node_modules/express/node_modules/connect/lib/patch.js:59:22)
at ServerResponse.res.set.res.header (/Users/elankey/Documents/GitHub/mapbox-studio/node_modules/express/lib/response.js:518:10)
at ServerResponse.res.cookie (/Users/elankey/Documents/GitHub/mapbox-studio/node_modules/express/lib/response.js:590:8)
at done (/Users/elankey/Documents/GitHub/mapbox-studio/lib/server.js:172:17)
at cb (/Users/elankey/Documents/GitHub/mapbox-studio/node_modules/tilelive-vector/index.js:124:20)
at /Users/elankey/Documents/GitHub/mapbox-studio/node_modules/tilelive-vector/backend.js:161:29

Closing comment (2014-08-27T16:19:30Z): Duplicate of #645