Troubleshooting

Filter this document's content by the agent type tag:

Filter this document's content by the category tag:


API call gets permission denied

Agent type tags: CX, ES
Category tags: API, Auth

Issue

Received PERMISSION_DENIED response for API call.

Solution

Ensure you have set up (CX, ES) authentication and roles correctly. In particular, ensure you have done the following:

  • Created a service account and did not accidentally delete it.
  • Provided the service account with a role that grants permission to call the desired method.
  • Downloaded the service account private key file.
  • Set the GOOGLE_APPLICATION_CREDENTIALS environment variable to the private key file.

API call mentions unknown project

Agent type tags: CX, ES
Category tags: API, Project

Issue

Received Dialogflow API has not been used in project 32555940559 error for API call.

Solution

Ensure you have done the following:

  • Set the GOOGLE_APPLICATION_CREDENTIALS environment variable (see PERMISSION_DENIED).
  • Provided the correct project ID to the API call.

API call gets invalid authentication credentials error

Agent type tags: CX, ES
Category tags: API, Auth

Issue

Received Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. response for API call.

Solution

This may be due to manually creating credentials with your client library while specifying a non-default region. See one of the following for guidance:


Unable to delete project because of lien

Agent type tags: ES
Category tags: Project

Issue

When trying to delete a GCP project, you get a notification that the project cannot be deleted because it has liens, and one of the liens is related to Dialogflow.

Solution

  1. Make sure that the Dialogflow ES agent linked to the project has been deleted.

    Dialogflow ES Console

    Open https://dialogflow.cloud.google.com/#/agent/project-id/intents. If you get a notification that the agent doesn't exist, this means that it has been deleted. Otherwise, check if you no longer need the agent and delete it.

    Dialogflow API

    Use the search method of the agent type.

  2. Get the lien name.

    gcloud

    Use the gcloud alpha resource-manager liens list command, as described in the Listing liens on a project documentation.

    API Explorer

    Use the Try this API panel on the Method: liens.list page:

    • Fill out the parent field, as suggested in the parameter description.
    • Click Execute.
  3. Delete the lien.

    gcloud

    Use the gcloud alpha resource-manager liens delete LIEN_NAME command, as described in the Removing liens from a project documentation.

    API Explorer

    Use the Try this API panel on the Method: liens.delete page:

    • Fill out the name field with the lien name that you got at step 2.
    • Click Execute.
  4. Shut down the project.


Console fails to set up project

Agent type tags: ES
Category tags: Console, Project

Issue

Received Failed to set up GCP project error when creating an agent with the console.

Solution

You may not have permission to create GCP projects. Check if you can create a GCP project directly from the GCP Console. If you are not able to create a project, follow the recommendations provided in the error message.


Console fails agent creation when API has not been enabled

Agent type tags: CX
Category tags: Console

Issue

Received Dialogflow API has not been enabled for the project. Code: FAILED_PRECONDITION error when creating an agent with the console.

Solution

Follow the setup steps to enable the Dialogflow API.


Phone gateway connectivity

Agent type tags: ES
Category tags: Integration

Issue

When using phone gateway, you get a busy signal or the call drops.

Solution

There are quotas and limits for this feature. If you receive a busy signal or the call drops, you may have exceeded your quota.


Dialogflow CX Messenger no response

Agent type tags: CX
Category tags: Integration

Issue

No agent response for Dialogflow CX Messenger interactions.

Solution

If you are not seeing any responses from Dialogflow Messenger, make sure that billing is enabled on the project and the Dialogflow API is enabled on the project. See the setup instructions.