mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[GH-ISSUE #5621] [bug]: Environment values not working in url like (baseURL) when import postman environment file #2175
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#2175
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 @FaisalFaraj on GitHub (Nov 27, 2025).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5621
Originally assigned to: @FaisalFaraj on GitHub.
Is there an existing issue for this?
Platform
Web App
Browser
Chrome
Operating System
macOS
Bug Description
Here’s an updated issue text you can paste and tweak:
What happened?
When importing a Postman environment file into Hoppscotch and using it in requests, the app does not correctly resolve environment variables in the request path. The variable placeholder
<<baseUrl>>stays highlighted in purple in the URL bar instead of being replaced with the actual value, and every request returns a 405 status code even though the backend is running correctly.[11][12]Steps to reproduce
baseUrlvariable with valuehttp://localhost:8089.<<baseUrl>>/api/....<<baseUrl>>/api/...in purple instead of resolving tohttp://localhost:8089/api/....What I expected
<<baseUrl>>withhttp://localhost:8089in the request URL when the environment is active.Screenshots
Screenshots attached showing the unresolved
<<baseUrl>>in the URL bar and the environment configuration.[12][11]Additional context
http://localhost:8089/...), and running that curl command in the terminal works as expected, returning a successful response.http://localhost:8089that responds correctly to the same endpoint when called via curl.Deployment Type
Hoppscotch Cloud
Version
2025.10.1
@FaisalFaraj commented on GitHub (Nov 27, 2025):
Hey, thanks for the awesome app, I use Hoppscotch a lot.
I’ve reproduced this bug on the web version and I’d like to work on a fix, so assign this issue to me, could you?
@FaisalFaraj commented on GitHub (Nov 27, 2025):
@CuriousCorrelation
@nivedin commented on GitHub (Dec 5, 2025):
@FaisalFaraj can you check if the mentioned variable is defined in any of the parent collections of the request as a collection variable? The highlighted environment variable indicates that an empty collection variable is currently active.
@AaronFortG commented on GitHub (Dec 5, 2025):
I think I have a similar issue when import from Postman, I sent a new reply here: https://github.com/hoppscotch/hoppscotch/issues/5583 ^^
@FaisalFaraj commented on GitHub (Dec 9, 2025):
Yes, I have checked the parent collections, and I confirmed that the
variable is not defined there. The issue persists even after verifying that
there are no empty collection variables shadowing the environment variable.
On Fri, Dec 5, 2025 at 3:54 PM Nivedin @.***> wrote:
@FaisalFaraj commented on GitHub (Dec 9, 2025):
Yes, I have checked the parent collections, and I confirmed that the
variable is not defined there. The issue persists even after verifying that
there are no empty collection variables shadowing the environment variable.
On Fri, Dec 5, 2025 at 5:46 PM Aaron Fort Garcia @.***>
wrote:
@nivedin commented on GitHub (Jan 22, 2026):
@FaisalFaraj can you check if you are still able to reproduce the issue anymore in the latest app version.
@Saket-Entujn commented on GitHub (Feb 19, 2026):
I'm using the Hoppscotch desktop application and I'm facing the same issue where the <> is not fetching the value from the variable which is defined in the environment. I've checked the value for the variable in environment it does not contain any empty spaces. I'd kindly like to know this issue has any known solutions.
@nivedin commented on GitHub (Feb 19, 2026):
In Hoppscotch we use
<<variable-name>>format to use environment variables, can you try that out.You can follow our doc for more info on environments and its usage.
@Saket-Entujn commented on GitHub (Feb 19, 2026):
@nivedin Thanks for the reply in my environment I'm using **<< baseUrl >>**and using the same variable in my collections but one collection namely the last collection it is not fetching the value for the variable from the environment even though rest of collections are getting the value.
@nivedin commented on GitHub (Feb 20, 2026):
@Saket-Entujn If possible can you share your collections where this issue exists, so we can debug this