I am trying to use the local server with my Firefox addon, but the addon gives me a 504 error (which I assume is Gateway Timeout in HTTP).
I have correctly started my server and I am able to confirm that it is working by visiting this URL: http://localhost:49152/v2/check?language=en-US&text=A%20quick%20brown%20fox%20jumps%20over%20the%20lazy%20dog
But when I try to check the same text (A quick brown fox jumps over the lazy dog
) in Firefox, the extension gives me an error: Cannot connect to http://localhost:49152/v2 (#1, code=504)
Here is my server’s output:
TheDcoder@BeastLappy ~/S/LanguageTool> java -cp languagetool-server.jar org.languagetool.server.HTTPServer --port 49152
2019-02-05 03:30:39 +0000 Not setting up database access, dbDriver is not configured
WARNING: running in HTTP mode, consider using org.languagetool.server.HTTPSServer for encrypted connections
Setting up thread pool with 10 threads
Starting LanguageTool 4.4 (build date: 2018-12-27 10:19) server on http://localhost:49152...
Server started
2019-02-05 09:00:48 +0530 WARN o.l.l.LanguageIdentifier Cannot consider noopLanguages because not in fastText mode: [en]
2019-02-05 03:30:50 +0000 Check done: 41 chars, en-GB (mother tongue: en)[auto], #1, null, 0 matches, 1711ms, agent:webextension-firefox-ng, v:2.0.28, sent, q:0, h:2, dH:1, m:textlevel_only
2019-02-05 03:30:50 +0000 Check done: 41 chars, en-GB (mother tongue: en)[auto], #1, null, 0 matches, 1820ms, agent:webextension-firefox-ng, v:2.0.28, sent, q:0, h:1, dH:1, m:all_but_textlevel_only
I am using Fedora 29 if that makes any difference. Thanks for the help in advance!