You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running atom 1.14.4 on openSUSE and tried installing rest-client. I get the following error when click "show" in the packages menu:
Uncaught EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self'".
/home/$USER/.atom/packages/rest-client/node_modules/ajv/lib/compile/index.js:171
Hide Stack Trace
EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self'".
at Ajv.localCompile (/home/$USER/.atom/packages/rest-client/node_modules/ajv/lib/compile/index.js:139:26)
at Ajv.resolve (/home/$USER/.atom/packages/rest-client/node_modules/ajv/lib/compile/resolve.js:53:19)
at Object.resolveRef (/home/$USER/.atom/packages/rest-client/node_modules/ajv/lib/compile/index.js:210:21)
at Object.generate_ref [as code] (/home/$USER/.atom/packages/rest-client/node_modules/ajv/lib/dotjs/ref.js:22:22)
at Object.generate_validate [as validate] (/home/$USER/.atom/packages/rest-client/node_modules/ajv/lib/dotjs/validate.js:156:37)
at Object.generate_properties [as code] (/home/$USER/.atom/packages/rest-client/node_modules/ajv/lib/dotjs/properties.js:199:26)
at generate_validate (/home/$USER/.atom/packages/rest-client/node_modules/ajv/lib/dotjs/validate.js:229:37)
at localCompile (/home/$USER/.atom/packages/rest-client/node_modules/ajv/lib/compile/index.js:99:22)
at Ajv.compile (/home/$USER/.atom/packages/rest-client/node_modules/ajv/lib/compile/index.js:67:13)
at _compile (/home/$USER/.atom/packages/rest-client/node_modules/ajv/lib/ajv.js:328:29)
at getSchema (/home/$USER/.atom/packages/rest-client/node_modules/ajv/lib/ajv.js:192:51)
at validate (/home/$USER/.atom/packages/rest-client/node_modules/ajv/lib/ajv.js:91:11)
at validateSchema (/home/$USER/.atom/packages/rest-client/node_modules/ajv/lib/ajv.js:162:19)
at _addSchema (/home/$USER/.atom/packages/rest-client/node_modules/ajv/lib/ajv.js:288:7)
at addSchema (/home/$USER/.atom/packages/rest-client/node_modules/ajv/lib/ajv.js:133:26)
at addInitialSchemas (/home/$USER/.atom/packages/rest-client/node_modules/ajv/lib/ajv.js:396:39)
at new Ajv (/home/$USER/.atom/packages/rest-client/node_modules/ajv/lib/ajv.js:78:3)
at Object.<anonymous> (/home/$USER/.atom/packages/rest-client/node_modules/har-validator/lib/node4/promise.js:43:11)
at Module._compile (/usr/share/atom/resources/app.asar/src/native-compile-cache.js:109:30)
at Object.value [as .js] (/usr/share/atom/resources/app.asar/src/compile-cache.js:216:21)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)
at Module.require (module.js:483:17)
at require (/usr/share/atom/resources/app.asar/src/native-compile-cache.js:50:27)
at Object.<anonymous> (/home/$USER/.atom/packages/rest-client/node_modules/request/lib/har.js:5:16)
at Module._compile (/usr/share/atom/resources/app.asar/src/native-compile-cache.js:109:30)
at Object.value [as .js] (/usr/share/atom/resources/app.asar/src/compile-cache.js:216:21)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)
at Module.require (module.js:483:17)
at require (/usr/share/atom/resources/app.asar/src/native-compile-cache.js:50:27)
at Object.<anonymous> (/home/$USER/.atom/packages/rest-client/node_modules/request/request.js:25:31)
at Module._compile (/usr/share/atom/resources/app.asar/src/native-compile-cache.js:109:30)
at Object.value [as .js] (/usr/share/atom/resources/app.asar/src/compile-cache.js:216:21)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)
at Module.require (module.js:483:17)
at require (/usr/share/atom/resources/app.asar/src/native-compile-cache.js:50:27)
at Object.<anonymous> (/home/$USER/.atom/packages/rest-client/node_modules/request/index.js:144:19)
at Module._compile (/usr/share/atom/resources/app.asar/src/native-compile-cache.js:109:30)
at Object.value [as .js] (/usr/share/atom/resources/app.asar/src/compile-cache.js:216:21)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)
at Module.require (module.js:483:17)
at require (/usr/share/atom/resources/app.asar/src/native-compile-cache.js:50:27)
at Object.<anonymous> (/home/$USER/.atom/packages/rest-client/lib/rest-client-http.coffee:1:11)
at Object.<anonymous> (/home/$USER/.atom/packages/rest-client/lib/rest-client-http.coffee:1:1)
at Module._compile (/usr/share/atom/resources/app.asar/src/native-compile-cache.js:109:30)
at Object.value [as .coffee] (/usr/share/atom/resources/app.asar/src/compile-cache.js:216:21)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)
at Module.require (module.js:483:17)
at require (/usr/share/atom/resources/app.asar/src/native-compile-cache.js:50:27)
at Object.<anonymous> (/home/$USER/.atom/packages/rest-client/lib/rest-client-view.coffee:8:18)
at Object.<anonymous> (/home/$USER/.atom/packages/rest-client/lib/rest-client-view.coffee:1:1)
at Module._compile (/usr/share/atom/resources/app.asar/src/native-compile-cache.js:109:30)
at Object.value [as .coffee] (/usr/share/atom/resources/app.asar/src/compile-cache.js:216:21)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)
at Module.require (module.js:483:17)
at require (/usr/share/atom/resources/app.asar/src/native-compile-cache.js:50:27)
at createRestClientView (/home/$USER/.atom/packages/rest-client/lib/rest-client.coffee:5:21)
at /home/$USER/.atom/packages/rest-client/lib/rest-client.coffee:63:7
at Workspace.module.exports.Workspace.openURIInPane (/usr/share/atom/resources/app.asar/src/workspace.js:501:22)
at Workspace.module.exports.Workspace.open (/usr/share/atom/resources/app.asar/src/workspace.js:436:19)
at atom-workspace.<anonymous> (/home/$USER/.atom/packages/rest-client/lib/rest-client.coffee:66:22)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/usr/share/atom/resources/app.asar/src/command-registry.js:259:29)
at CommandRegistry.handleCommandEvent (/usr/share/atom/resources/app.asar/src/command-registry.js:3:59)
at CommandRegistry.module.exports.CommandRegistry.dispatch (/usr/share/atom/resources/app.asar/src/command-registry.js:160:19)
at AtomEnvironment.module.exports.AtomEnvironment.dispatchApplicationMenuCommand (/usr/share/atom/resources/app.asar/src/atom-environment.js:1164:28)
at EventEmitter.outerCallback (/usr/share/atom/resources/app.asar/src/application-delegate.js:320:25)
at emitThree (events.js:116:13)
at EventEmitter.emit (events.js:194:7)
The error was thrown from the rest-client package. You can help by creating an issue. Please explain what actions triggered this error.
Create issue on the rest-client package
Any idea how to solve this? Thanks!
The text was updated successfully, but these errors were encountered:
Hi.
Running atom 1.14.4 on openSUSE and tried installing rest-client. I get the following error when click "show" in the packages menu:
Any idea how to solve this? Thanks!
The text was updated successfully, but these errors were encountered: