Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Vertex Search, Error: 13 INTERNAL: Received RST_STREAM with code 0

Hi - am getting this error using the node.js library as follows:

 

 

 

 

async function search(searchQuery) {

    const request = {
      pageSize: 10,
      query: searchQuery,
      servingConfig: `projects/${config.gcp.project_id}/locations/${config.gcp.location}/collections/${config.gcp.collectionId}/dataStores/${config.gcp.dataStoreId}/servingConfigs/${config.gcp.servingConfigId}`,
    };
  
    const IResponseParams = {
      ISearchResult: 0,
      ISearchRequest: 1,
      ISearchResponse: 2,
    };
  
    // Perform search request
    try {
        const response = await client.search(request, {
            autoPaginate: false,
        });
        const results = response[IResponseParams.ISearchResponse].results;
    
        for (const result of results) {
            console.log(result);
        }
        return results;

    } catch (error) {
        console.log(error);
        return (error)
    }

  }

 

 

 

 

I've confirmed that the path is correct. And i've got it working via postman. 

I've also noticed that the node example uses projectId, but what's working via the postman request uses project number instead of projectId. I interchanged that in the code above, but still same error.

Any thoughts? 

 

----

later

---

figured it out was just something stupid - my configs weren't loaded properly at this point: so the location was not defined correctly. 

 

let location;
const apiEndpoint =
  location == 'global'
    ? 'discoveryengine.googleapis.com'
    : `${config.gcp.location}-discoveryengine.googleapis.com`;

 

 

2 1 1,023
1 REPLY 1

Hi @benrigby

Welcome back and thank you for reaching out to our community.

It's great that you managed to figure it out, let me share a bit more context.

The error code 13 means that an internal error has occurred in Vertex AI service. This might be connected to the recent incident reported for Vertex AI Search, though it can be isolated in nature for your case, this will resolve itself at a later time. You can utilize the Service Health dashboard for this.

The "Received RST_STREAM with code 0" message indicates that an unexpected communication termination occurred between the client and Vertex AI service, this can be driven by network connectivity, firewalls or any configurations that disrupt communication/ connectivity. This case can be linked to your location configuration.

Authentications and permissions for the used services can also cause these issues so make sure they are properly set.