[annotator-dev] Annotator store delete fails every other time

Randall Leeds tilgovi at hypothes.is
Fri Nov 22 01:40:05 UTC 2013


Check the content type and other headers to be sure your response is
interpreted as JSON. The "no element found"message makes it sound like the
response is being parsed as HTML.
On Nov 21, 2013 2:51 PM, "Michael Emery" <michael.emery at sri.com> wrote:

>  My annotator store delete calls are failing every other time.
>
>
>
> The store is implemented in Java (Jersey/jax-rs) over Glassfish.
>
> Using: Annotator 1.2.7, jquery 1.8.3, jquery-ui-1.9.2
>
> The other store calls work great, but every other delete call fails with
> code 505.
>
> I’m seeing this behavior in both firefox and chrome.
>
>
>
> Here’s the log from firefox:
>
> [15:41:06.447] DELETE
> http://localhost:8080/test/rest/annotations/ap.txt/id-ap.txt-17acdf69-dc03-4847-a2fa-060865bf8f36[HTTP/1.1 200 OK 20ms]
>
> [15:41:06.399] no element found @
> http://localhost:8080/test/rest/annotations/ap.txt/id-ap.txt-17acdf69-dc03-4847-a2fa-060865bf8f36:1
>
> [15:41:09.247] DELETE
> http://localhost:8080/test/rest/annotations/ap.txt/id-ap.txt-081015b0-1f00-425f-a768-5646305d0b24[HTTP/1.1 505 HTTP Version Not Supported 5ms]
>
> [15:41:09.194] no element found @
> http://localhost:8080/test/rest/annotations/ap.txt/id-ap.txt-081015b0-1f00-425f-a768-5646305d0b24:1
>
> [15:41:09.195] API request failed: '505'
>
>
>
> When I send the delete calls via curl, I get a 204 every time:
>
> curl -i -X DELETE
> http://localhost:8080/test/rest/annotations/ap.txt/id-ap.txt-d9dbeee7-d93b-4a76-a706-76860a585cea
>
> HTTP/1.1 204 No Content
>
> X-Powered-By: Servlet/3.1 JSP/2.3 (GlassFish Server Open Source Edition
> 4.0  Java/Oracle Corporation/1.7)
>
> Server: GlassFish Server Open Source Edition  4.0
>
> Date: Thu, 21 Nov 2013 22:11:05 GMT
>
>
>
> WTB a clue!
>
> -          Mike
>
> _______________________________________________
> annotator-dev mailing list
> annotator-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/annotator-dev
> Unsubscribe: http://lists.okfn.org/mailman/options/annotator-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/annotator-dev/attachments/20131121/95a6b627/attachment-0004.html>


More information about the annotator-dev mailing list