Hello,

I am using 3 databases on my application. 2 of them are mongodb and one of 
them is mock.
Application is using the first mongodb database correctly. When i want to 
save a new record on the other mongodb database, i get the following error: 
 Error parsing Boss record id: error:{badmatch,["oU551t39W46UOgS"]}
This happens for any record after Id which is automatically generated by 
mongodb.

pack_id(BossId) -> try [_, MongoId] = string:tokens(BossId, "-"), {hex2dec(
MongoId)} catch Error:Reason -> error_logger:warning_msg("Error parsing 
Boss record id: ~p:~p~n", [Error, Reason]), [] end. 
 
I checked this on boss_db_adapter_mongodb.erl and couldnt figure it out. 
This is what i do;

        QDataId = passwordGenerator(),
        AData = "null",
        Response = "null",
        Status = "waiting",

        NewQData = 
question_data:new(id,QDataId,MyLang,ValueFormat4,AData,Response,Status),
        {ok,SavedQData} = NewQData:save(),

My password generator generates something like this: oU551t39W46UOgS as a 
string. I thought it was related with this but whatever i put for the first 
record as QDataId i get the same error.
Happen to anyone before?

Thanks
Mert

-- 
You received this message because you are subscribed to the Google Groups 
"ChicagoBoss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at http://groups.google.com/group/chicagoboss.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/chicagoboss/6726102d-659c-4f86-b91d-1172b47f42ab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to