Solve problem with xrefsBatch not working
nunogit opened this issue · comments
{"messages":["attribute paths.'/{organism}/xrefsBatch'(post).[body].collectionFormat is unexpected"],"schemaValidationMessages":[{"level":"error","domain":"validation","keyword":"anyOf","message":"instance failed to match at least one required schema among 2","schema":{"loadingURI":"http://json-schema.org/draft-04/schema#","pointer":"/properties/type"},"instance":{"pointer":"/definitions/IdList2/type"}}]}
- Check if we are running the latest version on git (maybe with @JonathanMELIUS
- Solve the issue :)
Still not working:
http://www.bridgedb.org/swagger/#!/Genes/post_organism_xrefsBatch
It seems to be failing still... @JonathanMELIUS, I guess you updated the BridgeDb webservice code too, in the update last week, not?
They seem to be working (returning results), but the service also seems to have trouble with new lines... I tried curl -D @inputfile.txt
with DOS and UNIX newlines, but both seem to have issue... Would that explain the results? This inputfile.txt
works:
CHEBI:28499 Ce
But this one does not:
CHEBI:28499 Ce
CHEBI:28498 Ce
The full curl command:
curl -X POST --header 'Content-Type: text/html' --header 'Accept: */*' -d @inputfile.txt 'http://webservice.bridgedb.org/Human/xrefsBatch
The problem in swagger.json (webservice json description), is now solved. The error is no longer reported.
The problem with the webservice still exists, but this is a different problem. Might actually be at server level.
I will be opening a new ticket for this.