Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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] } } }
like image 979
Samith Bharadwaj Avatar asked Aug 28 '19 08:08

Samith Bharadwaj


1 Answers

Pretty sure this is something wrong with dialogflow service. This is not the first time dialogflow facing some issues.

like image 92
Nam Hoai Avatar answered Oct 11 '22 18:10

Nam Hoai