InvalidURL: Invalid port: ':1]' #153

Closed
opened 2026-02-15 16:28:20 -05:00 by yindo · 1 comment
Owner

Originally created by @KristofPusztai on GitHub (Oct 10, 2024).

It seems the httpx dependency requirement is set to be httpx = "^0.27.0", however, when using all versions that satisfy this requirement, I get a InvalidURL: Invalid port: ':1]' error which is easily fixed if I downgrade to httpx==0.23.3 as suggested by this other post which ran into the same issue in the openai client.

I think this dependency requirement should be changed as it seems incompatible out of the box. Or is there perhaps something I'm doing wrong on my end that's making it so that the proper version isn't working? I haven't changed any default settings or ports or anything.

Originally created by @KristofPusztai on GitHub (Oct 10, 2024). It seems the httpx dependency requirement is set to be `httpx = "^0.27.0"`, however, when using all versions that satisfy this requirement, I get a `InvalidURL: Invalid port: ':1]'` error which is easily fixed if I downgrade to httpx==0.23.3 as suggested by [this other post](https://github.com/openai/openai-python/issues/1054) which ran into the same issue in the openai client. I think this dependency requirement should be changed as it seems incompatible out of the box. Or is there perhaps something I'm doing wrong on my end that's making it so that the proper version isn't working? I haven't changed any default settings or ports or anything.
yindo closed this issue 2026-02-15 16:28:20 -05:00
Author
Owner

@KristofPusztai commented on GitHub (Oct 10, 2024):

nvm, seems it's an issue with httpx and setting no_proxy, hopefully httpx team can get on this!

@KristofPusztai commented on GitHub (Oct 10, 2024): nvm, seems it's an [issue with httpx](https://github.com/encode/httpx/issues/3221) and setting `no_proxy`, hopefully httpx team can get on this!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ollama/ollama-python#153