I have a production server (ubuntu) where a user fills out and submits a form (multipart) to create or update a record. Now sometimes, when I try to use req.allParams(), I get an object with incomplete data.
Let's say that this is what I usually get:
data: {
id: '58155',
name: 'The Gallery Name',
email: 'gallery@gmail.com',
phone: '(+54911)68460005',
url: 'www.theurl.com',
workingHours: 'Tuesday - Friday 3 - 8 pm',
artists: ['58350', '15503', '58346', '58347', '58348', '58349'],
locations: [{
country: 1,
state: null,
city: 45,
zip: '33175',
address: '' }
],
showOnGuide: true,
preferredLanguage: 'en',
events: [1, 4, 5]
}
};
But from time to time I get:
data: {
id: '58155',
name: 'The Gallery Name',
email: 'gallery@gmail.com',
phone: '(+54911)68460005',
url: 'www.theurl.com',
workingHours: 'Tuesday - Friday 3 - 8 pm',
artists: ['58350', '15503', '58346', '58347', '58348', '58349']
}
};
I checked the forms and they are correct, so it’s obvious that only the last keys (form fields) are missing, so I assume this could be due to some POST timeout?
Just to be clear, that’s how I get the data before formatting on my part and even posting a log sails/node_modules/skipper/index.js
MultipartBodyParser(req, res, function(err) {
if (err) return next(err);
console.log(req.body);
}
. , , , , 1 30 , , .
, .
, , , , , , , , .
- ? , , .
:
:
: (NetBalancer), 1 /, , t , , , , , NetBalancer.
Update:
0.12.1 node 5.8.0, .