Skip to content
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

Not able to install insomnia plugin v2.0.0 in any of 3 available installation preferences #37

Closed
Ketan88 opened this issue Jun 24, 2022 · 2 comments

Comments

@Ketan88
Copy link

Ketan88 commented Jun 24, 2022

NOTE: version 1.1.14 works with installation method #3 (Manual installation). v2.0.0 is not working with any of 3 installation preferences. Error details below.

Insomnia version: Version: Insomnia Core 2020.5.1

#1 https://github.com/Mastercard/insomnia-plugin-mastercard#1-one-click-installation

This failed with an error message "Yarn error {"type":"error","data":"Received invalid response from npm."}"

#2 https://github.com/Mastercard/insomnia-plugin-mastercard#2-from-the-plugins-tab
This failed with below error message
"Failed to install insomnia-plugin-mastercard

There may be an issue with the plugin itself, as a note you can discover and install plugins from the [Plugin Hub.].             
(https://insomnia.rest/plugins/)
Additionl Information
Error: Yarn error {"type":"error","data":"Received invalid response from npm."}

at file:///Applications/Insomnia.app/Contents/Resources/app.asar/bundle.js:103287:16
at ChildProcess.exithandler (child_process.js:295:7)
at ChildProcess.emit (events.js:223:5)
at maybeClose (internal/child_process.js:1021:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)" 

#3 https://github.com/Mastercard/insomnia-plugin-mastercard#3-manual-installation
This failed with below error message

Error: Cannot find module 'mastercard-client-encryption'
Require stack:
- /Users/XXX/Library/Application Support/Insomnia/plugins/insomnia-plugin-mastercard-2.0.0/src/encryption/client- 
encryption.js
- /Users/XXX/Library/Application Support/Insomnia/plugins/insomnia-plugin-mastercard-2.0.0/src/plugin.js
- /Users/XXX/Library/Application Support/Insomnia/plugins/insomnia-plugin-mastercard-2.0.0/index.js
- /Applications/Insomnia.app/Contents/Resources/app.asar/renderer.html
at Module._resolveFilename (internal/modules/cjs/loader.js:797:17)
at Function.i._resolveFilename (electron/js2c/renderer_init.js:42:687)
at Module._load (internal/modules/cjs/loader.js:690:27)
at Function.Module._load (electron/js2c/asar.js:769:28)
at Module.require (internal/modules/cjs/loader.js:852:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object.<anonymous> (/Users/XXX/Library/Application Support/Insomnia/plugins/insomnia-plugin-mastercard- 
2.0.0/src/encryption/client-encryption.js:2:26)
at Object.<anonymous> (/Users/XXX/Library/Application Support/Insomnia/plugins/insomnia-plugin-mastercard- 
2.0.0/src/encryption/client-encryption.js:63:3)
at Module._compile (internal/modules/cjs/loader.js:967:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1004:10)
@ech0s7r
Copy link
Member

ech0s7r commented Jun 24, 2022

Hi @Ketan88,

Thanks for opening the issue and providing the details.

We are working on a new version that will fix installation methods #1 and #2. Meanwhile, please try installing the plugin (v. 2.0.0) using method #3 and the asset published here:

https://github.com/Mastercard/insomnia-plugin-mastercard/releases/tag/v2.0.0
image

@Ketan88
Copy link
Author

Ketan88 commented Jun 24, 2022

@ech0s7r , thanks for providing instructions for manual installation. I have used it and its working correctly. Thank you for the resolution.

@ech0s7r ech0s7r closed this as completed Jun 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants