Skip to content

Unknown error while validating raw metadata in local instance. #10

@NishaSharma14

Description

@NishaSharma14

Describe the bug
I spinned up an instance locally by performing the following steps:

  1. git clone https://github.com/ElixirTeSS/bioschemas-validator.git
  2. git checkout develop
  3. $ pip install -r requirements.txt
  4. streamlit run website_st.py
2022-12-14 10:27:44.241 INFO    matplotlib.font_manager: generated new fontManager

Collecting usage statistics. To deactivate, set browser.gatherUsageStats to False.

2022-12-14 10:27:44.952 Did not auto detect external IP.
Please go to https://docs.streamlit.io/ for debugging hints.

  You can now view your Streamlit app in your browser.

  Network URL: http://172.25.141.140:8501

To Reproduce
Steps to reproduce the behavior:

  1. Go to http://172.25.141.140:8501
  2. Enter Raw metadata
  3. Press Ctrl + Enter
  4. See error
TypeError: string indices must be integers
Traceback:
File "/home/nisha/anaconda3/lib/python3.7/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 564, in _run_script
    exec(code, module.__dict__)
File "/home/nisha/bioschemas-validator/website_st.py", line 107, in <module>
    markdown_text = report.generate_report_summary(result)
File "/home/nisha/bioschemas-validator/web/report.py", line 13, in generate_report_summary
    """

Expected behavior
It should display any proper validation error if my raw metadata has.

Screenshots
image

Operating System
Windows WSL.

Can anyone please help if I am missing something out here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions