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: Max retries exceeded with url #141

Open
zhx828 opened this issue Oct 28, 2021 · 3 comments
Open

Error: Max retries exceeded with url #141

zhx828 opened this issue Oct 28, 2021 · 3 comments
Assignees
Labels

Comments

@zhx828
Copy link
Member

zhx828 commented Oct 28, 2021

Some of the users experience the following errors. Seems related to the SSL, but have difficult time reproducing.

INFO:MafAnnotator:annotating /data_mutations_extended.txt ...
INFO:AnnotatorCore:1000
Traceback (most recent call last):
  File "MafAnnotator.py", line 116, in <module>
    args.func(args)
  File "MafAnnotator.py", line 93, in main
    cancertypemap, argv.annotate_hotspots, user_input_query_type, default_reference_genome)
  File "/Users/kundrar/github_repos/oncokb-annotator/AnnotatorCore.py", line 402, in processalterationevents
    cancerTypeMap, annotatehotspots, default_reference_genome)
  File "/Users/kundrar/github_repos/oncokb-annotator/AnnotatorCore.py", line 497, in process_alteration
    annotations = pull_protein_change_info(queries,annotatehotspots)
  File "/Users/kundrar/github_repos/oncokb-annotator/AnnotatorCore.py", line 1465, in pull_protein_change_info
    response = makeoncokbpostrequest(url, queries)
  File "/Users/kundrar/github_repos/oncokb-annotator/AnnotatorCore.py", line 208, in makeoncokbpostrequest
    timeout=REQUEST_TIMEOUT)
  File "/Library/Python/2.7/site-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/Library/Python/2.7/site-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/Library/Python/2.7/site-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/Library/Python/2.7/site-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/Library/Python/2.7/site-packages/requests/adapters.py", line 514, in send
    raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='www.oncokb.org', port=443): Max retries exceeded with url: /api/v1/annotate/mutations/byProteinChange (Caused by SSLError(SSLError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:727)'),))
@zhx828 zhx828 added the bug label Oct 28, 2021
@zhx828
Copy link
Member Author

zhx828 commented Nov 10, 2022

This issue shows up again for another user while annotating a big file. It was running ok but got the same error at the end.

@zhx828 zhx828 self-assigned this Nov 10, 2022
@zhx828
Copy link
Member Author

zhx828 commented Jan 19, 2023

@zhx828
Copy link
Member Author

zhx828 commented Jan 19, 2023

This exception can be throw due to varies reasons, we need to look into the details at the end of exception for specific cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant