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

trait doc generation fix #44

Open
jdhayhurst opened this issue Nov 29, 2022 · 2 comments
Open

trait doc generation fix #44

jdhayhurst opened this issue Nov 29, 2022 · 2 comments

Comments

@jdhayhurst
Copy link
Contributor

Occasionally, and not repeatably, the following exception is raised during the trait doc generation:

HTTPConnectionPool(host='www-proxy.ebi.ac.uk', port=3128): Max retries exceeded with url: http://www.ebi.ac.uk/ols/api/ontologies/efo/terms/http%253A%252F%252Fwww.ebi.ac.uk%252Fefo%252FEFO_0008221 (Caused by ProxyError('Cannot connect to proxy.', NewConnectionError('<urllib3.connection.HTTPConnection object at 0x15055f9ff550>: Failed to establish a new connection: [Errno -2] Name or service not known'))

This is in the errors:

Getting EFO term - hierarchicalDescendants mapping: 100%|██████████| 7196/7196 [17:21<00:00,  6.91it/s]
Get EFO/Mapped trait data:  26%|██▌       | 1859/7196 [06:33<18:48,  4.73it/s]
Traceback (most recent call last):
  File "/gwas-utils/bin/generate-solr-docs", line 10, in <module>
    sys.exit(main())
  File "/gwas-utils/lib/python3.7/site-packages/scripts/generate_solr_docs.py", line 155, in main
    document_data = dispatcher[doc](db_object.connection, limit, test)
  File "/gwas-utils/lib/python3.7/site-packages/scripts/generate_solr_docs.py", line 20, in trait_data
    return trait.get_trait_data(connection)
  File "/gwas-utils/lib/python3.7/site-packages/scripts/document_types/trait.py", line 151, in get_trait_data
    if not ols_term_data['iri'] == None:
TypeError: 'NoneType' object is not subscriptable
@sprintell
Copy link
Member

Investigate what is been retrived from OLS

@sprintell please discuss with OLs team on the possibility of providing and endpoint for bulk retrieval of what is been retrieved in this issues

@ljwh2
Copy link

ljwh2 commented Nov 27, 2023

@ala-ebi @sajo-ebi @sprintell is this an ongoing issue, or can the ticket be closed?

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

3 participants