-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[21.09] Skip non JSON-encodable values in params_to_strings()
#13826
base: release_21.09
Are you sure you want to change the base?
[21.09] Skip non JSON-encodable values in params_to_strings()
#13826
Conversation
Fix the error reported in galaxyproject#13455 , which was due to BioMart sending some binary empty strings as values, e.g. for the `hsapiens_gene_ensembl__filter.chromosomal_region__file` key. N.B.: the BioMart tool still doesn't work after this fix (probably BioMart's fault), but at least Galaxy doesn't fail with the mysterious: "Error executing tool id 'biomart': Object of type bytes is not JSON serializable"
Co-authored-by: Nicola Soranzo <[email protected]>
The failing Selenium tests are unrelated. |
value = dumps(value, sort_keys=True) | ||
except Exception as e: | ||
log.warning(f"Error while serializing value {value} for key {key}: {e}") | ||
continue |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems risky, don't you want to raise here ?
I think the issue is that we're not properly receiving the multi-part request from biomart in the legacy routes. The error message is of course a little unfortunate, but that's better than running a tool with incomplete data. If we want to special case something for biomart we should probably do that in
|
Fix the error reported in #13455 , which was due to BioMart sending some binary empty strings as values, e.g. for the
hsapiens_gene_ensembl__filter.chromosomal_region__file
key.N.B.: the BioMart tool still doesn't work after this fix (probably BioMart's fault), but at least Galaxy doesn't fail with the mysterious: "Error executing tool id 'biomart': Object of type bytes is not JSON serializable"
Also, cherry-pick commits from dev to fix test failures.
How to test the changes?
(Select all options that apply)
License