insomnia: [Bug] Generate Code Snippet doesn't work behind proxy server

Overview

  • Insomnia Version: 5.7.4
  • Operating System: Manjaro Linux
  • Summary: Attempting to generate code snippets for a service request and it just sits there saying “Generating Code”:

image

Even with the Preferences setting an HTTP proxy, and checking “Enable HTTP Proxy”, it is not used as far as I can tell.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 18 (7 by maintainers)

Most upvoted comments

Hi @tharsik. That’s strange, I’ve never seen that before. It looks like one of the database files got corrupted somehow. Here’s how you can debug it.

Option 1 – Delete Application Data

This method will delete all application data. If you don’t care about losing a few things, this is the easiest option.

To delete all application data, remove this folder from your hard drive: C:\Users\chant_000\AppData\Roaming\Insomnia.

Option 2 – Try Recovering Data

This method is more involved, but you may be able to save some of your data depending on which database file was corrupted.

  • Open C:\Users\chant_000\AppData\Roaming\Insomnia
  • Go through each file that looks like insomnia.* and rename it to something else
    • I recommend trying insomnia.Response.db first, as it is the least important
  • After renaming a file, restart Insomnia and see if it works
  • If it doesn’t work, change the name back to what it was and try another one

Once you find the corrupted file, you can delete it. Depending on which file was corrupted, you may still be still have most of your data. However, if a lot of your data is still missing, I recommend doing step 1.