mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[GH-ISSUE #3236] [bug]: XML Body disappearing #1070
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#1070
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 @thomashanke on GitHub (Aug 4, 2023).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3236
Is there an existing issue for this?
Current behavior
When I enter a more complex XML body for a request with content type application/xml and I send some requests, after some time the XML body disappears (Body Tab, Raw Request Body) and is no longer displayed.
The body is still available and sent when I send a request but it is no longer displayed.
I can only change it if I clear the body (with the trashcan icon) and then enter it agan
Steps to reproduce
Environment
Production
Version
Self-hosted
@thomashanke commented on GitHub (Aug 7, 2023):
I also managed to reproduce the issue with the version that is not self hosted.
Steps to reproduce:
Create a POST request to https://echo.hoppscotch.io with the following body (contains an environment variable)
`
<msg:RequestMessage xmlns:msg="http://www.foo.com/TC57/2011/schema/message" xmlns:m="http://www.foo.com/TC57/CIM-abc#">
msg:Header
msg:Verbcreate</msg:Verb>
msg:NounMeterConfig</msg:Noun>
</msg:Header>
msg:Payload
<m:MeterConfig>
<m:Meter>
<m:mRID><></m:mRID>
<m:amrSystem>METER_AMR_SYSTEM</m:amrSystem>
<m:isVirtual>false</m:isVirtual>
<m:serialNumber>Serial - 10137616</m:serialNumber>
<m:timeZone>Europe/Berlin</m:timeZone>
<m:timeZoneOffset>120</m:timeZoneOffset>
</msg:Payload>
</msg:RequestMessage>
Set the content type of the body to aplication/xml
Add a Pre-Request Script that contains
pw.env.set("Meter", "value");@aciokler commented on GitHub (Aug 14, 2023):
I get the same issue. Complex xml bodies create errors in the browser console.
I believe this is causing the xml to disappear
@ghost commented on GitHub (Oct 6, 2023):
I am also able to reproduce this locally hosted. Anyone have a work around?
@joeljstephen commented on GitHub (Apr 10, 2024):
@thomashanke This issue will be closed in a few days as it has been fixed. Please let us know if you are still facing this issue in the latest builds.