← Back to team overview

dhis2-users team mailing list archive

dataValues api still functioning?

 

Dear all,

I tried to use the dataValues resource to delete single values according to
https://www.dhis2.org/doc/snapshot/en/developer/html/ch01s12.html#d5e1450.

I keep getting an Apache error "The resource identified by this request is only
capable of generating responses with characteristics not acceptable according to
the request “accept” headers."

I get the same response when running the example from the developers manual
directly against the demo-server.

 Version: DHIS 2.21 on standard Ubuntu 14.04 with Oracle Java 8 - the log is
attached.

Thanks, Uwe
C:\Users\Uwe Wahser>curl "http://gizubuntu:8080/api/dataValues?pe=20150102&ou=rBsPpSv11td&de=X9etg5beTot"; -X DELETE -u admin:district -v
*   Trying 192.168.56.2...
* Connected to gizubuntu (192.168.56.2) port 8080 (#0)
* Server auth using Basic with user 'admin'
> DELETE /api/dataValues?pe=20150102&ou=rBsPpSv11td&de=X9etg5beTot HTTP/1.1
> Host: gizubuntu:8080
> Authorization: Basic YWRtaW46ZGlzdHJpY3Q=
> User-Agent: curl/7.43.0
> Accept: */*
>
< HTTP/1.1 406 Not Acceptable
< Server: Apache-Coyote/1.1
< X-XSS-Protection: 1; mode=block
< X-Frame-Options: DENY
< X-Content-Type-Options: nosniff
< Set-Cookie: JSESSIONID=44895303639F8411EA109B9D1BD52CC8; Path=/; HttpOnly
< Content-Type: text/html;charset=utf-8
< Content-Language: en
< Content-Length: 1085
< Date: Wed, 18 Nov 2015 13:59:31 GMT
<
<html><head><title>Apache Tomcat/7.0.52 (Ubuntu) - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTPStatus 406 - </h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b><u></u></p><p><b>description</b> <u>The resource identified by this request is only capable of generating responses with characteristics not acceptable according to the request "accept" headers.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/7.0.52 (Ubuntu)</h3></body></html>* Connection #0to host gizubuntu left intact

Follow ups