Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. LanguageTool
  3. API not working

API not working

Scheduled Pinned Locked Moved Solved LanguageTool
5 Posts 3 Posters 1.1k Views 4 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    privsec
    wrote on last edited by privsec
    #1

    Hello,

    I am not sure what I am doing wrong.

    I have tried the following

    languagetool.domain.com/secret and languagetool.domain.com/api/secret

    The https://languagetool.domain.com/secret gives me the error
    Sorry, something went wrong while checking your text. Restarting your browser might solve this. (400)

    The languagetool.domain.com/api/secret gives me
    Cannot connect to https://languagetool.domain.com/api/secret/check - please check your internet connection or try again in a minute (#1, code=0)

    necrevistonnezrN 1 Reply Last reply
    0
    • nebulonN Offline
      nebulonN Offline
      nebulon
      Staff
      wrote on last edited by
      #2

      Not sure how you came up with those api paths. But does /v2/languages work for you?

      1 Reply Last reply
      0
      • P privsec

        Hello,

        I am not sure what I am doing wrong.

        I have tried the following

        languagetool.domain.com/secret and languagetool.domain.com/api/secret

        The https://languagetool.domain.com/secret gives me the error
        Sorry, something went wrong while checking your text. Restarting your browser might solve this. (400)

        The languagetool.domain.com/api/secret gives me
        Cannot connect to https://languagetool.domain.com/api/secret/check - please check your internet connection or try again in a minute (#1, code=0)

        necrevistonnezrN Offline
        necrevistonnezrN Offline
        necrevistonnezr
        wrote on last edited by
        #3

        @privsec I think the documentation has changed slightly by now: https://docs.cloudron.io/apps/languagetool/

        The API seems to be https://languagetool.domain.com/secret/v2 (note the "v2"!)
        Also, I don't know how many characters the "secret" can have - the documentation suggests 6 characters(?)
        Also note from the docs:

        The secret is part of the URL. For this reason, keep it simple and use only alphanumerals for the secret.

        necrevistonnezrN 1 Reply Last reply
        0
        • necrevistonnezrN necrevistonnezr

          @privsec I think the documentation has changed slightly by now: https://docs.cloudron.io/apps/languagetool/

          The API seems to be https://languagetool.domain.com/secret/v2 (note the "v2"!)
          Also, I don't know how many characters the "secret" can have - the documentation suggests 6 characters(?)
          Also note from the docs:

          The secret is part of the URL. For this reason, keep it simple and use only alphanumerals for the secret.

          necrevistonnezrN Offline
          necrevistonnezrN Offline
          necrevistonnezr
          wrote on last edited by
          #4

          This works for me now (censored data):

          My env file

          # magic/hidden URL
          # API_PATH_PREFIX=MakeAPIHidden
          # Activate n-gram dataset(s) if necessary
          # https://languagetool.org/download/ngram-data/
          NGRAM_DATASET=("en" "de")
          NGRAMS_DATASET_PATH=/media/Languagetool/
          API_PATH_PREFIX=x6ygnjHT
          

          My configuration in the LanguageTool Extension:

          Other Server: https://lt.mydomain.com/x6ygnjHT/v2
          
          P 1 Reply Last reply
          0
          • necrevistonnezrN necrevistonnezr

            This works for me now (censored data):

            My env file

            # magic/hidden URL
            # API_PATH_PREFIX=MakeAPIHidden
            # Activate n-gram dataset(s) if necessary
            # https://languagetool.org/download/ngram-data/
            NGRAM_DATASET=("en" "de")
            NGRAMS_DATASET_PATH=/media/Languagetool/
            API_PATH_PREFIX=x6ygnjHT
            

            My configuration in the LanguageTool Extension:

            Other Server: https://lt.mydomain.com/x6ygnjHT/v2
            
            P Offline
            P Offline
            privsec
            wrote on last edited by
            #5

            @necrevistonnezr Yup, that's now working for me as well
            Thanks @staff

            1 Reply Last reply
            0
            • nebulonN nebulon marked this topic as a question on
            • nebulonN nebulon has marked this topic as solved on
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Bookmarks
            • Search