Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xml response preview adds undefined to the response #8016

Open
1 task done
eshirvana opened this issue Sep 26, 2024 · 0 comments
Open
1 task done

xml response preview adds undefined to the response #8016

eshirvana opened this issue Sep 26, 2024 · 0 comments
Labels
B-bug Bug: general classification S-unverified Status: Unverified by maintainer

Comments

@eshirvana
Copy link

eshirvana commented Sep 26, 2024

Expected Behavior

when I receive an xml response by a Get call an API , raw preview mode shows the right data however the visual preview mode messes up the response :

raw mode :

...
 <title>Extended Forecast - Southern Lake Huron</title>
 <link type="text/html" href="https://www.weather.gc.ca/marine/forecast_e.html?mapID=10&amp;siteID=07605#forecast"/>
 <updated>2024-09-26T07:00:00Z</updated>
 <published>2024-09-26T07:00:00Z</published>
 <category term="Marine Forecasts"/>
 <summary type="html">Saturday: Wind east 15 knots.&#60;br/>Sunday: Wind northeast 15 knots.&#60;br/>Monday: Wind east 15 knots.&#60;br/>Issued 03:00  AM EDT 26 September 2024</summary>
 <id>tag:weather.gc.ca,2013-04-16:07605_extended_forecast:20240926070000</id>
 </entry>
 </feed>

preview mode :

...
<title>Extended Forecast - Northern Lake Huron</title>
<link type="text/html" href="https://www.weather.gc.ca/marine/forecast_e.html?mapID=10&amp;siteID=07601#forecast"/>
<updated>2024-09-26T07:00:00Z</updated>
<published>2024-09-26T07:00:00Z</published>
<category term="Marine Forecasts"/>
<summary type="html">Saturday: Wind east 15 knots.&#60;br/>Sunday: Wind northeast 15 knots.&#60;br/>Monday: Wind east 15 knots.&#60;br/>Issued 03:00  AM EDT 26 September 2024</summary>undefined<id>tag:weather.gc.ca,2013-04-16:07601_extended_forecast:20240926070000</id>undefined</entry>undefined<entry>undefined<title>Forecast for Today Tonight and Friday. - Southern Lake Huron</title>undefined<link type="text/html" href="https://www.weather.gc.ca/marine/forecast_e.html?mapID=10&amp;siteID=07605#forecast"/>undefined<updated>2024-09-26T14:30:00Z</updated>undefined<published>2024-09-26T14:30:00Z</published>undefined<category term="Marine Forecasts"/>undefined<summary type="html">Wind variable 10 knots becoming east 10 near midnight then
increasing to northeast 15 near noon Friday. Wind veering to east 15 Friday
evening.        &#60;br/>Issued 10:30  AM EDT 26 September 2024</summary>undefined<id>tag:weather.gc.ca,2013-04-16:07605_regular_forecast:20240926143000</id>undefined</entry>undefined<entry>undefined<title>Waves for Today Tonight and Friday. - Southern Lake Huron</title>undefined<link type="text/html" href="https://www.weather.gc.ca/marine/forecast_e.html?mapID=10&amp;siteID=07605#forecast"/>undefined<updated>2024-09-26T14:30:00Z</updated>undefined<published>2024-09-26T14:30:00Z</published>undefined<category term="Marine Forecasts"/>undefined<summary type="html">Waves 0.5 metres or less building to 0.5 to 1 Friday
afternoon.&#60;br/>Issued 10:30  AM EDT 26 September 2024</summary>undefined<id>tag:weather.gc.ca,2013-04-16:07605_waves:20240926143000</id>undefined</entry>undefined<entry>undefined<title>Extended Forecast - Southern Lake Huron</title>undefined<link type="text/html" href="https://www.weather.gc.ca/marine/forecast_e.html?mapID=10&amp;siteID=07605#forecast"/>undefined<updated>2024-09-26T07:00:00Z</updated>**undefined**<published>2024-09-26T07:00:00Z</published>undefined<category term="Marine Forecasts"/>**undefined**<summary type="html">Saturday: Wind east 15 knots.&#60;br/>Sunday: Wind northeast 15 knots.&#60;br/>Monday: Wind east 15 knots.&#60;br/>Issued 03:00  AM EDT 26 September 2024</summary>**undefined**<id>tag:weather.gc.ca,2013-04-16:07605_extended_forecast:20240926070000</id>**undefined**</entry>undefined</feed>

for some reason it adds undefined in between nodes

Version: Insomnia 10.0.0
Build date: 9/9/2024
OS: Windows_NT x64 10.0.19045
Electron: 31.4.0
Node: 20.16.0
Node ABI: 125
V8: 12.6.228.30-electron.0
Architecture: x64

Actual Behavior

visual preview should be a true representation of raw data

Reproduction Steps

  1. call an api with get method with an xml response
  2. In preview tab under preview mode click on raw
  3. in preview tab under preview mode click on preview
  4. and compare the result

Is there an existing issue for this?

Additional Information

No response

Insomnia Version

10.0.0

What operating system are you using?

Windows

Operating System Version

Windows 10

Installation method

windows installer

Last Known Working Insomnia version

No response

@eshirvana eshirvana added B-bug Bug: general classification S-unverified Status: Unverified by maintainer labels Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B-bug Bug: general classification S-unverified Status: Unverified by maintainer
Projects
None yet
Development

No branches or pull requests

1 participant