insomnia
insomnia copied to clipboard
UI not loading
Expected Behavior
When opening Insomnia, I would expect to be able to, well, use it.
Actual Behavior
The main window opens, without any content whatsoever:
Reproduction Steps
Not sure why this happened on my machine, but well, on my machine it's just opening the app.
Is there an existing issue for this?
- [X] I have searched the issue tracker for this problem.
Additional Information
Opening the log files, the render.log
file contains the following error:
[2022-04-04 09:50:13.903] [error] Unhandled Promise {
message: "Can't insert key env_b9f6a0b882c4388cc6c3739c14faf92c789effba, it violates the unique constraint",
stack: "Error: Can't insert key env_b9f6a0b882c4388cc6c3739c14faf92c789effba, it violates the unique constraint\n" +
' at _AVLTree.insert (/Applications/Insomnia.app/Contents/Resources/app.asar/node_modules/binary-search-tree/lib/avltree.js:273:19)\n' +
' at AVLTree.insert (/Applications/Insomnia.app/Contents/Resources/app.asar/node_modules/binary-search-tree/lib/avltree.js:307:27)\n' +
' at Index.insert (/Applications/Insomnia.app/Contents/Resources/app.asar/node_modules/nedb/lib/indexes.js:77:15)\n' +
' at Datastore.addToIndexes (/Applications/Insomnia.app/Contents/Resources/app.asar/node_modules/nedb/lib/datastore.js:180:29)\n' +
' at Datastore._insertInCache (/Applications/Insomnia.app/Contents/Resources/app.asar/node_modules/nedb/lib/datastore.js:402:10)\n' +
' at Datastore._insert (/Applications/Insomnia.app/Contents/Resources/app.asar/node_modules/nedb/lib/datastore.js:348:10)\n' +
' at /Applications/Insomnia.app/Contents/Resources/app.asar/node_modules/nedb/lib/executor.js:40:13\n' +
' at Immediate.process (/Applications/Insomnia.app/Contents/Resources/app.asar/node_modules/async/lib/async.js:731:21)\n' +
' at processImmediate (node:internal/timers:464:21)'
}
Insomnia Version
2022.2.1
What operating system are you using?
macOS
Operating System Version
macOS Monterey 12.1
Installation method
Download from insomnia.rest
Last Known Working Insomnia version
No response
@erwinw thank you for reporting this issue!
-
Did you recently upgrade Insomnia to 2022.2.1? (Any idea what was your previous version before the upgrade?)
-
In order to help us debug, could you kindly check in your Insomnia Data folder (e.g.
open ~/Library/Application\ Support/Insomnia
) if there's any single file (e.g.insomnia.Environment.db
that has that keyenv_b9f6a0b882c4388cc6c3739c14faf92c789effba
duplicate, and share a bit more information?
I have the same issue!
The same issue. After uploading new project I can't open old ones
How to resolve the above unique constraint error like the above one and to recover the existing curls.
+1
+1
I'm experiencing the same thing on version:
Version: Insomnia 2023.2.2
Build date: 5/17/2023
OS: Darwin arm64 21.6.0
Electron: 22.0.0
Node: 16.17.1
V8: 10.8.168.20-electron.0
Architecture: arm64
I was able to address (not fix) the issue by downgrading the application to a version that a coworker was using (and not having issues with); version: 2022.7.5.