tilemill-project / tilemill

TileMill is a modern map design studio
https://tilemill-project.github.io/tilemill/
BSD 3-Clause "New" or "Revised" License
3.11k stars 527 forks source link

intermittent, but frequent, forbidden errors in safari #632

Closed springmeyer closed 13 years ago

springmeyer commented 13 years ago

Often when saving a stylesheet I will get "forbidden". Trying to re-save a second time works. Right now I don't see a pattern to this error - it does not happen on every first save after some change - so I wonder about some race condition.

willwhite commented 13 years ago

I'm not seeing this on Safari 5.0.5 after doing repeated saves with minor adjustments. Maybe there is a particular change that triggers this, or it only occurs in newer versions of Safari.

springmeyer commented 13 years ago

Now I see this when creating a project. I think earlier today I thought this was a download timeout, but its likely this. The project actually gets created okay, but safari fails with "forbidden" and the screen locks up. Refreshing the browser reveals that the project is actually there just fine.

springmeyer commented 13 years ago

btw, I'm running Safari 5.1 (6534.50 on 10.6

dmitrig01 commented 13 years ago

{"stack":"Error: Forbidden\n at Object.handle (/Users/dmitri/ds/tilemill/node_modules/bones/server/middleware.js:50:18)\n at next (/Users/dmitri/ds/tilemill/node_modules/bones/node_modules/express/node_modules/connect/lib/http.js:198:15)\n at Object.cookieParser as handle\n at next (/Users/dmitri/ds/tilemill/node_modules/bones/node_modules/express/node_modules/connect/lib/http.js:198:15)\n at IncomingMessage. (/Users/dmitri/ds/tilemill/node_modules/bones/node_modules/express/node_modules/connect/lib/middleware/bodyParser.js:74:9)\n at IncomingMessage.emit (events.js:61:17)\n at HTTPParser.onMessageComplete (http.js:133:23)\n at Socket.ondata (http.js:1026:22)\n at Socket._onReadable (net.js:683:27)\n at IOWatcher.onReadable as callback","message":"Forbidden","status":403}

dmitrig01 commented 13 years ago

Fixed in bones