无法访问dialogflow.googleapis.com

时间:2019-05-17 03:46:17

标签: dialogflow dialogflow-fulfillment

  

无法解析名称。 status =状态{code =不可用,   description =无法解析主机dialogflow.googleapis.com,   cause = java.net.UnknownHostException:这通常是一个临时错误   在主机名解析期间,这意味着本地服务器没有   收到权威服务器的回复   (dialogflow.googleapis.com)

在调用google dialoglow API时,出现了上述异常

// Detect intents  for each text input
      for (String text : texts) {
        // Set the text (hello) and language code (en-US) for the query
        Builder textInput = TextInput.newBuilder().setText(text).setLanguageCode(languageCode);

    // Build the query with the TextInput
    QueryInput queryInput = QueryInput.newBuilder().setText(textInput).build();

    // Performs the detect intent request
    DetectIntentResponse response = sessionsClient.detectIntent(session, queryInput);

0 个答案:

没有答案