mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[GH-ISSUE #2665] [bug]: Env variable with dash in its name doesn't work in JSON body #876
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#876
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @aaronz-vipaso on GitHub (Sep 15, 2022).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/2665
Originally assigned to: @anwarulislam on GitHub.
Is there an existing issue for this?
Current behavior
When I use an env variable with a dash in its name in a JSON body, the variable does not become substituted with the actual value. Even though the variable is correctly highlighted green.

However when I use a env variable without dashes in its name in a JSON body, the variable becomes substituted with the actual value as expected.

https://github.com/hoppscotch/hoppscotch/issues/1834
https://github.com/hoppscotch/hoppscotch/pull/1942
Steps to reproduce
Environment
Production
Version
Cloud
@liyasthomas commented on GitHub (Sep 15, 2022):
@anwarulislam can you take a look into this behaviour?
@anwarulislam commented on GitHub (Sep 15, 2022):
Yeah, looking into it
@Airomeo commented on GitHub (Nov 20, 2023):
Now in 2023. Still not fixed yet. @AndrewBastin
@bvwidt commented on GitHub (Jul 9, 2024):
Is there any update regarding this issue?
I am experiencing the same with the current version (v2024.6.0).
@liyasthomas commented on GitHub (Jul 10, 2024):
@thetronjohnson can you look into this?
@liyasthomas commented on GitHub (Jul 10, 2024):
I can't reproduce this behavior in the latest Hoppscotch version.
@bvwidt can you try force reloading the tab (command/ctrl + shift + r) and see if the issue persists at your end?
@bvwidt commented on GitHub (Jul 12, 2024):
You are right @liyasthomas. It works without a problem now. Sorry for the circumstances.
I have just found two other very minor problems:
CTRL + SPACEunlike when using variables in the address bar.