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 stack trace from server logs #76

Open
woodthom2 opened this issue Jan 7, 2025 · 0 comments
Open

Error stack trace from server logs #76

woodthom2 opened this issue Jan 7, 2025 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@woodthom2
Copy link
Contributor

Description

The Harmony server crashed on 3 Jan 2025 and this was the last entry in the server logs. It might be a coincidence and not the cause of the crash.

usr/local/lib/python3.10/site-packages/openpyxl/worksheet/_reader.py:329: UserWarning: Data Validation extension is not supported and will be removed
  warn(msg)
Traceback (most recent call last):
  File "/backend/./harmony/src/harmony/parsing/excel_parser.py", line 123, in convert_excel_to_instruments
    language = detect(" ".join(df_questions["question"]))
  File "/usr/local/lib/python3.10/site-packages/langdetect/detector_factory.py", line 130, in detect
    return detector.detect()
  File "/usr/local/lib/python3.10/site-packages/langdetect/detector.py", line 136, in detect
    probabilities = self.get_probabilities()
  File "/usr/local/lib/python3.10/site-packages/langdetect/detector.py", line 143, in get_probabilities
    self._detect_block()
  File "/usr/local/lib/python3.10/site-packages/langdetect/detector.py", line 150, in _detect_block
    raise LangDetectException(ErrorCode.CantDetectError, 'No features in text.')
langdetect.lang_detect_exception.LangDetectException: No features in text.
  File "/usr/local/lib/python3.10/threading.py", line 973, in _bootstrap
    self._bootstrap_inner()
  File "/usr/local/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
    self.run()
  File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 859, in run
    result = context.run(func, *args)
  File "/backend/harmony_api/routers/text_router.py", line 174, in parse_instruments
    new_instruments = convert_files_to_instruments(
  File "/backend/./harmony/src/harmony/parsing/wrapper_all_parsers.py", line 55, in convert_files_to_instruments
    instruments_from_this_file = _get_instruments_from_file(file)
  File "/backend/./harmony/src/harmony/parsing/wrapper_all_parsers.py", line 43, in _get_instruments_from_file
    instruments_from_this_file = convert_excel_to_instruments(file)
  File "/backend/./harmony/src/harmony/parsing/excel_parser.py", line 127, in convert_excel_to_instruments
    traceback.print_stack()
Error identifying language in Excel file
INFO:     193.61.168.178:2532 - "POST /text/parse HTTP/1.1" 200 OK
INFO:     193.61.168.178:5946 - "OPTIONS /text/match?include_catalogue_matches=true HTTP/1.1" 200 OK

Environment

Provide details regarding the operating system, toolchain, and environment.

How to Reproduce

  1. This ran on CentOS with Docker container

I don't have the input that was loaded into the tool.

Expected Behaviour

Ideally we would not get an error

@woodthom2 woodthom2 added bug Something isn't working good first issue Good for newcomers labels Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant