Hi,
At some point I started getting these error messages in my logs:
May 20 08:43:22 broker1 nodered[13637]: TypeError: node.type.padEnd is not a function
May 20 08:43:22 broker1 nodered[13637]: at Flow.start (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/flows/Flow.js:221:62)
May 20 08:43:22 broker1 nodered[13637]: at start (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/flows/index.js:329:33)
May 20 08:43:22 broker1 nodered[13637]: at tryCatchReject (/usr/lib/node_modules/node-red/node_modules/when/lib/makePromise.js:845:30)
May 20 08:43:22 broker1 nodered[13637]: at runContinuation1 (/usr/lib/node_modules/node-red/node_modules/when/lib/makePromise.js:804:4)
May 20 08:43:22 broker1 nodered[13637]: at Fulfilled.when (/usr/lib/node_modules/node-red/node_modules/when/lib/makePromise.js:592:4)
May 20 08:43:22 broker1 nodered[13637]: at Pending.run (/usr/lib/node_modules/node-red/node_modules/when/lib/makePromise.js:483:13)
May 20 08:43:22 broker1 nodered[13637]: at Scheduler._drain (/usr/lib/node_modules/node-red/node_modules/when/lib/Scheduler.js:62:19)
May 20 08:43:22 broker1 nodered[13637]: at Scheduler.drain (/usr/lib/node_modules/node-red/node_modules/when/lib/Scheduler.js:27:9)
May 20 08:43:22 broker1 nodered[13637]: at _combinedTickCallback (internal/process/next_tick.js:132:7)
May 20 08:43:22 broker1 nodered[13637]: at process._tickCallback (internal/process/next_tick.js:181:9)
I'm looking for suggestions at tracking down where the call originate (in order to, well, try fixing it).
Node-RED startup:
May 20 08:43:15 broker1 nodered[13637]: Welcome to Node-RED
May 20 08:43:15 broker1 nodered[13637]: ===================
May 20 08:43:15 broker1 nodered[13637]: 20 May 08:43:15 - [info] Node-RED version: v0.20.5
May 20 08:43:15 broker1 nodered[13637]: 20 May 08:43:15 - [info] Node.js version: v8.16.0
May 20 08:43:15 broker1 nodered[13637]: 20 May 08:43:15 - [info] Linux 4.14.107-157 arm LE
May 20 08:43:15 broker1 nodered[13637]: 20 May 08:43:15 - [info] Loading palette nodes
May 20 08:43:19 broker1 nodered[13637]: 20 May 08:43:19 - [info] Dashboard version 2.15.1 started at /ui
May 20 08:43:21 broker1 nodered[13637]: 20 May 08:43:21 - [info] Settings file : /home/nodered/.node-red/settings.js
May 20 08:43:21 broker1 nodered[13637]: 20 May 08:43:21 - [info] Context store : 'default' [module=memory]
May 20 08:43:21 broker1 nodered[13637]: 20 May 08:43:21 - [info] User directory : /home/nodered/.node-red
May 20 08:43:21 broker1 nodered[13637]: 20 May 08:43:21 - [warn] Projects disabled : set editorTheme.projects.enabled=true to enable
May 20 08:43:21 broker1 nodered[13637]: 20 May 08:43:21 - [info] Flows file : /home/nodered/.node-red/flows.json
May 20 08:43:21 broker1 nodered[13637]: 20 May 08:43:21 - [info] Server now running at https://127.0.0.1:1880/
I did this search in my .node-red
directory:
nodered@broker1:~/.node-red$ grep -R padEnd *
node_modules/lodash/string.js: 'padEnd': require('./padEnd'),
node_modules/lodash/core.js: * `padEnd`, `padStart`, `parseInt`, `pop`, `random`, `reduce`, `reduceRight`,
node_modules/lodash/lodash.min.js:return""},An.stubTrue=function(){return true},An.multiply=tc,An.nth=function(n,t){return n&&n.length?Qt(n,Au(t)):T},An.noConflict=function(){return $n._===this&&($n._=li),this},An.noop=Nu,An.now=Ko,An.pad=function(n,t,r){n=Ou(n);var e=(t=Au(t))?D(n):0;return!t||e>=t?n:(t=(t-e)/2,ne(Oi(t),r)+n+ne(Si(t),r))},An.padEnd=function(n,t,r){n=Ou(n);var e=(t=Au(t))?D(n):0;return t&&e<t?n+ne(t-e,r):n},An.padStart=function(n,t,r){n=Ou(n);var e=(t=Au(t))?D(n):0;return t&&e<t?ne(t-e,r)+n:n},An.parseInt=function(n,t,r){
node_modules/lodash/wrapperLodash.js: * `padEnd`, `padStart`, `parseInt`, `pop`, `random`, `reduce`, `reduceRight`,
node_modules/lodash/lodash.js: * `padEnd`, `padStart`, `parseInt`, `pop`, `random`, `reduce`, `reduceRight`,
node_modules/lodash/lodash.js: * _.padEnd('abc', 6);
node_modules/lodash/lodash.js: * _.padEnd('abc', 6, '_-');
node_modules/lodash/lodash.js: * _.padEnd('abc', 3);
node_modules/lodash/lodash.js: function padEnd(string, length, chars) {
node_modules/lodash/lodash.js: lodash.padEnd = padEnd;
node_modules/lodash/fp/padCharsEnd.js: func = convert('padCharsEnd', require('../padEnd'));
node_modules/lodash/fp/_mapping.js: 'omitBy', 'overArgs', 'pad', 'padEnd', 'padStart', 'parseInt', 'partial',
node_modules/lodash/fp/_mapping.js: 'padCharsEnd': 'padEnd',
node_modules/lodash/fp/padEnd.js: func = convert('padEnd', require('../padEnd'));
node_modules/lodash/padEnd.js: * _.padEnd('abc', 6);
node_modules/lodash/padEnd.js: * _.padEnd('abc', 6, '_-');
node_modules/lodash/padEnd.js: * _.padEnd('abc', 3);
node_modules/lodash/padEnd.js:function padEnd(string, length, chars) {
node_modules/lodash/padEnd.js:module.exports = padEnd;
That all looks like defintions of the padEnd
function, no actual use of it ...
/michael