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


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved languagetool connection error 405

    LanguageTool
    2
    3
    32
    Loading More Posts
    • 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.
    • M
      m-si last edited by m-si

      I'am struggeling with the setup of languagetool app. When I use the firefox addon (with server url https://lt.my-domain.org/secret/6FoL0A/check) to connect it throws (#1, code=0). If I use the terminal with

      curl -d "language=de-DE" -d "text=a simple test" https://lt.my-domain.org/secret/6FoL0A/check
      

      I get

      <html>
      <head><title>405 Not Allowed</title></head>
      <body>
      <center><h1>405 Not Allowed</h1></center>
      <hr><center>nginx/1.18.0 (Ubuntu)</center>
      </body>
      </html>
      
      

      even though https://lt.my-domain.org works perfectly fine...

      Steps to reproduce:

      1. install languagetool app in cloudron
      2. setup ngrams /app/pkg/install-ngrams.sh /app/data/ngrams en de which worked flawless
      3. setup env file
      # Protect installation with magic/hidden URL
      API_PATH_PREFIX=6FoL0A
      # Activate n-gram datasets (https://docs.cloudron.io/apps/languagetool/#n-grams)
      NGRAM_DATASET=("en" "de")
      NGRAMS_DATASET_PATH=/app/data/ngrams
      
      

      so what am I missing?

      (I changed the API-Prefix for obvious reasons...)

      girish 1 Reply Last reply Reply Quote 0
      • girish
        girish Staff @m-si last edited by

        @m-si said in languagetool connection error 405:

        https://lt.my-domain.org/secret/6FoL0A/check

        The URL has to be like https://lt.my-domain.org/6FoL0A/v2/check

        I will clarify this in the docs.

        M 1 Reply Last reply Reply Quote 1
        • M
          m-si @girish last edited by

          @girish Thank you so much for the quick response...I can confirm putting in https://lt.my-domain.org/6FoL0A/v2 worked perfectly. the check is added by the firefox plugin itself... cloudron is awsome, for the software and the people...

          1 Reply Last reply Reply Quote 1
          • Topic has been marked as a question  nebulon nebulon 
          • Topic has been marked as solved  nebulon nebulon 
          • First post
            Last post
          Powered by NodeBB