My team have created a chatbot with the template of “Chatbot with Dialogflow”. It works fine in the local environment-- when connected with home or office WIFI. However, after we transferred the same setup to the PC under office network, the node.js component had an error when we opened up the chatbot (screenshot attached).
Additionally, I would like to clarify what does the line “[DEBUG] orchestrator-undefined” means in the attached screenshot.
Thanks in advance!
Could you share the non-sensitive content of your config/default.json or whatever config file you are using?
Also, can you validate that the machine has direct network access to both Orchestrator and Dialogflow?
OK, so you are using a Cloud Orchestrator instance.
Here are a few things to try out:
inside package.json, replace the version of “uipath-orchestrator” from “^1.1.0” to “*” to get the latest (then delete node_modules and re-run npm install)
in your default.json’s “orchestrator” member, add the property “invalidCertificate”: true
in your default.json’s “orchestrator” member, add the property “hostname”: “cloud.uipath.com”
May I ask what do u mean by direct access?
I mean do you use a proxy for internet access?
We have enabled Orchestrator access with IIS, but not for DialogFlow(We tried for DialogFlow but failed).
If you are using Cloud Orchestrator, how does IIS have anything to do with it?
I would like to clarify what does the line “[DEBUG] orchestrator-undefined” means in the attached screenshot.
I have double checked the code, but could not find a logger call in the orchestrator.js file corresponding to that line. Are you sure it isn’t something someone from your team added to help with the troubleshooting?
Thanks a lot for the detailed explanation to my questions. I am a new member in my team, sorry for some confusing points that I have raised.
I have checked with my team, we do not have proxy internet access for Orchestrator and DialogFlow. We use cloud Orchestrator for testing purpose and finally, we will use an enterprise version and make our own server as we want the chatbot application to be only available within the company. Thus, we put Orchestrator under IIS and have made certificates, so that our office laptops have access to Orchestrator.
Now the problem is that we found “Error: Self-signed certificate in certificate chain” with node.js under our office network environment.Could you please give some suggestions about it? Thank you very much!
In that case, the default.json configuration will need to connect to the local Orchestrator instance with something similar to this:
"host": "orchestrator.domain.com", // whatever hostname for the Orchestrator instance
"usernameOrEmailAddress": "bob", // the username to use to log into Orchestrator