Editing
Troubleshooting of Google Vertex AI Search
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== 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: 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", }' </pre> Met the error <pre> { "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." } ] } </pre> '''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 {{kbd | key=Discovery Engine API}} *# Go to the API & Services page in Google Cloud Console. *# Search for Discovery Engine API and ensure it is enabled.
Summary:
Please note that all contributions to LemonWiki共筆 are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
LemonWiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Current events
Recent changes
Random page
Help
Categories
Tools
What links here
Related changes
Special pages
Page information