botpress / nlu

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

franklevasseur commented 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:

This resulted in the following error:

The "options.env" property must be of type object or one of undefined, null, or worker_threads.SHARE_ENV. Received type string ('[object Object]')

Well, its fixed now.

Until its release, please consider not using pm2.