nodejs-dialogflow icon indicating copy to clipboard operation
nodejs-dialogflow copied to clipboard

Request unsafe for browser client domain: dialogflow.googleapis.com"

Open nam1665 opened this issue 7 years ago • 9 comments

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"

nam1665 avatar Aug 28 '19 08:08 nam1665

I'm getting the same issue. Our production app is failing because of this.

amruthpillai avatar Aug 28 '19 08:08 amruthpillai

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] } } }

samithbharadwaj avatar Aug 28 '19 08:08 samithbharadwaj

Facing the same issue on production for the last couple of hours all of a sudden.

deep0892 avatar Aug 28 '19 08:08 deep0892

Facing this error

Error: 3 INVALID_ARGUMENT: Request unsafe for browser client domain: dialogflow.googleapis.com

vikas0121 avatar Aug 28 '19 08:08 vikas0121

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' }

yingray avatar Aug 28 '19 08:08 yingray

{ 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' }

deep0892 avatar Aug 28 '19 09:08 deep0892

My detectIntent request successes now.

t3qyo avatar Aug 28 '19 10:08 t3qyo

@nam1665 are you continuing to run into problems, I'm wondering if this was an upstream API issue.

bcoe avatar Aug 28 '19 16:08 bcoe

👋 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.

bcoe avatar Aug 28 '19 16:08 bcoe