Insomnia: Preview Mode: Visual Preview / Source Code outputting [] instead of JSON response

Created on 25 Dec 2020  路  2Comments  路  Source: Kong/insomnia

Describe the bug
I am testing my Rest APIs that sends back a JSON response. "Visual Preview" and "Source Code" shows [] as the response, white the "Raw Data" option shows the proper JSON response. If i hit the same API using Postman, the formatting shows properly. I am sharing the screencast of both Insomnia and Postman, may be this will help you get an idea of what is this happening. Also, attaching the header information so that you may know why is this happening.

Expected behavior
JSON response should show in a formatted manner.

Screenshots
Insomnia:
https://share.getcloudapp.com/Z4uqnzex

Postman:
https://share.getcloudapp.com/llun7wmY

Headers:
https://share.getcloudapp.com/12uK7E9L

Desktop (please complete the following information):

  • OS: macOS 10.14.6 (18G7016)
  • Installation Method: dmg
  • App Version 2020.5.2

Additional context
Version: Insomnia Core 2020.5.2
Release date: 09/12/2020
OS: Darwin x64 18.7.0
Electron: 9.1.1
Node: 12.14.1
V8: 8.3.110.13-electron.0
Architecture: x64
node-libcurl: libcurl/7.69.1 OpenSSL/1.1.1g zlib/1.2.11 brotli/1.0.7 libidn2/2.1.1 libssh2/1.9.0 nghttp2/1.41.0

bug needs investigation

Most helpful comment

Not sure where to look for the mimetype, but as per the header screenshot above, the response content type is application/json

All 2 comments

What is the mimetype for the response?

Not sure where to look for the mimetype, but as per the header screenshot above, the response content type is application/json

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tmaiaroto picture tmaiaroto  路  4Comments

dextermb picture dextermb  路  3Comments

wimdecorte picture wimdecorte  路  3Comments

slashsbin picture slashsbin  路  4Comments

oliverjanik picture oliverjanik  路  3Comments