opencast / annotation-tool

A video annotation service that is suitable for research, teaching and learning
Educational Community License v2.0
40 stars 19 forks source link

Api endpoint Videos/{id} returns '400' error #235

Open mliradelc opened 5 years ago

mliradelc commented 5 years ago

The video API endpoint in the opencast integration gives an error 400 instead of giving the data that is shown in the documentation.

https://github.com/opencast/annotation-tool/blob/develop/documentation/Rest-video.md

mtneug commented 5 years ago

I had this error (or was it another endpoint) as well and I believe entries in the DB caused this. The endpoint should have thrown a 500 and logged an exception, but if I recall correctly the handlers simply catch all exceptions and return a 400. This made debugging a little bit harder.

JulianKniephoff commented 5 years ago

@mtneug can you elaborate on this a bit? Which entries in the DB do you mean and how do they cause this? And which handlers do you mean?