Troubleshooting of Google Vertex AI Search: Difference between revisions
Jump to navigation
Jump to search
(Created page with "Troubleshooting of Google Vertex AI API {{Drafting}} == Issues == === Troubleshooting: SearchLite API Blocked" Error in Discovery Engine === '''Issue Description''': When attempting to retrieve search results using Google Vertex AI API<ref>[https://cloud.google.com/generative-ai-app-builder/docs/preview-search-results Get search results | Vertex AI Agent Builder | Google Cloud]</ref>, the following error occurs: <pre> curl -X POST -H "Content-Type: applicatio...") |
(Troubleshooting: Vertex AI Search: Data Repository Requires Enterprise Features) |
||
| Line 4: | Line 4: | ||
== Issues == | == Issues == | ||
=== Troubleshooting: Vertex AI Search: Data Repository Requires Enterprise Features === | |||
'''Error:''' | |||
When creating an application, encountered the error message "This application cannot currently use 4 data stores are..." | |||
Expanding the data repository list shows "Website data repository can only be linked to Enterprise version of Vertex AI Search applications" | |||
'''Solution:''' | |||
When creating the application, enable "[https://cloud.google.com/generative-ai-app-builder/docs/about-advanced-features?_gl=1*3htbzk*_ga*ODY1NjExNjI5LjE3MzUyMDY5NDM.*_ga_WH2QY8WWF5*MTczNTYyODg5MS40LjEuMTczNTYyOTQ5Ny4xMS4wLjA. Enterprise Edition Features]" | |||
=== Troubleshooting: SearchLite API Blocked" Error in Discovery Engine === | === Troubleshooting: SearchLite API Blocked" Error in Discovery Engine === | ||
| Line 53: | Line 62: | ||
*# Go to the API & Services page in Google Cloud Console. | *# Go to the API & Services page in Google Cloud Console. | ||
*# Search for Discovery Engine API and ensure it is enabled. | *# Search for Discovery Engine API and ensure it is enabled. | ||
== Related Pages == | == Related Pages == | ||
Revision as of 15:22, 31 December 2024
Troubleshooting of Google Vertex AI API
Issues
Troubleshooting: Vertex AI Search: Data Repository Requires Enterprise Features
Error: When creating an application, encountered the error message "This application cannot currently use 4 data stores are..." Expanding the data repository list shows "Website data repository can only be linked to Enterprise version of Vertex AI Search applications"
Solution: When creating the application, enable "Enterprise Edition Features"
Troubleshooting: SearchLite API Blocked" Error in Discovery Engine
Issue Description: When attempting to retrieve search results using Google Vertex AI API[1], the following error occurs:
curl -X POST -H "Content-Type: application/json" \
"https://discoveryengine.googleapis.com/v1/projects/PROJECT_ID/locations/global/collections/default_collection/engines/APP_ID/servingConfigs/default_search:searchLite?key=API_KEY" \
-d '{
"servingConfig": "projects/PROJECT_ID/locations/global/collections/default_collection/engines/APP_ID/servingConfigs/default_search",
"query": "QUERY",
}'
Met the error
{
"code" : 403,
"message" : "Requests to this API discoveryengine.googleapis.com method google.cloud.discoveryengine.v1.SearchService.SearchLite are blocked.",
"status" : "PERMISSION_DENIED",
"details" : [
{
"@type" : "type.googleapis.com/google.rpc.ErrorInfo",
"reason" : "API_KEY_SERVICE_BLOCKED",
"domain" : "googleapis.com",
"metadata" : {
"service" : "discoveryengine.googleapis.com",
"methodName" : "google.cloud.discoveryengine.v1.SearchService.SearchLite",
"apiName" : "discoveryengine.googleapis.com",
"consumer" : "projects/xxx"
}
},
{
"@type" : "type.googleapis.com/google.rpc.LocalizedMessage",
"locale" : "en-US",
"message" : "Requests to this API discoveryengine.googleapis.com method google.cloud.discoveryengine.v1.SearchService.SearchLite are blocked."
}
]
}
Resolution Steps: Check API Key Restrictions
- Verify if the key is restricted to specific APIs:
- Navigate to the API Key Management page in Google Cloud Console.
- Locate the API key being used and check if it is restricted to specific APIs. If the restriction includes discoveryengine.googleapis.com, ensure it is correctly configured.
- Remove unnecessary restrictions: If the key is restricted to unrelated IP addresses or applications, remove those restrictions.
- Enable the Discovery Engine API
- Go to the API & Services page in Google Cloud Console.
- Search for Discovery Engine API and ensure it is enabled.
Related Pages
- Customized Search Engine written in Mandarin