influxdata / influxdata/influxdb

Unsupported or unrecognized SSL message error

Open
#25,269 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
31.7k
Forks
3.7k
Avg merge
13h 37m
Merged PRs (30d)
8

Description

I use com.influxdb:influxdb-client-java:7.2.0 and I want to list the buckets using:
```
influxConnection.client.getBucketsApi().findBuckets()
```
I receive the error:

```
com.influxdb.exceptions.InfluxException: Unsupported or unrecognized SSL message
at com.influxdb.internal.AbstractRestClient.execute(AbstractRestClient.java:87)
at com.influxdb.client.internal.BucketsApiImpl.findBuckets(BucketsApiImpl.java:491)
at com.influxdb.client.internal.BucketsApiImpl.findBucketsByOrgName(BucketsApiImpl.java:123)
at com.influxdb.client.internal.BucketsApiImpl.findBuckets(BucketsApiImpl.java:99)
```
Which could be the reason?

The server version:
curl -sL -I localhost:8086/ping
HTTP/1.1 204 No Content
Vary: Accept-Encoding
X-Influxdb-Build: OSS
X-Influxdb-Version: v2.7.10
Date: Mon, 26 Aug 2024 06:18:53 GMT

Contributor guide

Open the contributing guide

Research direction

Start with the Java client's getBucketsApi().findBuckets() call and the AbstractRestClient.execute stack frame, then compare the configured URL and protocol with the HTTP response from localhost:8086/ping. Done means identifying the protocol or endpoint mismatch and documenting a reproducible diagnosis; the issue names no repository test or implementation change.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, databases, networking
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.