Hello,
I am having trouble with the second mongoDB database i have created for my app. First one works like this without any errors;
NewUser = saved_client:new(id,String1,String2,String3,String4),
{ok,SavedUser} = NewUser:save(),
But the second one does not save the variable that comes after the id but saves the rest;
FBChannel = saved_channel:new(id,String1,String2,String3,String4,String5,String6,String7,String8),
{ok,SavedFBChannel} = FBChannel:save();
Whatever i do, it gives the following error : Error parsing Boss record id: error for String1 and saves the rest. After the error, String1 is recoreded as [] an empty list, I just couldn't figure out why the first mongoDB saves without any error and the other doesn't, my boss config db shards like this below;
{db_shards, [
[
{db_host, "localhost"},
{db_adapter, mongodb},
{db_port, 27017},
{db_write_mode, safe},
{db_read_mode, master},
% {db_username, "dbuser"},
% {db_password, "dbpass"},
{db_name, "database1"},
{db_shard_id, dat1},
{db_shard_models, [saved_client]}
],[
{db_host, "localhost"},
{db_adapter, mongodb},
{db_port, 27017},
{db_write_mode, safe},
{db_read_mode, master},
% {db_username, "dbuser"},
% {db_password, "dbpass"},
{db_name, "database2"},
{db_shard_id, dat2},
{db_shard_models, [saved_channel]}
],.....