API not working
-
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)
-
@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.
-
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
-
@necrevistonnezr Yup, that's now working for me as well
Thanks @staff -
-