I want to use the Google Geocoding service from a function in Claude Run, but it returns the REQUEST_DENIED error. How do I configure the API_KEY web side restriction to allow me to use it from Claude Run?
Solved! Go to Solution.
Hi @gebejaranod,
Welcome to Google Cloud Community!
The REQUEST_DENIED error when using the Google Geocoding API from CLoud Run usually due to incorrect API key restrictions. HTTP Referrer restrictions, designed for browsers, will not work with server-side Cloud Run. To fix this, I would recommend any of the two options:
This method enhances security by keeping your API key out of your code and deployment configurations.
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.
Hi @gebejaranod,
Welcome to Google Cloud Community!
The REQUEST_DENIED error when using the Google Geocoding API from CLoud Run usually due to incorrect API key restrictions. HTTP Referrer restrictions, designed for browsers, will not work with server-side Cloud Run. To fix this, I would recommend any of the two options:
This method enhances security by keeping your API key out of your code and deployment configurations.
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.