sul distacco dei dati al mio expressjs app, questo è quello che sto ottenendo:checksum errata per oggetto liberato
node(58287,0x7fff771ad960) malloc: *** error for object 0x7ff8a8600c58: incorrect
checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug
Abort trap: 6
Qualsiasi idea del perché?
Aggiornamento:
Ecco il codice:
lato client:
$.ajax({
url: 'user/' + id,
type: 'POST',
dataType:'JSON',
data: JSON.stringify(data),
success: function(response){
console.log(response);
}
});
lato server:
app.post('/user/:id', function(req,res){
var id = req.params.id;
console.log(data);
});
.210
Quando uso JSON.stringify sul lato client, sto colpendo questo strano errore:
node(58461,0x7fff771ad960) malloc: * error for object 0x7fa861d00e28: incorrect checksum for freed object - object was probably modified after being freed. * set a breakpoint in malloc_error_break to debug Abort trap: 6
Quando non uso JSON.stringify sul lato client, ottengo 'null 'stringhe sul lato server.
Qualche idea su cosa sto facendo male?
Per curiosità, quale versione di Node stai usando? –
v0.6.12 su un mac – Rajat