Summary
it failed when I use C++ program to connect to mongoDB ,error message is
terminate called after throwing an instance of 'mongocxx::v_noabi::bulk_write_exception'
what(): : generic server error
Aborted (core dumped)
Environment
Please provide the version of the C / CXX driver.
mongo-cxx-driver-r3.6.7
mongo-cxx-driver-r3.6.7
host OS :ubuntu 18.04 x86
cmake version 3.10.2
If applicable, please attach the full output of the cmake command used to configure the C / CXX driver.
zhaoy10@zhaoy10:/media/zhaoy10/ACAD44B84EA1A705/fullmap/mongoDB$ c++ --std=c++11 test1.cpp $(pkg-config --cflags --libs libmongocxx)
zhaoy10@zhaoy10:/media/zhaoy10/ACAD44B84EA1A705/fullmap/mongoDB$ ./test
terminate called after throwing an instance of 'mongocxx::v_noabi::bulk_write_exception'
what(): : generic server error
Aborted (core dumped)
If applicable, please provide the MongoDB server version and topology (standalone, replica set, or sharded cluster).
How to Reproduce
you can use the below test1.cpp to reproduce the issue, I deleted the mongoDB url because it contains the user name and password
Additional Background
Please provide any additional background information that may be helpful in diagnosing the bug.
|