Issue with dialogflow connector: no such type: google.rpc.ErrorInfo
See original GitHub issueIssue Description
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:
- Created 2 years ago
- Comments:8 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The issue turned out to be that API calls are not enabled for my dialogflow project.
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.