Announcements
This site is in read only until July 22 as we migrate to a new platform; refer to this community post for more details.
Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Empty Response from projects.locations.dataStores.conversations.list Despite Valid Setup

The projects.locations.dataStores.conversations.list method returns a 200 response but no conversations. My service account has the discoveryengine.conversations.list permission (via Discovery engine editor), "Enable Cloud Logging" is on, and conversations exist in the data store. What could be causing this? Thanks.
0 1 220
1 REPLY 1

Hi @patientnut,

Welcome to Google Cloud Community!

It sounds like you've set up everything correctly, but you're still not seeing conversations in the response.

Here are a few things you might want to check:

  • Ensure that the parent parameter in your request is correctly formatted. If the collection or dataStoreId is incorrect, it might return an empty response.
  • If you're using filters in your request, double-check that they match existing conversations. The supported filters include userPseudoId and state. An incorrect filter might result in an empty response.
  • If you're using orderBy, ensure that the fields you're sorting by are valid. Improper ordering might affect the response.
  • While you mentioned that your service account has discoveryengine.conversations.list, you might want to verify that it has access to the specific data store you're querying.
  • Confirm that the conversations exist in the correct data store and that they haven't been deleted or archived.
  • If you're using an older API version, ensure that you're calling the correct endpoint. Some users have encountered issues when using outdated versions.

Was this helpful? If so, please accept this answer as “Solution”. If you need additional assistance, reply here within 2 business days and I’ll be happy to help.