You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Attempting to save an image-rich presentation causes an error from Mongo #69
The error that shows up in Mongo's log is vague...
Assertion: 10334:Invalid BSONObj size: 21942433
... but it looks like Mongo has a maximum document size the defaults to 16MB and I might be hitting due to having a lot of embedded images.
Butter keeps waiting for a response from Mongo that never comes, so it never closes the connection to the browser, causing a silent failure from the user's perspective.
This works, and now I'm confused why the failure left a connection open. I'd think that .save() would be async and return instantly, so res.json(...) would be called and close the connection in either case. Maybe it's not async? Weird.
Activity
banksJeremy commentedon Jun 14, 2012
Inside the handler for
app.post('/api/project/:id?', ...)inbutter/cornfield/app.jsI replacedwith
to fail better. (banksJeremy/butter@4eececb)
This works, and now I'm confused why the failure left a connection open. I'd think that
.save()would be async and return instantly, sores.json(...)would be called and close the connection in either case. Maybe it's not async? Weird.banksJeremy commentedon Jun 18, 2012
Filed upstream: t1603