Another string parsing to int error, in report page this time
See original GitHub issueError:
2020-04-21 14:26:23,858 - scout.server.app - ERROR: Exception on /reports/report [POST] [in /home/hiseq.clinical/miniconda/envs/prod/lib/python3.6/site-packages/flask/app.py:1892]
Traceback (most recent call last):
File "/home/hiseq.clinical/miniconda/envs/prod/lib/python3.6/site-packages/flask/app.py", line 2447, in wsgi_app
response = self.full_dispatch_request()
File "/home/hiseq.clinical/miniconda/envs/prod/lib/python3.6/site-packages/flask/app.py", line 1952, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/hiseq.clinical/miniconda/envs/prod/lib/python3.6/site-packages/flask/app.py", line 1821, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/home/hiseq.clinical/miniconda/envs/prod/lib/python3.6/site-packages/flask/_compat.py", line 39, in reraise
raise value
File "/home/hiseq.clinical/miniconda/envs/prod/lib/python3.6/site-packages/flask/app.py", line 1950, in full_dispatch_request
rv = self.dispatch_request()
File "/home/hiseq.clinical/miniconda/envs/prod/lib/python3.6/site-packages/flask/app.py", line 1936, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/home/hiseq.clinical/miniconda/envs/prod/lib/python3.6/site-packages/chanjo_report/server/blueprints/report/views.py", line 73, in report
gene_ids = [int(gene_id.strip()) for gene_id in raw_gene_ids.split(',')]
File "/home/hiseq.clinical/miniconda/envs/prod/lib/python3.6/site-packages/chanjo_report/server/blueprints/report/views.py", line 73, in <listcomp>
gene_ids = [int(gene_id.strip()) for gene_id in raw_gene_ids.split(',')]
ValueError: invalid literal for int() with base 10: 'IDU
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Python String to Int, Int to String - DigitalOcean
This exception occurs if the string you want to convert does not represent any numbers.
Read more >Converting String to Int using try/except in Python
So I'm pretty stumped on how to convert a string into an int using the try/except function.
Read more >Solved: Error while convert string to number
Solved: Hi, I have 2 variables: 1 is string and 1 is integer. The string value already get from a table and substring...
Read more >10 Reasons of java.lang.NumberFormatException in ... - Java67
This error comes when you try to convert a String into numeric data types e.g., int, float, double, long, short, char, or byte....
Read more >Error : Cannot convert value " of type Text to type Integer
Error : Cannot convert value " of type Text to type Integer · Select the column with a left click · In the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Should work now
Thanks @moonso, moving this issue to chanjo-report: https://github.com/Clinical-Genomics/chanjo-report/issues/5