Request unsafe for browser client domain: dialogflow.googleapis.com"
Hi, I'm using nodejs to make a gateway so client can post api to get results from dialogflow. But recently, this message is displayed instead of dialogflow information.
"3 INVALID_ARGUMENT: Request unsafe for browser client domain: dialogflow.googleapis.com"
I'm getting the same issue. Our production app is failing because of this.
I'm getting the exact same error.
I'm setting up a DialogFlow wrapper and I'm using the DialogFlow JavaScript SDK. But, I'm getting the following error:
Error: Request unsafe for browser client domain: dialogflow.googleapis.com
This was working before, but I'm not sure why it suddenly stopped working.
I've tried reverting all code to a version that worked. I'm sure it's a DialogFlow error.
const intentDetectResponse = await sessionClient.detectIntent(request)
The complete error log is as follows:
{ Error: Request unsafe for browser client domain: dialogflow.googleapis.com
at Http2CallStream.call.on (/Users/NewProject/node_modules/@grpc/grpc-js/build/src/client.js:101:45)
at Http2CallStream.emit (events.js:194:15)
at process.nextTick (/Users/NewProject/node_modules/@grpc/grpc-js/build/src/call-stream.js:71:22)
at process.internalTickCallback (internal/process/next_tick.js:70:11)
code: 3,
details:
'Request unsafe for browser client domain: dialogflow.googleapis.com',
metadata:
Metadata {
options: undefined,
internalRepr: Map { 'grpc-server-stats-bin' => [Array] } } }
Facing the same issue on production for the last couple of hours all of a sudden.
Facing this error
Error: 3 INVALID_ARGUMENT: Request unsafe for browser client domain: dialogflow.googleapis.com
I'm getting the same issue. I just upgraded to the latest version v0.10.3 also face the same error log:
INVALID_ARGUMENT: Request unsafe for browser client domain: dialogflow.googleapis.com
at Object.exports.createStatusError (/app/node_modules/dialogflow/node_modules/grpc/src/common.js:91:15)
at Object.onReceiveStatus (/app/node_modules/dialogflow/node_modules/grpc/src/client_interceptors.js:1204:28)
at InterceptingListener._callNext (/app/node_modules/dialogflow/node_modules/grpc/src/client_interceptors.js:568:42)
at InterceptingListener.onReceiveStatus (/app/node_modules/dialogflow/node_modules/grpc/src/client_interceptors.js:618:8)
at callback (/app/node_modules/dialogflow/node_modules/grpc/src/client_interceptors.js:845:24)
extra info: { Error: 3 INVALID_ARGUMENT: Request unsafe for browser client domain: dialogflow.googleapis.com
at Object.exports.createStatusError (/app/node_modules/dialogflow/node_modules/grpc/src/common.js:91:15)
at Object.onReceiveStatus (/app/node_modules/dialogflow/node_modules/grpc/src/client_interceptors.js:1204:28)
at InterceptingListener._callNext (/app/node_modules/dialogflow/node_modules/grpc/src/client_interceptors.js:568:42)
at InterceptingListener.onReceiveStatus (/app/node_modules/dialogflow/node_modules/grpc/src/client_interceptors.js:618:8)
at callback (/app/node_modules/dialogflow/node_modules/grpc/src/client_interceptors.js:845:24)
code: 3,
metadata: Metadata { _internal_repr: { 'grpc-server-stats-bin': [Array] } },
details: 'Request unsafe for browser client domain: dialogflow.googleapis.com' }
{ Error: 3 INVALID_ARGUMENT: Request unsafe for browser client domain: dialogflow.googleapis.com
at Object.exports.createStatusError (/home/jitendra/chatservices/node_modules/grpc/src/common.js:91:15)
at Object.onReceiveStatus (/home/jitendra/chatservices/node_modules/grpc/src/client_interceptors.js:1204:28)
at InterceptingListener._callNext (/home/jitendra/chatservices/node_modules/grpc/src/client_interceptors.js:568:42)
at InterceptingListener.onReceiveStatus (/home/jitendra/chatservices/node_modules/grpc/src/client_interceptors.js:618:8)
at callback (/home/jitendra/chatservices/node_modules/grpc/src/client_interceptors.js:845:24)
code: 3,
metadata: Metadata { _internal_repr: { 'grpc-server-stats-bin': [Array] } },
details: 'Request unsafe for browser client domain: dialogflow.googleapis.com' }
My detectIntent request successes now.
@nam1665 are you continuing to run into problems, I'm wondering if this was an upstream API issue.
👋 an update, it appears that this was a bad release of the upstream dialogflow API, which should have been resolved now.
Please feel free to reopen if you're continuing to run into issues.