-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
oAuth 2 Mate Not Working in Insomnia 8.6.0 #7019
Comments
Insomnia is now using a fork of nedb, https://www.npmjs.com/package/@seald-io/nedb so updating the |
Where exactly do I change where the "insomnia-plugin-oa2-mate" points to "@seald-io/nedb"? |
Never mind. I figured it out. I went into index.js. Then changed: "var NeDb = window.require("nedb"); " to "var NeDb = window.require("@seald-io/nedb");" |
Does this mean everyone needs to find and update index.js to point to the correct nedb? I'm getting this error with the latest version (10.0) of Insomnia on macOS:
Where do i find "index.js" and why is this bug closed? |
@briantully the index.js located under AppData\Roaming\Insomnia\plugins{pugin_name} folder |
Expected Behavior
My oAuth 2 Mate is throwing an error where I try to access the plugin. The Plugins are not working correctly
Actual Behavior
When I click the Plugins I get the following error: Failed to load plugin insomnia-plugin-oa2-mate
Here is what is showing in the Stack Trace:
Error: Cannot find module 'nedb'
Require stack:
at Module._resolveFilename (node:internal/modules/cjs/loader:1084:15)
at o._resolveFilename (node:electron/js2c/renderer_init:2:3225)
at Module._load (node:internal/modules/cjs/loader:929:27)
at l._load (node:electron/js2c/asar_bundle:2:13642)
at o._load (node:electron/js2c/renderer_init:2:2455)
at Module.require (node:internal/modules/cjs/loader:1150:19)
at require (node:internal/modules/cjs/helpers:119:18)
at Object. (C:\Users\sm623\AppData\Roaming\Insomnia\plugins\insomnia-plugin-oa2-mate\index.js:79:19)
at Object. (C:\Users\sm623\AppData\Roaming\Insomnia\plugins\insomnia-plugin-oa2-mate\index.js:181:3)
at Module._compile (node:internal/modules/cjs/loader:1271:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1326:10)
at Module.load (node:internal/modules/cjs/loader:1126:32)
at Module._load (node:internal/modules/cjs/loader:967:12)
at l._load (node:electron/js2c/asar_bundle:2:13642)
at o._load (node:electron/js2c/renderer_init:2:2455)
at Module.require (node:internal/modules/cjs/loader:1150:19)
at require (node:internal/modules/cjs/helpers:119:18)
at uG (file:///C:/Users/sm623/AppData/Local/insomnia/app-8.6.0/resources/app.asar/index-0fe701a5.js:81:7484)
at Sk (file:///C:/Users/sm623/AppData/Local/insomnia/app-8.6.0/resources/app.asar/index-0fe701a5.js:81:8221)
at async u (file:///C:/Users/sm623/AppData/Local/insomnia/app-8.6.0/resources/app.asar/index-0fe701a5.js:1560:17437)
Reproduction Steps
`Error: Cannot find module 'nedb'
Require stack:
at Module._resolveFilename (node:internal/modules/cjs/loader:1084:15)
at o._resolveFilename (node:electron/js2c/renderer_init:2:3225)
at Module._load (node:internal/modules/cjs/loader:929:27)
at l._load (node:electron/js2c/asar_bundle:2:13642)
at o._load (node:electron/js2c/renderer_init:2:2455)
at Module.require (node:internal/modules/cjs/loader:1150:19)
at require (node:internal/modules/cjs/helpers:119:18)
at Object. (C:\Users\sm623\AppData\Roaming\Insomnia\plugins\insomnia-plugin-oa2-mate\index.js:79:19)
at Object. (C:\Users\sm623\AppData\Roaming\Insomnia\plugins\insomnia-plugin-oa2-mate\index.js:181:3)
at Module._compile (node:internal/modules/cjs/loader:1271:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1326:10)
at Module.load (node:internal/modules/cjs/loader:1126:32)
at Module._load (node:internal/modules/cjs/loader:967:12)
at l._load (node:electron/js2c/asar_bundle:2:13642)
at o._load (node:electron/js2c/renderer_init:2:2455)
at Module.require (node:internal/modules/cjs/loader:1150:19)
at require (node:internal/modules/cjs/helpers:119:18)
at uG (file:///C:/Users/sm623/AppData/Local/insomnia/app-8.6.0/resources/app.asar/index-0fe701a5.js:81:7484)
at Sk (file:///C:/Users/sm623/AppData/Local/insomnia/app-8.6.0/resources/app.asar/index-0fe701a5.js:81:8221)
at async u (file:///C:/Users/sm623/AppData/Local/insomnia/app-8.6.0/resources/app.asar/index-0fe701a5.js:1560:17437)`
Is there an existing issue for this?
Additional Information
The only way to clear it is to remove the oAuth 2 Mate. As a result I have to change my Insomnia in the method it captures the oAuth Token. How do we make this work?
Insomnia Version
8.6.0
What operating system are you using?
Windows
Operating System Version
Windows 10
Installation method
Automatic upgrade
Last Known Working Insomnia version
8.5.0
The text was updated successfully, but these errors were encountered: