Skip to content

Commit 9af6466

Browse files
committed
troubleshooting
1 parent dd99271 commit 9af6466

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

source/connect/stable-api.txt

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,20 @@ by chaining methods on the ``ServerApi.Builder``:
104104
Troubleshooting
105105
---------------
106106

107-
.. include:: /includes/troubleshooting/stable-api.rst
107+
Unrecognized field 'apiVersion' on server
108+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
109+
110+
{+driver-short+} raises this exception if you specify an API version and connect to a
111+
MongoDB server that doesn't support the {+stable-api+}. Ensure you're connecting to a
112+
deployment running {+mdb-server+} v5.0 or later.
113+
114+
Provided apiStrict:true, but the command count is not in API Version
115+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
116+
117+
{+driver-short+} raises this exception if your ``MongoClient`` runs an operation that
118+
isn't in the {+stable-api+} version you specified. To avoid this error, use an alternative
119+
operation supported by the specified {+stable-api+} version, or set the ``strict``
120+
option to ``False`` when constructing your ``ServerApi`` object.
108121

109122
API Documentation
110123
-----------------

0 commit comments

Comments
 (0)