简体   繁体   中英

Dialogflow PHP rest api

PHP REST Api used for Dialog Flow detectIntent() function gives internal server error.

We are connecting to Google Dialog flow service from AWS EC2 instance. But we are receiving internal server error 500.

I have tried many solution, I initially thought it was AWS EC2 Instance problem because Dialog flow code is working fine to my local windows server but not on AWS server.

After few research, i found that it was the problem of bcMath module which is not installed on my EC2 Instance php setting.

Following are the steps to install bcMath module on PHP - 1. First check if you have bcMath. Check this using phpinfo(); function. 2. Use following command to install bcMath on your AWS instance php - $sudo yum install php55-bcmath

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM