mapbox / mapbox-studio-classic

https://www.mapbox.com/mapbox-studio/
BSD 3-Clause "New" or "Revised" License
1.14k stars 229 forks source link

Error when canceling a source upload to mapbox #565

Open kottmann opened 10 years ago

kottmann commented 10 years ago

I tried to upload a source to mapbox, after sometime I decided to click on "Cancel". Just after pressing it the following error was written to the console:

Error: Can't set headers after they are sent. at ServerResponse.OutgoingMessage.setHeader (http.js:689:11) at ServerResponse.res.setHeader (/home/xyz/git/tm2/node_modules/express/node_modules/connect/lib/patch.js:59:22) at next (/home/xyz/git/tm2/node_modules/express/node_modules/connect/lib/proto.js:153:13) at pass (/home/xyz/git/tm2/node_modules/express/lib/router/index.js:107:24) at nextRoute (/home/xyz/git/tm2/node_modules/express/lib/router/index.js:100:7) at callbacks (/home/xyz/git/tm2/node_modules/express/lib/router/index.js:164:11) at load (/home/xyz/git/tm2/lib/middleware.js:48:52) at /home/xyz/git/tm2/lib/middleware.js:63:13 at /home/xyz/git/tm2/lib/source.js:364:29 at Get. (/home/xyz/git/tm2/node_modules/tilejson/node_modules/get/lib/node-get/node-get.js:287:25)

springmeyer commented 10 years ago

perhaps related: #645