Not able to connect to Dialogflow RPC API with an agent hosted in us-central region #10941
Labels
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Problem
I have an agent created in the
us-central1
region. Currently, it is not clear how to point this client to specific region using RPC API. When setting location id parameter tous-central1
, exception is always thrown (see more details below). Setting endpoint tous-central1-dialogflow.googleapis.com:433
doesn't work either.Environment details
Steps to reproduce
us-central1
locationus-central1
), agent-id and session-idQueryInput
andDetectIntentRequest
objectsSessionsClient.create()
sessionsClient.detectIntent
Caused by: io.grpc.StatusRuntimeException: INVALID_ARGUMENT: Please refer to https://cloud.google.com/dialogflow/cx/docs/concept/region#avail and https://cloud.google.com/dialogflow/es/docs/how/region#regions to find the correct endpoint to access resources located in 'us-central1'
.Code example
Stack trace
Additional information
When setting location id to
global
, things start to work. But then my agent cannot be found, because it wasn't created in the global location obviously.NOTE: Everything works fine when switching to the
InstantiatingHttpJsonChannelProvider
transport. But it would be great if we could use RPC for better efficiency.The text was updated successfully, but these errors were encountered: