[GH-ISSUE #1023] JSON not showing up in the correct format #358

Closed
opened 2026-03-16 14:53:31 +03:00 by kerem · 5 comments
Owner

Originally created by @jaisharx on GitHub (Jul 24, 2020).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/1023

Originally assigned to: @AndrewBastin on GitHub.

Describe the bug
I am trying out the OMDb APIs with postwoman, and with every request there is invalid json message showing up and the json returned although correct isn't nicely formatted, it's all in one liner.

To Reproduce
Steps to reproduce the behavior:

  1. Make an account on OMDb to get the api keys
  2. Make any simple request, like I did https://www.omdbapi.com/?apikey=[your_api]&i=tt6333092
  3. The JSON will be returned successfully, which although correct will be appended with an "Invalid JSON" message.
  4. I've also tried the "Expand response" button as well, but it seems to do nothing.

Expected behavior
Should show nicely formatted JSON in the view.

Screenshots
invalid json

Desktop (please complete the following information):

  • OS: Windows 10 V2004 | Build 19041
  • Browser : New MS Edge (based on chromium 84)
  • Version Edge 84

Additional context
I've the chrome ext for postwoman installed as well, if that's helpful. Thanks.

Originally created by @jaisharx on GitHub (Jul 24, 2020). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/1023 Originally assigned to: @AndrewBastin on GitHub. **Describe the bug** I am trying out the OMDb APIs with postwoman, and with every request there is invalid json message showing up and the json returned although correct isn't nicely formatted, it's all in one liner. **To Reproduce** Steps to reproduce the behavior: 1. Make an account on OMDb to get the api keys 2. Make any simple request, like I did https://www.omdbapi.com/?apikey=[your_api]&i=tt6333092 3. The JSON will be returned successfully, which although correct will be appended with an "Invalid JSON" message. 4. I've also tried the "Expand response" button as well, but it seems to do nothing. **Expected behavior** Should show nicely formatted JSON in the view. **Screenshots** ![invalid json](https://user-images.githubusercontent.com/55892116/88366612-3889aa00-cda7-11ea-8558-77239d60a852.png) **Desktop (please complete the following information):** - OS: Windows 10 V2004 | Build 19041 - Browser : New MS Edge (based on chromium 84) - Version Edge 84 **Additional context** I've the chrome ext for postwoman installed as well, if that's helpful. Thanks.
kerem 2026-03-16 14:53:31 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@jaisharx commented on GitHub (Jul 24, 2020):

Oops. It's working now! idk how but sorry 🙇‍♀️

<!-- gh-comment-id:663375547 --> @jaisharx commented on GitHub (Jul 24, 2020): Oops. It's working now! idk how but sorry 🙇‍♀️
Author
Owner

@liyasthomas commented on GitHub (Jul 24, 2020):

Its an issue with the extension. Turn off extension from Settings > extension and try again.

@AndrewBastin

<!-- gh-comment-id:663382223 --> @liyasthomas commented on GitHub (Jul 24, 2020): Its an issue with the extension. Turn off extension from Settings > extension and try again. @AndrewBastin
Author
Owner

@AndrewBastin commented on GitHub (Sep 7, 2020):

Yeah, I am reopening this issue because it is something I am working on fixing.

I haven't pinned down the reason for this yet (maybe some issues with the communication in between), but it seems to only affect certain sites and not others.

<!-- gh-comment-id:688509850 --> @AndrewBastin commented on GitHub (Sep 7, 2020): Yeah, I am reopening this issue because it is something I am working on fixing. I haven't pinned down the reason for this yet (maybe some issues with the communication in between), but it seems to only affect certain sites and not others.
Author
Owner

@liyasthomas commented on GitHub (Sep 8, 2020):

Same issue was there in Proxy mode #1070 after introducing Lenses.
Fix was in this commit: github.com/hoppscotch/proxyscotch@8c338414a1

<!-- gh-comment-id:688557007 --> @liyasthomas commented on GitHub (Sep 8, 2020): Same issue was there in Proxy mode #1070 after introducing Lenses. Fix was in this commit: https://github.com/hoppscotch/proxyscotch/commit/8c338414a1d826b846f6d9689cbbb8b37e69ed8c
Author
Owner

@AndrewBastin commented on GitHub (Sep 18, 2020):

Well, I added a temporary hacky fix for the issue (explicitly remove the null characters from the end). Will get around with a proper fix once I get around that.

Meanwhile, closing this issue.

<!-- gh-comment-id:694598377 --> @AndrewBastin commented on GitHub (Sep 18, 2020): Well, I added a temporary hacky [fix](https://github.com/hoppscotch/hoppscotch/commit/4ea60d3431dabe634ab2f219212e830ba365c4e9) for the issue (explicitly remove the null characters from the end). Will get around with a proper fix once I get around that. Meanwhile, closing this issue.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#358
No description provided.