mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[GH-ISSUE #1197] Javascript's code generation not working with body #413
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#413
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 @LuisMayo on GitHub (Sep 29, 2020).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/1197
Originally assigned to: @liyasthomas on GitHub.
Describe the bug
When trying to generate JS code for an HTTP method which requires a body (PUT-POST-PATCH) the code generation won't work. It won't change the content of the output generated code text-area.
In case JS was the latest selected method the "generate code" window won't even open
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I'd expect it to show the generated code, and even in the case it fails try not to block the code generation window from appearing again
Screenshots

Desktop (please complete the following information):
Additional context
I really like this tool, keep the good job!
@liyasthomas commented on GitHub (Sep 29, 2020):
This issues was introduced by latest updates in codegen. An utility function import has been skipped by mistake. Pushing a fix now.