crate-python icon indicating copy to clipboard operation
crate-python copied to clipboard

Unable to connect in a proxy setup with path prefix

Open Kleinjohann opened this issue 2 months ago • 1 comments

I'm running a crate cluster behind a proxy which forwards https://my.proxy:443/crate/ to internal.crate.hostname:4200. This requires me to prepend /crate/ to all paths which does not seem to be possible in crate-python. Am I overlooking something? If not, I would be willing to develop my current hacky fix into a fleshed-out solution and contribute it in a PR.

Kleinjohann avatar Nov 26 '25 14:11 Kleinjohann

Hi Alexander,

thank you for using CrateDB and for reporting this.

Indeed it looks like the netloc path is nailed to the root URL path /_sql by setting self.path in the client constructor without many chances to modify it. A corresponding patch to improve the situation will be well appreciated.

With kind regards, Andreas.

/cc @surister, @matriv, @seut

amotl avatar Dec 01 '25 06:12 amotl