Skip to content

Instantly share code, notes, and snippets.

@arthurvi
Last active August 2, 2016 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arthurvi/ae2d05d3c28cce8171b12dd6ab6d071f to your computer and use it in GitHub Desktop.
Save arthurvi/ae2d05d3c28cce8171b12dd6ab6d071f to your computer and use it in GitHub Desktop.
Seneca-joi issue
{
"name": "seneca-joi-test",
"version": "1.0.0",
"description": "Replicate issue with seneca-joi",
"main": "server.js",
"author": "Planl",
"scripts": {
"start": "node server.js"
},
"dependencies": {
"seneca": "2.1.0",
"seneca-entity": "1.0.0",
"seneca-joi": "0.2.0"
}
}
'use strict';
const seneca = require('seneca')({
legacy: {
validate: false // Required for Joi to work
}
});
// Initialize seneca and start listening
seneca
.use('entity')
.use('joi');
seneca.ready(() => {
seneca.listen({
type: 'tcp'
});
});
> node server.js
2016-08-02T08:45:53.036Z v4ojirpomp8x/1470127553009/88161/- INFO hello Seneca/2.1.0/v4ojirpomp8x/1470127553009/88161/-
2016-08-02T08:45:53.513Z v4ojirpomp8x/1470127553009/88161/- FATAL sys seneca 2.1.0 v4ojirpomp8x/1470127553009/88161/- plugin_not_found seneca: use-plugin: Could not load plugin joi; require search list: joi, seneca-joi, ./joi, ./seneca-joi. {} -
2016-08-02T08:45:53.614Z v4ojirpomp8x/1470127553009/88161/- INFO listen {type:tcp}
2016-08-02T08:45:53.622Z v4ojirpomp8x/1470127553009/88161/- ERROR act transport OUT cmd:listen,role:transport 6 {config:{type:tcp,host:0.0.0.0,port:10201,timeout:5555,msgprefix:seneca_,callmax:111111,msgidlen:12,path:null}, ENTRY (muea6n2aiy8a) GATE seneca: instance-closed instance-closed {args:{config:{type:tcp,host:0.0.0.0,port:10201,timeout:5555,msgprefix:seneca_,callmax:111111,msgidlen:12,path: Error: seneca: instance-closed
at Object.errormaker [as error] (/Users/arthurvisser/dev/meechum/node_modules/eraro/eraro.js:94:15)
at Array.done (/Users/arthurvisser/dev/meechum/node_modules/seneca/seneca.js:1156:23)
at validate_action_message (/Users/arthurvisser/dev/meechum/node_modules/seneca/seneca.js:1504:19)
at Object.execute_action [as fn] (/Users/arthurvisser/dev/meechum/node_modules/seneca/seneca.js:1115:7)
at Immediate.<anonymous> (/Users/arthurvisser/dev/meechum/node_modules/gate-executor/gate-executor.js:136:14)
at runCallback (timers.js:570:20)
at tryOnImmediate (timers.js:550:5)
at processImmediate [as _immediateCallback] (timers.js:529:5)
2016-08-02T08:45:53.624Z v4ojirpomp8x/1470127553009/88161/- FATAL sys seneca 2.1.0 v4ojirpomp8x/1470127553009/88161/- transport_listen seneca: seneca: instance-closed {type:tcp,host:0.0.0.0,port:10201,timeout:5555,msgprefix:seneca_,callmax:111111,msgidlen:12,path:null} -
Seneca Fatal Error
==================
Message: seneca: use-plugin: Could not load plugin joi; require search list: joi, seneca-joi, ./joi, ./seneca-joi.
Code: plugin_not_found
Details: { 'orig$':
{ Error: use-plugin: Could not load plugin joi; require search list: joi, seneca-joi, ./joi, ./seneca-joi.
at errormaker (/Users/arthurvisser/dev/meechum/node_modules/eraro/eraro.js:94:15)
at Object.use (/Users/arthurvisser/dev/meechum/node_modules/use-plugin/use.js:94:13)
at Seneca.api_use [as use] (/Users/arthurvisser/dev/meechum/node_modules/seneca/seneca.js:997:29)
at Object.<anonymous> (/Users/arthurvisser/dev/meechum/server.js:11:3)
at Module._compile (module.js:541:32)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:458:32)
at tryModuleLoad (module.js:417:12)
at Function.Module._load (module.js:409:3)
at Module.runMain (module.js:575:10)
eraro: true,
orig: null,
code: 'not_found',
'use-plugin': true,
package: 'use-plugin',
msg: 'use-plugin: Could not load plugin joi; require search list: joi, seneca-joi, ./joi, ./seneca-joi.',
details:
{ options: {},
callback: undefined,
history:
[ { module: '/Users/arthurvisser/dev/meechum/node_modules/seneca/seneca.js',
path: 'joi' } ],
name: 'joi',
search:
[ { type: 'normal', name: 'joi' },
{ type: 'normal', name: 'seneca-joi' },
{ type: 'normal', name: './joi' },
{ type: 'normal', name: './seneca-joi' } ],
modulepath: '/Users/arthurvisser/dev/meechum/node_modules/seneca/seneca.js',
requirepath: 'joi',
found: { type: 'normal', name: 'joi' },
init:
{ isJoi: true,
_type: 'any',
_settings: null,
_valids: { _set: [] },
_invalids: { _set: [] },
_tests: [],
_refs: [],
_flags: {},
_description: null,
_unit: null,
_notes: [],
_tags: [],
_examples: [],
_meta: [],
_inner: {},
any: [Function],
alt: [Function],
alternatives: [Function],
array: [Function],
bool: [Function],
boolean: [Function],
binary: [Function],
date: [Function],
func: [Function],
number: [Function],
object: [Function],
string: [Function],
ref: [Function],
isRef: [Function],
validate: [Function],
describe: [Function],
compile: [Function],
assert: [Function],
attempt: [Function],
reach: [Function] },
searchlist: 'joi, seneca-joi, ./joi, ./seneca-joi' },
callpoint: 'at Seneca.api_use [as use] (/Users/arthurvisser/dev/meechum/node_modules/seneca/seneca.js:997:29)' },
'message$': 'use-plugin: Could not load plugin joi; require search list: joi, seneca-joi, ./joi, ./seneca-joi.' }
Stack:
at errormaker (/Users/arthurvisser/dev/meechum/node_modules/eraro/eraro.js:94:15)
at Object.use (/Users/arthurvisser/dev/meechum/node_modules/use-plugin/use.js:94:13)
at Seneca.api_use [as use] (/Users/arthurvisser/dev/meechum/node_modules/seneca/seneca.js:997:29)
at Object.<anonymous> (/Users/arthurvisser/dev/meechum/server.js:11:3)
at Module._compile (module.js:541:32)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:458:32)
at tryModuleLoad (module.js:417:12)
at Function.Module._load (module.js:409:3)
at Module.runMain (module.js:575:10)
Instance: Seneca/2.1.0/v4ojirpomp8x/1470127553009/88161/-
at Seneca.api_use [as use] (/Users/arthurvisser/dev/meechum/node_modules/seneca/seneca.js:1000:12)
When: 2016-08-02T08:45:53.519Z
Log: [sys,seneca,2.1.0,v4ojirpomp8x/1470127553009/88161/-,plugin_not_found,seneca: use-plugin: Could not load plugin
Node:
{ http_parser: '2.7.0', node: '6.3.1', v8: '5.0.71.57', uv: '1.9.1', zlib: '1.2.8', ares: '1.10.1-DEV', icu: '57.1', modules: '48', openssl: '1.0.2h' },
{ debug: false, uv: true, ipv6: true, tls_npn: true, tls_alpn: true, tls_sni: true, tls_ocsp: true, tls: true },
[ 'Binding contextify', 'Binding natives', 'NativeModule events', 'NativeModule util', 'Binding uv', 'NativeModule buffer', 'Binding buffer', 'Binding util', 'NativeModule internal/util', 'NativeModule timers', 'Binding timer_wrap', 'NativeModule internal/linkedlist', 'NativeModule assert', 'NativeModule internal/process', 'Binding config', 'NativeModule internal/process/warning', 'NativeModule internal/process/next_tick', 'NativeModule internal/process/promises', 'NativeModule internal/process/stdio', 'Binding constants', 'NativeModule path', 'NativeModule module', 'NativeModule internal/module', 'NativeModule vm', 'NativeModule fs', 'Binding fs', 'NativeModule stream', 'NativeModule _stream_readable', 'NativeModule internal/streams/BufferList', 'NativeModule _stream_writable', 'NativeModule _stream_duplex', 'NativeModule _stream_transform', 'NativeModule _stream_passthrough', 'Binding fs_event_wrap', 'NativeModule console', 'Binding tty_wrap', 'NativeModule tty', 'NativeModule net', 'NativeModule internal/net', 'Binding cares_wrap', 'Binding tcp_wrap', 'Binding pipe_wrap', 'Binding stream_wrap', 'Binding signal_wrap', 'NativeModule repl', 'NativeModule readline', 'NativeModule internal/readline', 'NativeModule domain', 'NativeModule os', 'Binding os', 'NativeModule http', 'NativeModule _http_incoming', 'NativeModule _http_common', 'Binding http_parser', 'NativeModule internal/freelist', 'NativeModule _http_outgoing', 'NativeModule _http_server', 'NativeModule _http_agent', 'NativeModule _http_client', 'NativeModule url', 'Binding icu', 'NativeModule querystring', 'NativeModule https', 'NativeModule tls', 'Binding crypto', 'NativeModule _tls_common', 'NativeModule _tls_wrap', 'NativeModule crypto', 'NativeModule internal/streams/lazy_transform', 'NativeModule string_decoder', 'NativeModule _stream_wrap', 'Binding js_stream', 'Binding tls_wrap', 'NativeModule _tls_legacy', 'NativeModule dns' ]
Process:
pid=88161, arch=x64, platform=darwin,
path=/usr/local/Cellar/node/6.3.1/bin/node,
argv=[ '/usr/local/Cellar/node/6.3.1/bin/node', '/Users/arthurvisser/dev/meechum/server.js' ],
env={ npm_config_save_dev: '', npm_config_legacy_bundling: '', npm_config_dry_run: '', npm_config_viewer: 'man', npm_config_only: '', npm_config_browser: '', npm_package_gitHead: 'aadaa9e63c21c720bffe2f63af16df999638114b', npm_config_also: '', npm_config_rollback: 'true', TERM_PROGRAM: 'HyperTerm', NODE: '/usr/local/Cellar/node/6.3.1/bin/node', npm_config_usage: '', ANDROID_HOME: '/usr/local/opt/android-sdk', npm_config_globalignorefile: '/usr/local/etc/npmignore', SHELL: '/bin/bash', TERM: 'xterm-256color', npm_config_shell: '/bin/bash', npm_config_maxsockets: '50', npm_config_init_author_url: '', npm_config_shrinkwrap: 'true', npm_config_parseable: '', TMPDIR: '/var/folders/xz/rph2xhpn1gbgxkzv0vkmbj540000gn/T/', npm_config_init_license: 'ISC', npm_package_dependencies_seneca_joi: '0.2.0', Apple_PubSub_Socket_Render: '/private/tmp/com.apple.launchd.FWj79l0A3R/Render', npm_config_if_present: '', TERM_PROGRAM_VERSION: '0.7.1', npm_config_sign_git_tag: '', npm_config_init_author_email: '', npm_config_cache_max: 'Infinity', npm_config_long: '', npm_config_local_address: '', npm_config_git_tag_version: 'true', npm_config_cert: '', npm_config_registry: 'https://registry.npmjs.org/', npm_config_npat: '', npm_config_fetch_retries: '2', npm_config_versions: '', npm_config_message: '%s', npm_config_key: '', npm_package_description: 'Replicate issue with seneca-joi', USER: 'arthurvisser', npm_config_globalconfig: '/usr/local/etc/npmrc', npm_config_always_auth: '', SSH_AUTH_SOCK: '/private/tmp/com.apple.launchd.QdxnoDjmoS/Listeners', __CF_USER_TEXT_ENCODING: '0x1F5:0x0:0x5', VSCODE_TSJS: '1', npm_execpath: '/usr/local/lib/node_modules/npm/bin/npm-cli.js', npm_config_global_style: '', npm_config_cache_lock_retries: '10', npm_config_cafile: '', npm_package_author_name: 'Planl', npm_config_heading: 'npm', npm_config_proprietary_attribs: 'true', npm_config_fetch_retry_mintimeout: '10000', GOOGLE_API_KEY: 'AIzaSyAQfxPJiounkhOjODEO5ZieffeBv6yft2Q', npm_config_json: '', npm_config_access: '', npm_config_argv: '{"remain":[],"cooked":["start"],"original":["start"]}', PATH: '/usr/local/lib/node_modules/npm/bin/node-gyp-bin:/Users/arthurvisser/dev/meechum/node_modules/.bin:/usr/local/Cellar/node/6.3.1/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin', npm_package_dependencies_seneca: '2.1.0', npm_config_https_proxy: '', npm_config_engine_strict: '', npm_config_description: 'true', _: '/usr/local/Cellar/node/6.3.1/bin/node', npm_config_userconfig: '/Users/arthurvisser/.npmrc', npm_config_init_module: '/Users/arthurvisser/.npm-init.js', PWD: '/Users/arthurvisser/dev/meechum', npm_config_user: '501', npm_config_node_version: '6.3.1', npm_lifecycle_event: 'start', npm_config_save: '', npm_config_editor: 'vi', npm_package_name: 'seneca-joi-test', LANG: 'nl.UTF-8', npm_config_tag: 'latest', npm_config_progress: 'true', npm_config_global: '', npm_package_scripts_start: 'node server.js', npm_config_optional: 'true', XPC_FLAGS: '0x0', npm_config_force: '', npm_config_bin_links: 'true', NODE_ENV: 'production', npm_config_searchopts: '', npm_config_depth: 'Infinity', npm_package_main: 'server.js', npm_config_searchsort: 'name', npm_config_rebuild_bundle: 'true', npm_package_version: '1.0.0', XPC_SERVICE_NAME: '0', npm_config_unicode: 'true', HOME: '/Users/arthurvisser', SHLVL: '2', npm_config_fetch_retry_maxtimeout: '60000', npm_config_tag_version_prefix: 'v', npm_config_strict_ssl: 'true', npm_config_save_prefix: '^', npm_config_loglevel: 'warn', npm_config_ca: '', npm_config_save_exact: '', npm_config_group: '20', npm_config_fetch_retry_factor: '10', npm_config_dev: '', npm_config_version: '', npm_config_cache_lock_stale: '60000', npm_config_cache_min: '10', npm_config_searchexclude: '', npm_config_cache: '/Users/arthurvisser/.npm', LOGNAME: 'arthurvisser', npm_lifecycle_script: 'node server.js', npm_config_color: 'true', npm_config_proxy: '', npm_config_save_optional: '', npm_config_ignore_scripts: '', npm_config_user_agent: 'npm/3.10.3 node/v6.3.1 darwin x64', npm_package_dependencies_seneca_entity: '1.0.0', npm_config_cache_lock_wait: '10000', ANDROID_NDK_HOME: '/usr/local/opt/android-ndk', npm_config_production: 'true', npm_config_save_bundle: '', npm_config_umask: '0022', npm_config_init_version: '1.0.0', npm_config_scope: '', npm_config_init_author_name: '', npm_config_git: 'git', npm_config_unsafe_perm: 'true', npm_config_tmp: '/var/folders/xz/rph2xhpn1gbgxkzv0vkmbj540000gn/T', npm_config_onload_script: '', npm_node_execpath: '/usr/local/Cellar/node/6.3.1/bin/node', npm_config_link: '', npm_config_prefix: '/usr/local' }
SENECA TERMINATED at 2016-08-02T08:45:53.630Z. See above for error report.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment