@@ -127,8 +127,7 @@ When reporting write issues, provide the following information to help InfluxDat
127
127
128
128
** Capture the complete error response:**
129
129
130
- {{% code-placeholders "AUTH_TOKEN|DATABASE_NAME" %}}
131
- ``` bash
130
+ ``` bash { placeholders="AUTH_TOKEN|DATABASE_NAME" }
132
131
# Example: Capture both successful and failed write attempts
133
132
curl --silent --show-error --write-out " \nHTTP Status: %{http_code}\nResponse Time: %{time_total}s\n" \
134
133
--request POST \
@@ -138,13 +137,11 @@ curl --silent --show-error --write-out "\nHTTP Status: %{http_code}\nResponse Ti
138
137
--data-binary @problematic-data.lp \
139
138
> write-error-response.txt 2>&1
140
139
```
141
- {{% /code-placeholders %}}
142
140
143
141
** Log client-side errors:**
144
142
145
143
If using a client library, enable debug logging and capture the full exception details:
146
144
147
- {{% code-placeholders "DATABASE_NAME|AUTH_TOKEN" %}}
148
145
{{< code-tabs-wrapper >}}
149
146
{{% code-tabs %}}
150
147
[ Python] ( # )
@@ -153,7 +150,7 @@ If using a client library, enable debug logging and capture the full exception d
153
150
[ JavaScript] ( # )
154
151
{{% /code-tabs %}}
155
152
{{% code-tab-content %}}
156
- ``` python
153
+ ``` python { placeholders="DATABASE_NAME|AUTH_TOKEN" }
157
154
import logging
158
155
from influxdb_client_3 import InfluxDBClient3
159
156
@@ -172,7 +169,7 @@ except Exception as e:
172
169
```
173
170
{{% /code-tab-content %}}
174
171
{{% code-tab-content %}}
175
- ``` go
172
+ ``` go { placeholders="DATABASE_NAME|AUTH_TOKEN" }
176
173
package main
177
174
178
175
import (
@@ -207,7 +204,7 @@ func main() {
207
204
```
208
205
{{% /code-tab-content %}}
209
206
{{% code-tab-content %}}
210
- ``` java
207
+ ``` java { placeholders="DATABASE_NAME|AUTH_TOKEN" }
211
208
import com.influxdb.v3.client.InfluxDBClient ;
212
209
import java.util.logging.Logger ;
213
210
import java.util.logging.Level ;
@@ -232,7 +229,7 @@ public class WriteErrorExample {
232
229
```
233
230
{{% /code-tab-content %}}
234
231
{{% code-tab-content %}}
235
- ``` javascript
232
+ ``` javascript { placeholders="DATABASE_NAME|AUTH_TOKEN" }
236
233
import { InfluxDBClient } from ' @influxdata/influxdb3-client'
237
234
238
235
const client = new InfluxDBClient ({
@@ -251,7 +248,6 @@ try {
251
248
```
252
249
{{% /code-tab-content %}}
253
250
{{< /code-tabs-wrapper >}}
254
- {{% /code-placeholders %}}
255
251
256
252
Replace the following in your code:
257
253
0 commit comments