question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issue with dialogflow connector: no such type: google.rpc.ErrorInfo

See original GitHub issue

Describe the bug I am trying to run nlpanalytics with dialogflow, but I am getting an error during validation: Starting training. Validation training failed: no such type: google.rpc.ErrorInfo

To Reproduce botium-cli nlpanalytics validate --config ./config/dialogflow.botium.json --train ./convos/db-train --test ./convos/db-test --output ./results/validate-dialogflow.csv --outputPredictions ./results/validate-dialogflow-predictions.csv

My config contains:

    "botium": {
        "Capabilities": {
            "PROJECTNAME": "Botium NLPAnalytics Dialoflow",
            "CONTAINERMODE": "dialogflow",
            "RATELIMIT_USERSAYS_MINTIME": 1000,
            "RATELIMIT_USERSAYS_MAXCONCURRENT": 1,
            "DIALOGFLOW_NLP_PROJECT_ID": "****l",
            "DIALOGFLOW_NLP_CLIENT_EMAIL": "****",
            "DIALOGFLOW_NLP_PRIVATE_KEY": "****"
        }
    }
}

Logs: I tried to print the stack trace if that helps:

Error: no such type: google.rpc.ErrorInfo
    at Root.lookupType (/home/hala/anaconda3/envs/py3/lib/node_modules/botium-connector-dialogflow/node_modules/protobufjs/src/namespace.js:382:15)
    at FallbackErrorDecoder.decodeProtobufAny (/home/hala/anaconda3/envs/py3/lib/node_modules/botium-connector-dialogflow/node_modules/google-gax/build/src/fallbackError.js:35:32)
    at /home/hala/anaconda3/envs/py3/lib/node_modules/botium-connector-dialogflow/node_modules/google-gax/build/src/fallbackError.js:50:56
    at Array.map (<anonymous>)
    at FallbackErrorDecoder.decodeRpcStatus (/home/hala/anaconda3/envs/py3/lib/node_modules/botium-connector-dialogflow/node_modules/google-gax/build/src/fallbackError.js:50:37)
    at FallbackErrorDecoder.decodeErrorFromBuffer (/home/hala/anaconda3/envs/py3/lib/node_modules/botium-connector-dialogflow/node_modules/google-gax/build/src/fallbackError.js:63:46)
    at /home/hala/anaconda3/envs/py3/lib/node_modules/botium-connector-dialogflow/node_modules/google-gax/build/src/fallback.js:313:57
    at processTicksAndRejections (internal/process/task_queues.js:97:5) {
  note: 'Exception occurred in retry method that was not classified as transient'
} Error: no such type: google.rpc.ErrorInfo
    at Root.lookupType (/home/hala/anaconda3/envs/py3/lib/node_modules/botium-connector-dialogflow/node_modules/protobufjs/src/namespace.js:382:15)
    at FallbackErrorDecoder.decodeProtobufAny (/home/hala/anaconda3/envs/py3/lib/node_modules/botium-connector-dialogflow/node_modules/google-gax/build/src/fallbackError.js:35:32)
    at /home/hala/anaconda3/envs/py3/lib/node_modules/botium-connector-dialogflow/node_modules/google-gax/build/src/fallbackError.js:50:56
    at Array.map (<anonymous>)
    at FallbackErrorDecoder.decodeRpcStatus (/home/hala/anaconda3/envs/py3/lib/node_modules/botium-connector-dialogflow/node_modules/google-gax/build/src/fallbackError.js:50:37)
    at FallbackErrorDecoder.decodeErrorFromBuffer (/home/hala/anaconda3/envs/py3/lib/node_modules/botium-connector-dialogflow/node_modules/google-gax/build/src/fallbackError.js:63:46)
    at /home/hala/anaconda3/envs/py3/lib/node_modules/botium-connector-dialogflow/node_modules/google-gax/build/src/fallback.js:313:57
    at processTicksAndRejections (internal/process/task_queues.js:97:5)

Botium Flavour:

  • Botium CLI

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
HalaKuwatlycommented, Jan 25, 2021

The issue turned out to be that API calls are not enabled for my dialogflow project.

0reactions
codeforequity-atcommented, Jan 19, 2021

Honestly, no idea. Is there happening anything unusual when running npm install ?

You can try to use the Botium CLI Docker image, everything is pre-installed in there.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Errors | Cloud APIs - Google Cloud
rpc.Code.NOT_FOUND error code and tells the client which specific resource was not found. The smaller error space reduces the complexity of documentation, ...
Read more >
You need to pass auth instance to gRPC-fallback client. Use ...
I tried to use the google-auth-library to authenticate, but no success. This is my code: async detectTextIntent(text, sessionId, ...
Read more >
botium-core - Bountysource
Validation training failed: no such type: google.rpc.ErrorInfo. To Reproduce botium-cli nlpanalytics validate --config ./config/dialogflow.botium.json ...
Read more >
google.cloud.dialogflow.cx.v3 - Buf.build
Service for managing [Agents][google.cloud.dialogflow.cx.v3.Agent]. rpcListAgents. (ListAgentsRequest). returns.
Read more >
API Reference — google_api_dialogflow v0.74.0 - HexDocs
This message is generated by Dialogflow only and not supposed to be defined ... In a webhook response when you determine that the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found