Giveme5W1H icon indicating copy to clipboard operation
Giveme5W1H copied to clipboard

Displays HTTPError: 500 Server Error: Internal Server Error for url

Open xrq682 opened this issue 1 year ago • 2 comments

Describe the bug

Following installation, recieved the following while executing the parse_single_from_code.py.

No extractors passed: initializing default configuration. No combinedScorers passed: initializing default configuration.

Traceback (most recent call last): File "D:\anaconda\lib\site-packages\stanza\server\client.py", line 466, in _request r.raise_for_status() File "D:\anaconda\lib\site-packages\requests\models.py", line 943, in raise_for_status raise HTTPError(http_error_msg, response=self) HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:9000/?properties=%7B%27outputFormat%27%3A+%27json%27%2C+%27timeout%27%3A+500000%2C+%27annotators%27%3A+%27tokenize%2Cssplit%2Cpos%2Clemma%2Cparse%2Cner%2Cdepparse%2Cmention%2Ccoref%27%2C+%27tokenize.language%27%3A+%27English%27%2C+%27date%27%3A+%272016-11-10+07%3A44%3A00%27%7D&resetDefault=false During handling of the above exception, another exception occurred: Traceback (most recent call last): File "D:\anaconda\Lib\site-packages\Giveme5W1H\examples\extracting\parse_single_from_code.py", line 80, in doc = extractor.parse(doc) File "D:\anaconda\lib\site-packages\Giveme5W1H\extractor\extractor.py", line 104, in parse self.preprocess(doc) File "D:\anaconda\lib\site-packages\Giveme5W1H\extractor\extractor.py", line 87, in preprocess self.preprocessor.preprocess(doc) File "D:\anaconda\lib\site-packages\Giveme5W1H\extractor\preprocessors\preprocessor_core_nlp.py", line 111, in preprocess annotation = self.cnlp.annotate(text=document.get_full_text(), File "D:\anaconda\lib\site-packages\stanza\server\client.py", line 533, in annotate r = self._request(text.encode('utf-8'), request_properties, reset_default, **kwargs) File "D:\anaconda\lib\site-packages\stanza\server\client.py", line 471, in _request raise AnnotationException(e) AnnotationException: 500 Server Error: Internal Server Error for url: http://localhost:9000/?properties=%7B%27outputFormat%27%3A+%27json%27%2C+%27timeout%27%3A+500000%2C+%27annotators%27%3A+%27tokenize%2Cssplit%2Cpos%2Clemma%2Cparse%2Cner%2Cdepparse%2Cmention%2Ccoref%27%2C+%27tokenize.language%27%3A+%27English%27%2C+%27date%27%3A+%272016-11-10+07%3A44%3A00%27%7D&resetDefault=false

To Reproduce after connected to the server, run parse_single_from_code.py(or other example codes)

Expected behavior all possible answers of the 5w1h in the example text should be printed

Log No extractors passed: initializing default configuration. No combinedScorers passed: initializing default configuration.

This issue is similar to #69,but I have the error:”HTTPError: 500 Server Error: Internal Server Error for url:http://localhost:9000/?properties=%7B%27outputFormat%27%3A+%27json%27%2C+%27timeout%27%3A+500000%2C+%27annotators%27%3A+%27tokenize%2Cssplit%2Cpos%2Clemma%2Cparse%2Cner%2Cdepparse%2Cmention%2Ccoref%27%2C+%27tokenize.language%27%3A+%27English%27%2C+%27date%27%3A+%272016-11-10+07%3A44%3A00%27%7D&resetDefault=false”

Versions (please complete the following information):

  • OS: [e.g.windows11]
  • Python Version [e.g. 3.8]
  • Giveme5W1H Version [e.g. 1.0.18]
  • Stanford CoreNLP Version 3.8.0

xrq682 avatar Nov 15 '22 10:11 xrq682