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

download_from_api (elasticsearch) may fail #20

Open
glass-ships opened this issue Feb 10, 2023 · 0 comments
Open

download_from_api (elasticsearch) may fail #20

glass-ships opened this issue Feb 10, 2023 · 0 comments
Assignees

Comments

@glass-ships
Copy link
Collaborator

May complain about URL being improperly formatted

Traceback (most recent call last):

  File "<string>", line 1, in <module>

  File "D:\dev\tislab\kghub-downloader\kghub_downloader\main.py", line 17, in main
    download_from_yaml(yaml_file=yaml_file,

  File "D:\dev\tislab\kghub-downloader\kghub_downloader\download_utils.py", line 80, in download_from_yaml
    download_from_api(item, outfile)

  File "D:\dev\tislab\kghub-downloader\kghub_downloader\download_utils.py", line 167, in download_from_api
    es_conn = elasticsearch.Elasticsearch(hosts=[yaml_item['url']])

  File "D:\dev\tislab\kghub-downloader\.venv\lib\site-packages\elasticsearch\_sync\client\__init__.py", line 331, in __init__
    node_configs = client_node_configs(

  File "D:\dev\tislab\kghub-downloader\.venv\lib\site-packages\elasticsearch\_sync\client\utils.py", line 105, in client_node_configs
    node_configs = hosts_to_node_configs(hosts)

  File "D:\dev\tislab\kghub-downloader\.venv\lib\site-packages\elasticsearch\_sync\client\utils.py", line 151, in hosts_to_node_configs
    node_configs.append(url_to_node_config(host))

  File "D:\dev\tislab\kghub-downloader\.venv\lib\site-packages\elastic_transport\client_utils.py", line 216, in url_to_node_config
    raise ValueError(

ValueError: URL must include a 'scheme', 'host', and 'port' component (ie 'https://localhost:9200')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants