在嘗試detectIntent從文本中獲取時,我收到了以下異常(項目 ID 已被替換)。在谷歌中找不到與DesignTimeAgent問題相關(guān)的任何內(nèi)容。任何幫助表示贊賞。例外 :There was an unexpected error (type=Internal Server Error, status=500).io.grpc.StatusRuntimeException: NOT_FOUND: com.google.apps.framework.request.NotFoundException: No DesignTimeAgent found for project 'MY_PROJECT_ID'.com.google.api.gax.rpc.NotFoundException: io.grpc.StatusRuntimeException: NOT_FOUND: com.google.apps.framework.request.NotFoundException: No DesignTimeAgent found for project 'MY_PROJECT_ID'. at com.google.api.gax.rpc.ApiExceptionFactory.createException(ApiExceptionFactory.java:45) at com.google.api.gax.grpc.GrpcApiExceptionFactory.create(GrpcApiExceptionFactory.java:72) at com.google.api.gax.grpc.GrpcApiExceptionFactory.create(GrpcApiExceptionFactory.java:60) at com.google.api.gax.grpc.GrpcExceptionCallable$ExceptionTransformingFuture.onFailure(GrpcExceptionCallable.java:95) at com.google.api.core.ApiFutures$1.onFailure(ApiFutures.java:61) at com.google.common.util.concurrent.Futures$CallbackListener.run(Futures.java:1015) at com.google.common.util.concurrent.DirectExecutor.execute(DirectExecutor.java:30) at com.google.common.util.concurrent.AbstractFuture.executeListener(AbstractFuture.java:1137) at com.google.common.util.concurrent.AbstractFuture.complete(AbstractFuture.java:957) at com.google.common.util.concurrent.AbstractFuture.setException(AbstractFuture.java:748) at io.grpc.stub.ClientCalls$GrpcFuture.setException(ClientCalls.java:493)
2 回答

PIPIONE
TA貢獻1829條經(jīng)驗 獲得超9個贊
上述誤導性錯誤消息是由于使用了錯誤的 PROJECT_ID 而引起的。我的錯誤是,首先我創(chuàng)建了一個帶有服務帳戶的新項目,賦予它 dialogflow API 權(quán)限,后來我嘗試使用它的名稱和相關(guān)的 PK JSON 進行調(diào)用detectIntent
。但它沒有與 Dialogflow 項目 ID 鏈接。
添加回答
舉報
0/150
提交
取消