Closed waakanni closed 9 months ago
Hi @waakanni,
can you show what is your request.json file?
This error happens when you are trying to query by a filtering term you don't have in your filtering terms endpoint. So the beacon complains because it can't find a label for this id UBERON:0001256 inside filtering terms endpoint.
Best,
Oriol
here:
{
"meta": {
"apiVersion": "2.0"
},
"query": {
"filters": [
{
"id": "UBERON:0001256",
"scope": "biosamples",
"includeDescendantTerms": false
}
],
"includeResultsetResponses": "HIT",
"pagination": {
"skip": 0,
"limit": 10
},
"testMode": false,
"requestedGranularity": "count"
}
}
Thanks
Yes, is as I suspected. There is no filtering term for UBERON:0001256. If you run this other filtering term, UBERON:0000178, you will get some results as it appears by default in beacon reference implementation CINECA dataset. Try the request with request.json looking like this:
{
"meta": {
"apiVersion": "2.0"
},
"query": {
"filters": [
{
"id": "UBERON:0000178",
"scope": "biosamples",
"includeDescendantTerms": false
}
],
"includeResultsetResponses": "HIT",
"pagination": {
"skip": 0,
"limit": 10
},
"testMode": false,
"requestedGranularity": "count"
}
}
Thanks.
This does indeed solves the issue. Can we update the documentation?
Thanks for all the help @costero-e
Yes, I will update the documentation later this afternoon!
No problem @waakanni, thanks to you for the reporting.
Closing this issue now, let me know if you find any other.
https://github.com/EGA-archive/beacon2-ri-api/blob/master/deploy/README.md#using-post When running this example post request
http POST http://localhost:5050/api/biosamples --json < request.json
on the test dataset on a local beacon install I get the above error.Here is the log output of beacon: