You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: