@pasib when you concatenated the object, it got stringified.
Try console.log('test', postData); 🙂
Hi there,
Can you please provide the following information to help us debug?
git rev-parse HEAD
from the root of your NodeBB foldernpm ls nodebb-theme-persona
Thanks!
This rings a bell, I think I fixed this recently. Can you update to latest 0.7x and latest lavender and let me know?
EDIT: lav's dependant on vanilla as well so update that too please
I found the error is come from favouriteCommand, and added some debug output:
function favouriteCommand(socket, command, eventName, notification, data, callback) {
winston.info('command=`' + JSON.stringify(command) );
winston.info('eventName=`' + JSON.stringify(eventName) );
winston.info('notification=`' + JSON.stringify(notification) );
winston.info('data=`' + JSON.stringify(data) );
if(!data || !data.pid || !data.room_id) {
winston.error('favouriteCommand invalid-data');
return callback(new Error('[[error:invalid-data]]'));
}
the debug output as below:
4/6 03:55 [387] - info: command=`"upvote"
4/6 03:55 [387] - info: eventName=`"voted"
4/6 03:55 [387] - info: notification=`"notifications:upvoted_your_post_in"
4/6 03:55 [387] - info: data=`{"pid":"85","room_id":""}
4/6 03:55 [387] - error: favouriteCommand invalid-data
Does anyone have idea what's going wrong?