Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: URL HOST and PORT variables #102

Closed
1 task done
kynrai opened this issue Sep 3, 2023 · 4 comments
Closed
1 task done

[Bug]: URL HOST and PORT variables #102

kynrai opened this issue Sep 3, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@kynrai
Copy link

kynrai commented Sep 3, 2023

What happened?

It does not appear to be possible to have a colon for a port when using variables

Steps to reproduce?

Set. host and port variable
try
`http://{{HOST}}:{{PORT}}`

What did you expect to happen?

Expect the URL to be valid

Platform

macOS

HTTPie Desktop version

2022.5.1

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@kynrai kynrai added the bug Something isn't working label Sep 3, 2023
@kynrai kynrai changed the title [Bug]: URL [Bug]: URL HOST and PORT variables Sep 3, 2023
@jkbrzt
Copy link
Member

jkbrzt commented Sep 3, 2023

@kynrai thanks for the report. We’ll look into it 👀

@berazo29
Copy link

berazo29 commented Oct 22, 2023

Workaround:
It works if you set the var with the colons on the env variable.
For example API_PORT = :3000 then use on the url as GET localhost{{API_PORT}}/foo.
I think it should be fixed but for now this workout does the job.

@kynrai
Copy link
Author

kynrai commented Nov 10, 2023

The workaround works well for now, is this supposed to be fixed in the latest version? just checked on Version 2023.3.6 (2023.3.6) and its still an issue, I dont mind trying to fix it if i have time to look into this

@jkbrzt
Copy link
Member

jkbrzt commented Jan 3, 2024

✅ Fixed in v2024.1.1 →

@jkbrzt jkbrzt closed this as completed Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants