This repo contains every ML/NLU related code written by Botpress in the NodeJS environment. This includes the Botpress Standalone NLU Server.
23
stars
21
forks
source link
fix(worker): fix node typings to pass environement variables correctly when spawning new thread #76
Closed
franklevasseur closed 3 years ago
Allright, this fixes a bug posted on the community forum here.
It's probably to unluckiest bug I've seen in my short dev career...
Basically what happened is:
packages/worker/src/thread-pool.ts
at line13
new Thread(entryPoint, { ...env })
new Thread(entryPoint, { env: myEnvObject })
options.env
was simply undefined which defaults toprocess.env
'env'
is defined with value"[object Object]"
... (THIS IS SO UNLUCKY)This resulted in the following error:
Well, its fixed now.
Until its release, please consider not using pm2.