googleapis / nodejs-dialogflow

This repository is deprecated. All of its content and history has been moved to googleapis/google-cloud-node.
https://dialogflow.com/
Apache License 2.0
797 stars 271 forks source link

v2beta1 detection: should detect intent with a knowledge base failed #994

Closed flaky-bot[bot] closed 2 years ago

flaky-bot[bot] commented 2 years ago

This test failed!

To configure my behavior, see the Flaky Bot documentation.

If I'm commenting on this issue too often, add the flakybot: quiet label and I will stop commenting.


commit: 2492264ffa536521b794eff60c60bbe2def57b9b buildURL: Build Status, Sponge status: failed

Test output
Command failed: node detect.v2beta1.js detectIntentKnowledge -q "Where is my data stored?" -n "OTAxMTY2MTA3MjkyNjUwNzAwOA"
detect.v2beta1.js detectIntentKnowledge

Detects answers from knowledge base queries

Options:
      --version                Show version number                                                             [boolean]
  -d, --documentId             Full path of document in knowledge base                                          [string]
  -m, --documentName           Name of Document to Create                                  [string] [default: "testDoc"]
  -z, --documentPath           uri of document to be added                                                      [string]
  -k, --knowledgeBaseName      The name of the knowledge base to search from     [string] [default: "TestKnowledgeBase"]
  -n, --knowledgeBaseFullName  full path knowledge base                                                         [string]
  -t, --knowledgeTypes         The Knowledge type of the Document.                             [string] [default: "FAQ"]
  -l, --languageCode           The language code of the query. Defaults to "en-US".          [string] [default: "en-US"]
  -y, --mimeType               The mime_type of the Document                             [string] [default: "text/html"]
  -f, --outputFile                                                          [string] [default: "./resources/output.wav"]
  -p, --projectId              The Project ID to use. Defaults to the value of the GCLOUD_PROJECT or
                               GOOGLE_CLOUD_PROJECT environment variables.           [string] [default: "long-door-651"]
  -q, --query                  An array of text queries         [array] [required] [default: "Where is my data stored?"]
  -s, --sessionId              The identifier of the detect session. Defaults to a random UUID.
                                                              [string] [default: "8d9b6850-3671-11ed-aadd-dd03959189cd"]
      --help                   Show help                                                                       [boolean]

Error: 16 UNAUTHENTICATED: Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.
    at Object.callErrorFromStatus (/workspace/node_modules/@grpc/grpc-js/build/src/call.js:31:19)
    at Object.onReceiveStatus (/workspace/node_modules/@grpc/grpc-js/build/src/client.js:190:52)
    at Object.onReceiveStatus (/workspace/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:365:141)
    at Object.onReceiveStatus (/workspace/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:328:181)
    at /workspace/node_modules/@grpc/grpc-js/build/src/call-stream.js:188:78
    at processTicksAndRejections (internal/process/task_queues.js:79:11)
for call at
    at ServiceClientImpl.makeUnaryRequest (/workspace/node_modules/@grpc/grpc-js/build/src/client.js:160:30)
    at ServiceClientImpl. (/workspace/node_modules/@grpc/grpc-js/build/src/make-client.js:105:19)
    at /workspace/build/src/v2beta1/sessions_client.js:283:29
    at /workspace/node_modules/google-gax/build/src/normalCalls/timeout.js:44:16
    at repeat (/workspace/node_modules/google-gax/build/src/normalCalls/retries.js:80:25)
    at /workspace/node_modules/google-gax/build/src/normalCalls/retries.js:118:13
    at OngoingCallPromise.call (/workspace/node_modules/google-gax/build/src/call.js:67:27)
    at NormalApiCaller.call (/workspace/node_modules/google-gax/build/src/normalCalls/normalApiCaller.js:34:19)
    at /workspace/node_modules/google-gax/build/src/createApiCall.js:84:30
    at processTicksAndRejections (internal/process/task_queues.js:97:5) {
  code: 16,
  details: 'Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.',
  metadata: Metadata {
    internalRepr: Map { 'grpc-server-stats-bin' => [Array] },
    options: {}
  },
  note: 'Exception occurred in retry method that was not classified as transient'
}

Error: Command failed: node detect.v2beta1.js detectIntentKnowledge -q "Where is my data stored?" -n "OTAxMTY2MTA3MjkyNjUwNzAwOA"
detect.v2beta1.js detectIntentKnowledge

Detects answers from knowledge base queries

Options:
      --version                Show version number                                                             [boolean]
  -d, --documentId             Full path of document in knowledge base                                          [string]
  -m, --documentName           Name of Document to Create                                  [string] [default: "testDoc"]
  -z, --documentPath           uri of document to be added                                                      [string]
  -k, --knowledgeBaseName      The name of the knowledge base to search from     [string] [default: "TestKnowledgeBase"]
  -n, --knowledgeBaseFullName  full path knowledge base                                                         [string]
  -t, --knowledgeTypes         The Knowledge type of the Document.                             [string] [default: "FAQ"]
  -l, --languageCode           The language code of the query. Defaults to "en-US".          [string] [default: "en-US"]
  -y, --mimeType               The mime_type of the Document                             [string] [default: "text/html"]
  -f, --outputFile                                                          [string] [default: "./resources/output.wav"]
  -p, --projectId              The Project ID to use. Defaults to the value of the GCLOUD_PROJECT or
                               GOOGLE_CLOUD_PROJECT environment variables.           [string] [default: "long-door-651"]
  -q, --query                  An array of text queries         [array] [required] [default: "Where is my data stored?"]
  -s, --sessionId              The identifier of the detect session. Defaults to a random UUID.
                                                              [string] [default: "8d9b6850-3671-11ed-aadd-dd03959189cd"]
      --help                   Show help                                                                       [boolean]

Error: 16 UNAUTHENTICATED: Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.
    at Object.callErrorFromStatus (/workspace/node_modules/@grpc/grpc-js/build/src/call.js:31:19)
    at Object.onReceiveStatus (/workspace/node_modules/@grpc/grpc-js/build/src/client.js:190:52)
    at Object.onReceiveStatus (/workspace/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:365:141)
    at Object.onReceiveStatus (/workspace/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:328:181)
    at /workspace/node_modules/@grpc/grpc-js/build/src/call-stream.js:188:78
    at processTicksAndRejections (internal/process/task_queues.js:79:11)
for call at
    at ServiceClientImpl.makeUnaryRequest (/workspace/node_modules/@grpc/grpc-js/build/src/client.js:160:30)
    at ServiceClientImpl. (/workspace/node_modules/@grpc/grpc-js/build/src/make-client.js:105:19)
    at /workspace/build/src/v2beta1/sessions_client.js:283:29
    at /workspace/node_modules/google-gax/build/src/normalCalls/timeout.js:44:16
    at repeat (/workspace/node_modules/google-gax/build/src/normalCalls/retries.js:80:25)
    at /workspace/node_modules/google-gax/build/src/normalCalls/retries.js:118:13
    at OngoingCallPromise.call (/workspace/node_modules/google-gax/build/src/call.js:67:27)
    at NormalApiCaller.call (/workspace/node_modules/google-gax/build/src/normalCalls/normalApiCaller.js:34:19)
    at /workspace/node_modules/google-gax/build/src/createApiCall.js:84:30
    at processTicksAndRejections (internal/process/task_queues.js:97:5) {
  code: 16,
  details: 'Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.',
  metadata: Metadata {
    internalRepr: Map { 'grpc-server-stats-bin' => [Array] },
    options: {}
  },
  note: 'Exception occurred in retry method that was not classified as transient'
}

    at checkExecSyncError (child_process.js:635:11)
    at execSync (child_process.js:671:15)
    at exec (system-test/detect.v2beta1.test.js:24:21)
    at Context. (system-test/detect.v2beta1.test.js:28:20)
    at processImmediate (internal/timers.js:461:21)