Skip to content

Commit 81e86e3

Browse files
Apply suggestions from code review
Co-authored-by: Scott Anderson <[email protected]>
1 parent c362792 commit 81e86e3

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

content/shared/influxdb3-write-guides/troubleshoot-distributed.md

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,7 @@ When reporting write issues, provide the following information to help InfluxDat
127127

128128
**Capture the complete error response:**
129129

130-
{{% code-placeholders "AUTH_TOKEN|DATABASE_NAME" %}}
131-
```bash
130+
```bash { placeholders="AUTH_TOKEN|DATABASE_NAME" }
132131
# Example: Capture both successful and failed write attempts
133132
curl --silent --show-error --write-out "\nHTTP Status: %{http_code}\nResponse Time: %{time_total}s\n" \
134133
--request POST \
@@ -138,13 +137,11 @@ curl --silent --show-error --write-out "\nHTTP Status: %{http_code}\nResponse Ti
138137
--data-binary @problematic-data.lp \
139138
> write-error-response.txt 2>&1
140139
```
141-
{{% /code-placeholders %}}
142140

143141
**Log client-side errors:**
144142

145143
If using a client library, enable debug logging and capture the full exception details:
146144

147-
{{% code-placeholders "DATABASE_NAME|AUTH_TOKEN" %}}
148145
{{< code-tabs-wrapper >}}
149146
{{% code-tabs %}}
150147
[Python](#)
@@ -153,7 +150,7 @@ If using a client library, enable debug logging and capture the full exception d
153150
[JavaScript](#)
154151
{{% /code-tabs %}}
155152
{{% code-tab-content %}}
156-
```python
153+
```python { placeholders="DATABASE_NAME|AUTH_TOKEN" }
157154
import logging
158155
from influxdb_client_3 import InfluxDBClient3
159156

@@ -172,7 +169,7 @@ except Exception as e:
172169
```
173170
{{% /code-tab-content %}}
174171
{{% code-tab-content %}}
175-
```go
172+
```go { placeholders="DATABASE_NAME|AUTH_TOKEN" }
176173
package main
177174

178175
import (
@@ -207,7 +204,7 @@ func main() {
207204
```
208205
{{% /code-tab-content %}}
209206
{{% code-tab-content %}}
210-
```java
207+
```java { placeholders="DATABASE_NAME|AUTH_TOKEN" }
211208
import com.influxdb.v3.client.InfluxDBClient;
212209
import java.util.logging.Logger;
213210
import java.util.logging.Level;
@@ -232,7 +229,7 @@ public class WriteErrorExample {
232229
```
233230
{{% /code-tab-content %}}
234231
{{% code-tab-content %}}
235-
```javascript
232+
```javascript { placeholders="DATABASE_NAME|AUTH_TOKEN" }
236233
import { InfluxDBClient } from '@influxdata/influxdb3-client'
237234

238235
const client = new InfluxDBClient({
@@ -251,7 +248,6 @@ try {
251248
```
252249
{{% /code-tab-content %}}
253250
{{< /code-tabs-wrapper >}}
254-
{{% /code-placeholders %}}
255251

256252
Replace the following in your code:
257253

0 commit comments

Comments
 (0)