Uploaded image for project: 'translate5'
  1. translate5
  2. TRANSLATE-3142

Improve user feedback when spellchecker is overloaded

    XMLWordPrintable

Details

    • High
    • Improved error message if segment save runs into a timeout.

    Description

      problem

      Context: Opened Task, segment editing.

      If the spellchecker is overloaded and is running into a timeout, the user gets an error message without any clue what is the problem:

      Error, whilst saving or reading data. Please contact our support team!
      Server Message: 0 communication failure.”

      Error Message in the Backend

      id: 158941
      level: ERROR
      ecode: E9999
      message: Zend_Http_Client_Adapter_Exception: Unable to Connect to tcp://localhost:8081. Error #110: Die Wartezeit für die Verbindung ist abgelaufen
      appVersion: 5.7.15
      file (line): /vendor/shardj/zf1-future/library/Zend/Http/Client/Adapter/Socket.php (235)
      URL: GET /editor/taskid/4419/plugins_spellcheck_spellcheckquery/languages?_dc=1670837574362&targetLangCode=da-DK
      Trace: 
      #0 vendor/shardj/zf1-future/library/Zend/Http/Client.php(1073): Zend_Http_Client_Adapter_Socket->connect()
      #1 library/ZfExtended/Zendoverwrites/Http/Client.php(36): Zend_Http_Client->request()
      #2 application/modules/editor/Plugins/SpellCheck/Adapter/LanguageTool/Adapter.php(190): ZfExtended_Zendoverwrites_Http_Client->request()
      #3 application/modules/editor/Plugins/SpellCheck/Adapter/LanguageTool/Adapter.php(345): editor_Plugins_SpellCheck_Adapter_LanguageTool_Adapter->getLanguages()
      #4 application/modules/editor/Plugins/SpellCheck/Controllers/SpellCheckQueryController.php(66): editor_Plugins_SpellCheck_Adapter_LanguageTool_Adapter->getSupportedLanguage()
      #5 vendor/shardj/zf1-future/library/Zend/Controller/Action.php(516): editor_Plugins_SpellCheck_SpellCheckQueryController->languagesAction()
      ....  

      which is then converted to a

      ecode: E1308
      domain: core.httpclient
      message: ZfExtended_Zendoverwrites_Http_Exception_Down: Requested Service is DOWN: http://localhost:8081
      appVersion: 5.7.15
      file (line): /library/ZfExtended/Zendoverwrites/Http/Client.php (68)
      URL: GET /editor/taskid/4419/plugins_spellcheck_spellcheckquery/languages?_dc=1670837574362&targetLangCode=da-DK
      Trace: 
      #0 /library/ZfExtended/Zendoverwrites/Http/Client.php(44): ZfExtended_Zendoverwrites_Http_Client->handleException()
      #1 /application/modules/editor/Plugins/SpellCheck/Adapter/LanguageTool/Adapter.php(190): ZfExtended_Zendoverwrites_Http_Client->request()
      #2 /application/modules/editor/Plugins/SpellCheck/Adapter/LanguageTool/Adapter.php(345): editor_Plugins_SpellCheck_Adapter_LanguageTool_Adapter->getLanguages() 

      solution

      First setup a test scenario, which is leading to the same error message in the UI.

      If that is the case, contact tlauria to discuss how to solve it properly.

       

      Attachments

        Activity

          People

            pavelperminov Pavel Perminov
            tlauria Thomas Lauria
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: