And then after I start elasticsearch server (localhost:9200) and flashlight, everything works fine, when I create a new user using the API above, I also get this from flashlight terminal:
which proves that everything is working fine, the user is inserted into the database, and flashlight also inserted the user into ES server. However, when I have another cloud function:
I have a
users
table in my database, and this is the Cloud Function that creates a user:In my
config.js
file inFlashflight
folder, I am monitoring this table:And then after I start elasticsearch server (localhost:9200) and flashlight, everything works fine, when I create a new user using the API above, I also get this from
flashlight
terminal:which proves that everything is working fine, the user is inserted into the database, and
flashlight
also inserted the user into ES server. However, when I have another cloud function:Where
request
is installed byyarn add request request-promise
, when I use this API, I get error like this:How do I resolve this issue?