-
Notifications
You must be signed in to change notification settings - Fork 96
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
Downloading list of annotation documents through RemoteAPI fails #353
Comments
Do you see any additional exceptions in your catalina.out? |
My code gets a list of source documents from the project, the loops through them and sends a request for the list of annotated documents for the ones that don't have state "NEW". Most of the time this works, but for some documents it returns an error with the message listed above. Below is the error message from the log:
|
That stack trace seems to indicate that there is no source document with the specified ID in the specified project. So it seems to be related to the source document, not to the annotation documents. Are you sure that there actually is a source document with the given ID in the project with the given ID? |
I looked at an API call that failed and then looked in the repository under /srv/webanno . I see both the project number and the project's document directory, a directory with the source document ID. In the document id directory, it has the original source document in the source directory and a .ser file in the annotation directory. I don't see what's different between the documents that are working and those that aren't. |
I'm updating the API with more detailed error messages and proper HTTP status codes... |
It looks like the original problem was due to the occasional null timestamps for annotation documents. I'm not encountering the problem now that there is the null check: if (annDoc.getTimestamp() != null) { |
Ok, good. Kind of... I don't know yet why we don't have timestamps for all documents ;) So I guess we can close this issue then for now. |
While using the remote api to download a list of annotation documents for a source document, the server frequently fails with the status code 500.
It does work the majority of the time but I can't see what is different about the files that don't. I call the api just a with the other documents:
http://user:password@localhost:18080/api/projects/9/sourcedocs/2356/annos
But I get the response:
The text was updated successfully, but these errors were encountered: