Skip to content

Commit 84f9bce

Browse files
wip
1 parent 5936871 commit 84f9bce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/influxdb/v3/client/internal/InfluxDBClientImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,10 +376,10 @@ private <T> void writeData(@Nonnull final List<T> data, @Nonnull final WriteOpti
376376
try {
377377
//fixme should body string or byte, gzip?
378378
restClient.request(HttpMethod.POST, path, headers, body, queryParams);
379-
} catch (InfluxDBApiHttpException e) {
379+
} catch (InfluxDBApiNettyException e) {
380380
if (noSync && e.statusCode() == HttpResponseStatus.METHOD_NOT_ALLOWED.code()) {
381381
// Server does not support the v3 write API, can't use the NoSync option.
382-
throw new InfluxDBApiHttpException("Server doesn't support write with NoSync=true "
382+
throw new InfluxDBApiNettyException("Server doesn't support write with NoSync=true "
383383
+ "(supported by InfluxDB 3 Core/Enterprise servers only).", e.headers(), e.statusCode());
384384
}
385385
throw e;

0 commit comments

Comments
 (0)