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

Proxy-related issue #70

Open
ACParadox opened this issue Oct 26, 2022 · 0 comments
Open

Proxy-related issue #70

ACParadox opened this issue Oct 26, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@ACParadox
Copy link

Kept getting a 503 response when initializing LanguageTool (coming from _query_server).

It was weird because the same exact query would work using curl from the same location.

Turns out it was because of proxies. Normally they are not applied within our internal corporate network, only when querying outside it, but it seems in this case they were applied anyways.

It would be useful to have a configurable proxy settings in the config and just add the "proxies" param to the requests.get inside _query_server.

Ex. this worked out for my setup (in _query_server):
proxies = {
"http": None,
"https": None
}
with requests.get(url, params=params, timeout=self._TIMEOUT, proxies=proxies) as response:

Thanks

@ACParadox ACParadox changed the title Issue when being proxy Proxy-related issue Oct 26, 2022
@jxmorris12 jxmorris12 added the enhancement New feature or request label Oct 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants