Skip to content

Commit 6cdc468

Browse files
Chris ChoChris Cho
authored andcommitted
020724 fix indentation (#520)
* 020724: fix RST indentation (cherry picked from commit a541ef0)
1 parent 08b5795 commit 6cdc468

File tree

1 file changed

+58
-68
lines changed

1 file changed

+58
-68
lines changed

source/connection-troubleshooting.txt

Lines changed: 58 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,7 @@ Connection Troubleshooting
2323

2424
.. note::
2525

26-
This page addresses only connection issues. If you encounter other
27-
issues with MongoDB or the driver, visit the following resources:
28-
29-
- The :ref:`Issues & Help <java-issues-and-help>` topic for
30-
information about reporting bugs, contributing to the driver, and
31-
finding more resources
32-
- The `MongoDB Community Forums <{+communityForums+}>`__ for
33-
questions, discussions, or general technical support
34-
- The :ref:`Frequently Asked Questions (FAQ) <java-faq>` section for
35-
common questions and corresponding answers about the
36-
{+driver-short+}
26+
Test
3727

3828
.. replacement:: server-selection-timeout-error
3929

@@ -60,109 +50,109 @@ Connection Troubleshooting
6050

6151
.. _java-authentication-error:
6252

63-
.. replacement:: scram-failure-error
53+
.. replacement:: scram-failure-error
6454

65-
.. code-block:: none
66-
:copyable: false
55+
.. code-block:: none
56+
:copyable: false
6757

68-
Command failed with error 18 (AuthenticationFailed): 'Authentication failed.' on server localhost:27017.
58+
Command failed with error 18 (AuthenticationFailed): 'Authentication failed.' on server localhost:27017.
6959

70-
.. replacement:: check-credentials-formatting-anchor
60+
.. replacement:: check-credentials-formatting-anchor
7161

72-
.. _java-connection-string-auth:
62+
.. _java-connection-string-auth:
7363

74-
.. replacement:: learn-more-connection-string-admonition
64+
.. replacement:: learn-more-connection-string-admonition
7565

76-
.. tip::
66+
.. tip::
7767

78-
For more information about using connection strings,
79-
see :ref:`Connection URI <connection-uri>` in the Connection Guide.
68+
For more information about using connection strings,
69+
see :ref:`Connection URI <connection-uri>` in the Connection Guide.
8070

81-
.. replacement:: verify-authentication-database-anchor
71+
.. replacement:: verify-authentication-database-anchor
8272

83-
.. _java-verify-auth-db:
73+
.. _java-verify-auth-db:
8474

85-
.. replacement:: authsource-param-code-block
75+
.. replacement:: authsource-param-code-block
8676

87-
.. code-block:: java
88-
:copyable: false
77+
.. code-block:: java
78+
:copyable: false
8979

90-
String uri = "mongodb://<username>:<password>@<hostname>:<port>/?authSource=users&authMechanism=SCRAM-SHA-256";
91-
MongoClient mongoClient = MongoClients.create(uri);
80+
String uri = "mongodb://<username>:<password>@<hostname>:<port>/?authSource=users&authMechanism=SCRAM-SHA-256";
81+
MongoClient mongoClient = MongoClients.create(uri);
9282

93-
.. replacement:: credentials-provider-alternative-method-description
83+
.. replacement:: credentials-provider-alternative-method-description
9484

95-
If you construct a client by using a ``MongoCredential``, the builder method
96-
corresponds to the authentication mechanism. The following code shows the builder
97-
method for the ``SCRAM-SHA-256`` authentication mechanism:
85+
If you construct a client by using a ``MongoCredential``, the builder method
86+
corresponds to the authentication mechanism. The following code shows the builder
87+
method for the ``SCRAM-SHA-256`` authentication mechanism:
9888

99-
.. code-block:: java
100-
:copyable: false
89+
.. code-block:: java
90+
:copyable: false
10191

102-
MongoCredential credential = MongoCredential.createScramSha256Credential("<username>", "<authenticationDb>", "<password>");
92+
MongoCredential credential = MongoCredential.createScramSha256Credential("<username>", "<authenticationDb>", "<password>");
10393

10494

105-
.. replacement:: authentication-guide-reference
95+
.. replacement:: authentication-guide-reference
10696

107-
To learn more about specifying authentication mechanisms, see the :ref:`authentication-mechanisms` and
108-
:ref:`enterprise-authentication-mechanisms` guides.
97+
To learn more about specifying authentication mechanisms, see the :ref:`authentication-mechanisms` and
98+
:ref:`enterprise-authentication-mechanisms` guides.
10999

110-
.. replacement:: verify-authentication-mechanism-anchor
100+
.. replacement:: verify-authentication-mechanism-anchor
111101

112-
.. _java-verify-auth-mechanism:
102+
.. _java-verify-auth-mechanism:
113103

114-
.. replacement:: authsource-param-code-block
104+
.. replacement:: authsource-param-code-block
115105

116-
.. code-block:: java
117-
:copyable: false
106+
.. code-block:: java
107+
:copyable: false
118108

119-
MongoClient mongoClient = MongoClients.create("mongodb://<username>:<password>@<hostname>:<port>/?authSource=users");
109+
MongoClient mongoClient = MongoClients.create("mongodb://<username>:<password>@<hostname>:<port>/?authSource=users");
120110

121-
.. replacement:: dns-resolution-anchor
111+
.. replacement:: dns-resolution-anchor
122112

123-
.. _java-dns-resolution-error:
113+
.. _java-dns-resolution-error:
124114

125-
.. replacement:: dns-error-message
115+
.. replacement:: dns-error-message
126116

127-
.. code-block:: none
128-
:copyable: false
117+
.. code-block:: none
118+
:copyable: false
129119

130-
com.mongodb.MongoSocketWriteException: Exception sending message
120+
com.mongodb.MongoSocketWriteException: Exception sending message
131121

132-
.. replacement:: check-the-number-of-connections-anchor
122+
.. replacement:: check-the-number-of-connections-anchor
133123

134-
.. _java-connection-num-connections:
124+
.. _java-connection-num-connections:
135125

136-
.. replacement:: mongo-client-class
126+
.. replacement:: mongo-client-class
137127

138-
``MongoClient``
128+
``MongoClient``
139129

140-
.. replacement:: max-pool-size-param
130+
.. replacement:: max-pool-size-param
141131

142-
``maxPoolSize``
132+
``maxPoolSize``
143133

144-
.. replacement:: max-pool-size-default
134+
.. replacement:: max-pool-size-default
145135

146-
``100``
136+
``100``
147137

148-
.. replacement:: max-idle-time-param
138+
.. replacement:: max-idle-time-param
149139

150-
``maxIdleTimeMS``
140+
``maxIdleTimeMS``
151141

152-
.. replacement:: connection-pools-learn-more
142+
.. replacement:: connection-pools-learn-more
153143

154-
To learn more about how connection pooling works in the driver, see
155-
:ref:`java-faq-connection-pool` in the FAQ.
144+
To learn more about how connection pooling works in the driver, see
145+
:ref:`java-faq-connection-pool` in the FAQ.
156146

157-
.. replacement:: scram-failure-error
147+
.. replacement:: scram-failure-error
158148

159-
.. code-block::
149+
.. code-block::
160150

161-
Command failed with error 18 (AuthenticationFailed): 'Authentication failed.' on server localhost:27017.
151+
Command failed with error 18 (AuthenticationFailed): 'Authentication failed.' on server localhost:27017.
162152

163-
.. replacement:: check-credentials-formatting-anchor
153+
.. replacement:: check-credentials-formatting-anchor
164154

165-
.. _java-troubleshooting-connection-string-auth:
155+
.. _java-troubleshooting-connection-string-auth:
166156

167157
.. _java-connection-certificate:
168158

0 commit comments

Comments
 (0)