Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DialogueFlow app integration fails to load credentials #6908

Open
3 of 12 tasks
Shalashtein opened this issue Apr 14, 2023 · 2 comments
Open
3 of 12 tasks

DialogueFlow app integration fails to load credentials #6908

Shalashtein opened this issue Apr 14, 2023 · 2 comments
Assignees
Labels
need-more-info This issue does not have enough information to start working on it.

Comments

@Shalashtein
Copy link

Shalashtein commented Apr 14, 2023

Describe the bug

When a user sends a message through the website channel chatwoot raises an error while trying to load the key file. More info and stack trace below

To Reproduce

Steps to reproduce the behavior:

  1. Setup the website channel
  2. Use the service account and dialogflow to fetch the key file
  3. Setup dialogueflow integration with the website channel
  4. Send a message to the website channel

Expected behavior

Chatwoot should successfully connect to google and send the response from dialogueflow to the user

Sentry Log

Log

Also from the rails console I logged the Integrations::Hook related to dialogflow and this was the output, curious why it says it's disabled, I manually updated the state to enabled but it still didn't work

#<Integrations::Hook:0x00007fe6cdcb6400 id: 67, status: "disabled", inbox_id: 34, account_id: 1, app_id: "dialogflow", hook_type: "inbox", reference_id: nil, access_token: "...", created_at: Fri, 14 Apr 2023 13:18:10.467429000 UTC +00:00, updated_at: Fri, 14 Apr 2023 13:18:10.467429000 UTC +00:00, settings: {"project_id"=>"...", "credentials"=> {"type"=>"service_account", "auth_uri"=>"https://accounts.google.com/o/oauth2/auth", "client_id"=>"114428993883083794299", "token_uri"=>"https://oauth2.googleapis.com/token", "project_id"=>"...", "private_key"=> "-----BEGIN PRIVATE KEY-----...-----END PRIVATE KEY-----\n", "client_email"=>...", "private_key_id"=>"...", "client_x509_cert_url"=>"...", "auth_provider_x509_cert_url"=>"https://www.googleapis.com/oauth2/v1/certs"}}>

Environment

Describe whether you are using Chatwoot Cloud (app.chatwoot.com) or a self-hosted installation of Chatwoot. If you are using a self-hosted installation of Chatwoot, describe the type of deployment (Docker/Linux VM installation/Heroku/Kubernetes/Other).

  • app.chatwoot.com (Chatwoot Cloud)
  • Self-hosted
    • Linux VM
    • Docker
    • Kubernetes
    • Heroku
    • Other (Please specify)

Cloud Provider (If applicable)

  • AWS
  • GCP
  • Azure
  • DigitalOcean
  • Others
@pranavrajs
Copy link
Member

@Shalashtein Can you please confirm that the permissiona are set properly as per this document?

@pranavrajs pranavrajs added the need-more-info This issue does not have enough information to start working on it. label Apr 20, 2023
@Shalashtein
Copy link
Author

Yes I can confirm that the service account has the Dialogflow API Client permissions, and I've added all the dialogFlow permissions and tried recreating the service account without luck

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need-more-info This issue does not have enough information to start working on it.
Projects
None yet
Development

No branches or pull requests

3 participants