mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 09:16:03 +03:00
[GH-ISSUE #5475] [bug]: pw.set.env not working properly #2101
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#2101
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 @jchennales on GitHub (Oct 9, 2025).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5475
Originally assigned to: @jamesgeorge007 on GitHub.
Is there an existing issue for this?
Platform
Desktop App
Browser
Chrome
Operating System
Linux
Bug Description
When I do pw.set.env on a Post Request Script, the entire script stops, the env variable is not set and there is no error in the console.
What I expected is that the variable be set and the script continues.
Steps to reproduce
Create a new request. Leave everything as default.
In the "Post request script" tab, paste the following nominal script:
console.log("before set");
pw.env.set("hello", "world");
console.log("after set");
Open the console, run the script and you see the "before set" log and nothing else. The env var is not set.
I will attaching 2 screenshots. One showing the console log when it fails, and one when it succeds in v25.8.1
This started happening when I upgraded today from a somewhat old version to current. I started trying intermediate versions and could pinpoint the first version where it fails which is 25.9.0. In version 25.8.1 it works as expected.
I am using AppImage files in a Fedora 42 KDE (wayland)
Deployment Type
Self-hosted (on-prem deployment)
Version
v25.9.1
@jamesgeorge007 commented on GitHub (Oct 10, 2025):
Hi @jchennales, this is a known issue that has been addressed in #5433 and is live in the latest release across all web platforms.
However, please note that the Desktop App update is still pending and will be included in an upcoming release.
In the meantime, we recommend either of the following:
Settings > Experimentsin the Desktop App, orLet me know if you have any questions!
@jchennales commented on GitHub (Oct 13, 2025):
That's great. I am fine with 25.8.1 in the meantime.
I will look into the new scripting API. I know I will have to update my scripts at one point. Thank you!
@denware commented on GitHub (Oct 14, 2025):
thanks is working
@jamesgeorge007 commented on GitHub (Oct 31, 2025):
Closing this issue as the Desktop App release is now live, resolving the issue across platforms. Please let us know if you have any feedback.