You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nlpcraft.apache.org by ar...@apache.org on 2021/06/30 23:06:29 UTC

[incubator-nlpcraft] branch master updated: Fix for NLPCRAFT-350.

This is an automated email from the ASF dual-hosted git repository.

aradzinski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git


The following commit(s) were added to refs/heads/master by this push:
     new 4b0ed07  Fix for NLPCRAFT-350.
4b0ed07 is described below

commit 4b0ed072ab36d0625b40e93ee77cdbfbf6ef3a5d
Author: Aaron Radzinzski <ar...@datalingvo.com>
AuthorDate: Wed Jun 30 16:06:19 2021 -0700

    Fix for NLPCRAFT-350.
---
 .../scala/org/apache/nlpcraft/probe/mgrs/conn/NCConnectionManager.scala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nlpcraft/src/main/scala/org/apache/nlpcraft/probe/mgrs/conn/NCConnectionManager.scala b/nlpcraft/src/main/scala/org/apache/nlpcraft/probe/mgrs/conn/NCConnectionManager.scala
index 159ffd2..89e3e26 100644
--- a/nlpcraft/src/main/scala/org/apache/nlpcraft/probe/mgrs/conn/NCConnectionManager.scala
+++ b/nlpcraft/src/main/scala/org/apache/nlpcraft/probe/mgrs/conn/NCConnectionManager.scala
@@ -232,7 +232,7 @@ object NCConnectionManager extends NCService {
                     case "S2P_PROBE_MULTIPLE_INSTANCES" =>  throw new HandshakeError("Duplicate probes ID detected. Each probe has to have a unique ID.")
                     case "S2P_PROBE_NOT_FOUND" =>  throw new HandshakeError("Probe failed to start due to unknown error.")
                     case "S2P_PROBE_VERSION_MISMATCH" =>  throw new HandshakeError(s"REST server does not support probe version: ${ver.version}")
-                    case "S2P_PROBE_UNSUPPORTED_TOKENS_TYPES" =>  throw new HandshakeError(s"REST server does not support some model enabled tokes types.")
+                    case "S2P_PROBE_UNSUPPORTED_TOKENS_TYPES" =>  throw new HandshakeError(s"REST server does not support required tokes types. Set 'nlpcraft.server.tokenProviders' configuration property.")
                     case "S2P_PROBE_OK" => logger.trace("Uplink handshake OK.") // Bingo!
                     case _ =>  throw new HandshakeError(s"Unknown REST server message: ${resp.getType}")
                 }