Kong / Kong/insomnia

Visual preview not displaying anything

Open
#2,791 2 comments 0 reactions 0 assignees View on GitHub
N-author-input needs-triage
Dominant language
TypeScript
Stars
40k
Forks
2.4k
Avg merge
2d 13h
Merged PRs (30d)
61

Description

Visual preview showing blank white page (Source code and Raw Data works fine)

Insomnia 2020.4.2
macOS 10.15.7

Log from console:
`electron/js2c/renderer_init.js:126 Uncaught (in promise) Error: Error invoking remote method 'ELECTRON_GUEST_VIEW_MANAGER_CALL': Error: ERR_INVALID_URL (-300) loading 'data:text/html; charset=utf-8,test%0A%0A%0A%0A%3C!--%20Tracy%20Debug%20Bar%20--%3E%0A%3Cscript%20src%3D%22%3F_tracy_bar%3Djs%26amp%3Bv%3D2.4.18%26amp%3BXDEBUG_SESSION_STOP%3D1%22%20data-id%3D%2218f1011dea%22%3E%3C%2Fscript%3E%0A%3Cscript%3E%0ATracy.Debug.init(%22%5Ct%5Ct%3Cdiv%20class%3D%5C%22tracy-panel%20%5C%22%20id%3D%5C%22tracy-debug-panel-Tracy-info%5C%22%20data-tracy-content%3D%5C%22%26lt%3Bstyle%20class%3D%26quot%3Btracy-debug%26quot%3B%26gt%3B%5Cn%5Ct%23tracy-debug%20.tracy-InfoPanel%20table%20%7B%5Cn%5Ct%5Ctwidth%3A%20100%25%3B%5Cn%5Ct%7D%5Cn%5Ct%23tracy-debug%20.tracy-InfoPanel%20td%20%7B%5Cn%5Ct%5Ctwhite-space%3A%20nowrap%3B%5Cn%5Ct%7D%5Cn%5Ct%23tracy-debug%20.tracy-InfoPanel%20td%3Anth-child(2)%20%7B%5Cn%5Ct%5Ctfont-weight%3A%20bold%3B%5Cn%5Ct%5Ctwidth%3A%2030%25%3B%5Cn%5Ct%7D%5Cn%5Ct%23tracy-debug%20.tracy-InfoPanel%20td%5Bcolspan%3D%26%23039%3B2%26%23039%3B%5D%20b%20%7B%5Cn%5Ct%5Ctfloat%3A%20right%3B%5Cn%5Ct%5Ctmargin-left%3A%202em%3B%5Cn%5Ct%7D%5Cn%26lt%3B%5C%2Fstyle%26gt%3B%5Cn%5Cn%26lt%3Bh1%26gt%3BSystem%20info%26lt%3B%5C%2Fh1%26gt%3B%5Cn%5Cn%26lt%3Bdiv%20class%3D%26quot%3Btracy-inner%20tracy-InfoPanel%26quot%3B%26gt%3B%5Cn%26lt%3Btable%26gt%3B%5Cn%26lt%3Btr%26gt%3B%5Cn%5Ct%26lt%3Btd%26gt%3BExecution%20time%26lt%3B%5C%2Ftd%26gt%3B%26lt%3Btd%26gt%3B4%5Cu202f209.2%5Cu202fms%26lt%3B%5C%2Ftd%26gt%3B%5Cn%26lt%3B%5C%2Ftr%26gt%3B%5Cn%26lt%3Btr%26gt%3B%5Cn%5Ct%26lt%3Btd%26gt%3BCPU%20usage%20user%20%2B%20system%26lt%3B%5C%2Ftd%26gt%3B%26lt%3Btd%26gt%3B25%5Cu202f%25%20%2B%2012%5Cu202f%25%26lt%3B%5C%2Ftd%26gt%3B%5Cn%26lt%3B%5C%2Ftr%26gt%3B%5Cn%26lt%3Btr%26gt%3B%5Cn%5Ct%26lt%3Btd%26gt%3BPeak%20of%20allocated%20memory%26lt%3B%5C%2Ftd%26gt%3B%26lt%3Btd%26gt%3B22.43%5Cu202fMB%26lt%3B%5C%2Ftd%26gt%3B%5Cn%26lt%3B%5C%2Ftr%26gt%3B%5Cn%26lt%3Btr%26gt%3B%5Cn%5Ct%26lt%3Btd%26gt%3BIncluded%20files%26lt%3B%5C%2Ftd%26gt%3B%26lt%3Btd%26gt%3B1025%26lt%3B%5C%2Ftd%26gt%3B%5Cn%26lt%3B%5C%2Ftr%26gt%3B%5Cn%26lt%3Btr%26gt%3B%5Cn%5Ct%26lt%3Btd%26gt%3BClasses%20%2B%20interfaces%20%2B%20traits%26lt%3B%5C%2Ftd%26gt%3B%26lt%3Btd%26gt'
at EventEmitter.t.ipcRendererInternal.send.t.ipcRendererInternal.invoke (electron/js2c/renderer_init.js:126)`

`Unhandled Promise PromiseRejectionEvent {isTrusted: true, promise: Promise, reason: Error: Error invoking remote method 'ELECTRON_GUEST_VIEW_MANAGER_CALL': Error: ERR_INVALID_URL (-30…, type: "unhandledrejection", target: global, …}`

Contributor guide

Open the contributing guide

Research direction

Reproduce the blank Visual preview using the supplied Insomnia and macOS versions, then start with the console error showing Electron's guest view manager rejecting the generated data URL. Compare the Visual preview path with the working Source code and Raw Data views; done means the response renders in Visual preview without the invalid-URL or unhandled-rejection errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
electron, typescript
Domain
desktop, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.