Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error message if document too large #13

Open
aarontimo opened this issue Nov 13, 2024 · 4 comments
Open

Error message if document too large #13

aarontimo opened this issue Nov 13, 2024 · 4 comments

Comments

@aarontimo
Copy link

Hi there,

Not sure why I am getting this error message now? I haven't had any issues previously (though I'm still fairly new to LanguageTools and this Plugin)

13/11/2024, 14:24:22:
Error: 'Request to LanguageTool failed: Please check your connection and server URL.
Error: Request failed, status 413'
Settings: {"serverUrl":"https://api.languagetoolplus.com","autoCheckDelay":3000,"shouldAutoCheck":true,"languageVariety":{"en":"en-AU","de":"de-DE","pt":"pt-PT","ca":"ca-ES"},"dictionary":["...words deleted..."],"pickyMode":false,"username":"REDACTED","apikey":"REDACTED","synonyms":"en","staticLanguage":"en-AU"}

Thanks for the great plugin!

@wrenger
Copy link
Owner

wrenger commented Nov 14, 2024

Ok I I'll look into this. Does this error occur for all files or only sometimes? Did you change something in the settings?
Maybe a config is invalid or the request is too long (file too large...).

@aarontimo
Copy link
Author

aarontimo commented Nov 15, 2024 via email

@wrenger
Copy link
Owner

wrenger commented Nov 15, 2024

The problem is that the public LanguageTool APIs are rate limited, meaning that you can only send 20K/60K characters per request (free/premium) and 75K/300K characters per minute. So if your files are becoming big, checking the whole file in one go is not possible anymore.

It's probably a good idea for the extension to split the request into multiple chunks. Maybe I find a good way to do this. Still, if you want to check giant files, this then takes time due to these limits.

EDIT: You can already select a portion of the document and then run 'Check text'. This should still work.
And also the auto-check (Settings/LanguageTool/Auto check text) only checks the currently changed test.

@aarontimo
Copy link
Author

aarontimo commented Nov 19, 2024 via email

@wrenger wrenger changed the title Error message Error message if document too large Dec 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants