GoogleCloudPlatform / dialogflow-integrations

Dialogflow integrations with multiple platforms including KIK, Skype, Spark, Twlio, Twitter and Viber
https://cloud.google.com/dialogflow/
Apache License 2.0
256 stars 503 forks source link

agent deployed successfully to twitter then after a while becomes inactive #14

Open trevortrev365 opened 4 years ago

trevortrev365 commented 4 years ago

I managed to follow the instructions to get my dialogflow agent re-integrated into twitter - it replies etc but when i message it a few hours later it becomes unresponsive and I have to redeploy. Any ideas?

in the long run I don't want to use cloud run after my free trial ends and want to be able to host a twitter integration on my own native machine - does anybody have any instructions on how to do this?

Thank you!

tyhu-google commented 4 years ago

Hi trevortrev365, Not sure what's the exact the problem is. While you may look into Cloud Run logs to see if you can find more information. In the meantime, you may add some more logs to the code for debugging purpose. In terms of the deployment through different way, you could also use GCP compute Engine for deployment. I f you want to host a twitter integration on your own machine, you still need to expose a HTTP endpoint so that Twitter server knows how to call your endpoint.

trevortrev365 commented 4 years ago

2020-02-06T13:47:40.789588ZPOST503 556 B 122.6 s Unknown https://dialogflow-twitter-frhyhfryhfryhrfyhrf.run.app/ The request failed because the HTTP connection to the instance had an error.

any ideas? still hoping for instructions on how to do this without google cloud run.

rrobbyy commented 4 years ago

Hi trevortrev365, I had the same problem of Twitter continuously ceasing to work after a short time. I took a hint from the above comment by tyhu-google to look at Cloud Run logs, I chose my Twitter Service and noticed Set Up Continuous Deployment at the top. Then, by following the step-by-process to make a source repository, it cured it. Actually I failed to set up the Continuous deployment properly but the key seems to be giving Dialogflow/GCS permission to work with Github. Once authorised, the drama of Twitter stopping just disappeared. Good luck...

So much for that - it worked for a week and then stopped again. And getting Continuous deployment working didn't fix it either. Help?