Transcript version page - Handle Ensembl API error
- Dominant language
- Python
- Stars
- 30
- Forks
- 3
- Avg merge
- 9h 28m
- Merged PRs (30d)
- 42
Description
View details in Rollbar: [https://app.rollbar.com/a/jimmy.andrews/fix/item/VariantGrid/4511](https://app.rollbar.com/a/jimmy.andrews/fix/item/VariantGrid/4511)
```
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 197, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/opt/variantgrid/genes/views/views.py", line 476, in view_transcript_version
tv_sequence_info = TranscriptVersionSequenceInfo.get(accession)
File "/opt/variantgrid/genes/models.py", line 1300, in get
tvi = TranscriptVersionSequenceInfo._get_and_store_from_ensembl_api(transcript_accession)
File "/opt/variantgrid/genes/models.py", line 1347, in _get_and_store_from_ensembl_api
data = r.json()
File "/usr/local/lib/python3.10/dist-packages/requests/models.py", line 917, in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
JSONDecodeError: [Errno Expecting value]
// Detect if JS is on and swap vf-no-js for vf-js on the html element
(function(H){H.className=H.className.replace(/\bvf-no-js\b/,'vf-js')})(document.documentElement);
Error: 500 | EMBLâs European Bionformatics Institute
head, title, link, meta, style, script {--vf-stack-margin--custom: 0; }
.embl-grid {
margin-bottom: 48px;
}
Error: 500
There was a technical error.
Something has gone wrong with our web server when attempting to make this page.
Unfortunately, the service you are trying to access is currently unavailable.
Please try again later.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.