influxdata / influxdata/influxdb-java

Support for HTTP write with Proxy.

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

Nobody has claimed this yet.

Dominant language
Java
Stars
1.2k
Forks
469
PR merge metrics
No merged PRs in 30d

Description

Currently the code throws exception
org.influxdb.InfluxDBIOException: java.net.UnknownHostException
if the client sits behind the proxy and can not resolve the hostname.
Hostname InetAddress is only used for UDP writes so IMHO, the constructor call in InfluxDBImpl
this.hostAddress = parseHostAddress(url);
can be moved to initialDatagramSocket() method.
Which at least enables the HTTP traffic from behind firewall.

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 in InfluxDBImpl, reviewing the constructor call to parseHostAddress(url) and the initialDatagramSocket() entry point. Confirm how hostname resolution affects clients behind a proxy, then verify that HTTP writes no longer fail with UnknownHostException when the hostname cannot be resolved, while UDP initialization still has the needed address.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
networking
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.