influxdata / influxdata/influxdb-java

When using library only with udp, still need to provide address in http format

Open
#279 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

difficulty/low help wanted kind/bug
Dominant language
Java
Stars
1.2k
Forks
469
PR merge metrics
No merged PRs in 30d

Description

If I don't provide a URL with an "http://" prefix, I get a NullReferenceException.
This is not relevant for udp.
Using version 2.5.
The problem is in InfluxDBImpl:
return InetAddress.getByName(HttpUrl.parse(url).host());

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at InfluxDBImpl and inspect the InetAddress lookup using HttpUrl.parse(url). Check how UDP-only configuration reaches this call and verify that it no longer requires an HTTP-formatted address, while preserving valid HTTP URL handling. Confirm the behavior with the project's relevant tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
databases
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.