nimbleape / asterisk-dialogflow-rtp-audioserver

MIT License
38 stars 18 forks source link

No DesignTimeAgent found for project #21

Closed Happyman1974 closed 3 years ago

Happyman1974 commented 3 years ago

There is a ERROR into rtp-audioserver

[1607526973899] ERROR (Dialogflow-AudioServer/24649 on rtp-audioserver): Got an error from dialogflow id: "1607526971.52" err: { "type": "Error", "message": "5 NOT_FOUND: com.google.apps.framework.request.NotFoundException: No DesignTimeAgent found for project 'asterisk-project-29811 4'.", "stack": Error: 5 NOT_FOUND: com.google.apps.framework.request.NotFoundException: No DesignTimeAgent found for project 'asterisk-project-298114 '. at Object.callErrorFromStatus (/usr/src/asterisk-dialogflow-rtp-audioserver/node_modules/@grpc/grpc-js/build/src/call.js:30:26) at Object.onReceiveStatus (/usr/src/asterisk-dialogflow-rtp-audioserver/node_modules/@grpc/grpc-js/build/src/client.js:390:49) at Object.onReceiveStatus (/usr/src/asterisk-dialogflow-rtp-audioserver/node_modules/@grpc/grpc-js/build/src/client-interceptors.j s:304:181) at Http2CallStream.outputStatus (/usr/src/asterisk-dialogflow-rtp-audioserver/node_modules/@grpc/grpc-js/build/src/call-stream.js: 116:74) at Http2CallStream.maybeOutputStatus (/usr/src/asterisk-dialogflow-rtp-audioserver/node_modules/@grpc/grpc-js/build/src/call-strea m.js:155:22) at Http2CallStream.endCall (/usr/src/asterisk-dialogflow-rtp-audioserver/node_modules/@grpc/grpc-js/build/src/call-stream.js:141:1 8) at Http2CallStream.handleTrailers (/usr/src/asterisk-dialogflow-rtp-audioserver/node_modules/@grpc/grpc-js/build/src/call-stream.j s:273:14) at ClientHttp2Stream.emit (events.js:315:20) at emit (internal/http2/core.js:293:8) at processTicksAndRejections (internal/process/task_queues.js:83:22) "code": 5, "details": "com.google.apps.framework.request.NotFoundException: No DesignTimeAgent found for project 'asterisk-project-298114'.", "metadata": { "internalRepr": {}, "options": {} } } [1607527005527] INFO (Dialogflow-AudioServer/24649 on rtp-audioserver): Ending stream of audio from Asterisk to send to Dialogflow payload: { "name": "601", "port": "18910", "callerName": "6001", "channelId": "1607526971.52" }


config : Asterisk 16.8

default.js auth: { // credentials: { // private_key: response.dialogFlowPrivateKey, // client_email: response.dialogFlowClientEmail // }, keyFilename: ./config/asterisk-project-298114-f51fe9a83679.json, }, project: 'asterisk-project-298114', initialEventName: 'Default Welcome Intent',


I tryed to recreate google project and create new Service Account with new Key. New agent from the scratch. But no luck :(

Happyman1974 commented 3 years ago

The issue is resolved I switched to Dialogflow ES Edition, was CX from the start

more info https://stackoverflow.com/questions/64474972/no-designtimeagent-found-when-testing-with-detectintent-api-using-prebuilt-agent