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

Plugin Tag Causes Fatal Error #133

Open
jbtaylor opened this issue Feb 6, 2019 · 1 comment
Open

Plugin Tag Causes Fatal Error #133

jbtaylor opened this issue Feb 6, 2019 · 1 comment

Comments

@jbtaylor
Copy link

jbtaylor commented Feb 6, 2019

Running the sample code in the README, I get the following error. It appears that package.json version is used for the plugin tag. This value is 2.2.0 which is not allowed when the tag is loaded. Changing the version to 220 in the package.json resolves this issue.

node v11.8.0
seneca 3.8.0

seneca: The plugin tag string, if defined, must be alphanumeric (matching /^[a-zA-Z0-9_]+$/), and cannot be longer than 1024 characters. Name was '[name?]', and tag was '2.2.0'.

  "notice": "seneca: The plugin tag string, if defined, must be alphanumeric (matching /^[a-zA-Z0-9_]+$/), and cannot be longer than 1024 characters. Name was '[name?]', and tag was '2.2.0'.",
  "code": "bad_plugin_tag",
  "err": {
    "eraro": true,
    "orig": null,
    "code": "bad_plugin_tag",
    "seneca": true,
    "package": "seneca",
    "msg": "seneca: The plugin tag string, if defined, must be alphanumeric (matching /^[a-zA-Z0-9_]+$/), and cannot be longer than 1024 characters. Name was '[name?]', and tag was '2.2.0'.",
    "details": {
      "tag": "2.2.0",
      "plugin": {}
    },
    "callpoint": "at Object.exports.make_plugin_key (/Users/user/Docker/seneca-rabbit/rabbit-test/node_modules/seneca/lib/common.js:51:11)"
  },
  "actid": "znxn1oj9e7vp/0nwe4p95g9ki",
  "msg": {
    "role": "seneca",
    "plugin": "define",
    "name": "seneca-amqp-transport",
    "seq": 2,
    "default$": {},
    "fatal$": true,
    "local$": true,
    "plugin$": {
      "name": "seneca-amqp-transport",
      "tag": "-",
      "fullname": "seneca-amqp-transport"
    }
  },
  "meta": {
    "start": 1549490818113,
    "end": 1549490818147,
    "pattern": "name:seneca-amqp-transport,plugin:define,role:seneca,seq:2,tag:undefined",
    "action": "plugin_definition_8",
    "mi": "znxn1oj9e7vp",
    "tx": "0nwe4p95g9ki",
    "id": "znxn1oj9e7vp/0nwe4p95g9ki",
    "instance": "no34hbddl6he/1549490817551/47055/3.8.0/-",
    "tag": "-",
    "seneca": "3.8.0",
    "version": "0.1.0",
    "fatal": true,
    "local": true,
    "timeout": 22222,
    "dflt": {},
    "custom": {},
    "plugin": {
      "name": "seneca-amqp-transport",
      "tag": "-",
      "fullname": "seneca-amqp-transport"
    },
    "parents": [],
    "remote": false,
    "sync": false,
    "trace": [],
    "sub": null,
    "data": null,
    "err": null,
    "err_trace": null,
    "error": true,
    "empty": null
  },
  "actdef": {
    "plugin_name": "seneca-amqp-transport",
    "plugin_tag": "-",
    "plugin_fullname": "seneca-amqp-transport",
    "raw": {
      "role": "seneca",
      "plugin": "define",
      "name": "seneca-amqp-transport",
      "seq": 2
    },
    "plugin": {
      "name": "seneca-amqp-transport",
      "tag": "-",
      "fullname": "seneca-amqp-transport"
    },
    "sub": false,
    "client": false,
    "rules": {},
    "id": "plugin_definition_8",
    "name": "plugin_definition",
    "pattern": "name:seneca-amqp-transport,plugin:define,role:seneca,seq:2,tag:undefined",
    "msgcanon": {
      "name": "seneca-amqp-transport",
      "plugin": "define",
      "role": "seneca",
      "seq": 2,
      "tag": "undefined"
    },
    "priorpath": ""
  },
  "client": false,
  "listen": false,
  "transport": {},
  "kind": "act",
  "case": "ERR",
  "duration": 34,
  "level": "error",
  "plugin_name": "amqp-transport",
  "plugin_tag": "2.2.0",
  "pattern": "name:seneca-amqp-transport,plugin:define,role:seneca,seq:2,tag:undefined",
  "seneca": "no34hbddl6he/1549490817551/47055/3.8.0/-",
  "when": 1549490818147
}```
@UDB
Copy link

UDB commented Feb 24, 2019

Here is the pull request for the same issue
#130

As suggested, for now you can modify index.js file and use it

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