insodoc / insomnia-documenter

Tool to create minimalist and beautiful API documentation pages using your Insomnia workspace export file.
MIT License
492 stars 59 forks source link

Error in export Json V4 #55

Open raulamoretti opened 3 years ago

raulamoretti commented 3 years ago

main.js:35 SyntaxError: Unexpected token q in JSON at position 10 at JSON.parse () at Re.__parseJSON (content.js:14) at Re.parse (content.js:50) at qe.body (content.js:110) at Ye (Request.svelte:106) at rt (Request.svelte:105) at ne (index.mjs:1287) at new it (Request.svelte:80) at Array.ht (Rows.svelte:16) at gt (Rows.svelte:12)

insomnia.zip

jozsefsallai commented 3 years ago

The problem comes from the invalid JSON in this request body (notice the lack of quote marks in the keys):

image

In any case, v0.5.1 will no longer freak out when it sees invalid JSON, but will give you an annoying warning in the developer console.

Please let me know if fixing the JSON (or using v0.5.1 with bad JSON) fixed it.