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

2015-11-18.dataValues-api.txt (1.9 KB)

Hi Uwe,

it seems you are right. We will fix this. Short term workaround is to add this header to the request (in curl):

-H “Accept:text/plain”

regards,

Lars

···

On Wed, Nov 18, 2015 at 3:47 PM, Uwe Wahser uwe@wahser.de wrote:

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


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp

Lars Helge Øverland

Lead developer, DHIS 2

University of Oslo

Skype: larshelgeoverland

http://www.dhis2.org

Hi Uwe,

this has been corrected in trunk and 2.21.

On POST it will return http status code 201 and for delete it will return 204. No Accept header is required.

regards,

Lars

···

On Wed, Nov 18, 2015 at 4:38 PM, Lars Helge Øverland larshelge@gmail.com wrote:

Hi Uwe,

it seems you are right. We will fix this. Short term workaround is to add this header to the request (in curl):

-H “Accept:text/plain”

regards,

Lars

On Wed, Nov 18, 2015 at 3:47 PM, Uwe Wahser uwe@wahser.de wrote:

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


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp

Lars Helge Øverland

Lead developer, DHIS 2

University of Oslo

Skype: larshelgeoverland

http://www.dhis2.org

Lars Helge Øverland

Lead developer, DHIS 2

University of Oslo

Skype: larshelgeoverland

http://www.dhis2.org

Hi Lars,

thank's a lot. I'm again amazed of the speed at which you guys respond to problems - 1h to workaround and another 6hrs to fix. Not bad ...

regards,

Uwe

···

---

Am 18.11.2015 um 20:39 schrieb Lars Helge Øverland:

Hi Uwe,

this has been corrected in trunk and 2.21.

On POST it will return http status code 201 and for delete it will return 204. No Accept header is required.

regards,

Lars

On Wed, Nov 18, 2015 at 4:38 PM, Lars Helge Øverland > <larshelge@gmail.com <mailto:larshelge@gmail.com>> wrote:

    Hi Uwe,

    it seems you are right. We will fix this. Short term workaround is
    to add this header to the request (in curl):

    -H "Accept:text/plain"

    regards,

    Lars

    On Wed, Nov 18, 2015 at 3:47 PM, Uwe Wahser <uwe@wahser.de > <mailto:uwe@wahser.de>> wrote:

        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
        _______________________________________________
        Mailing list: https://launchpad.net/~dhis2-users
        <https://launchpad.net/~dhis2-users&gt;
        Post to : dhis2-users@lists.launchpad.net
        <mailto:dhis2-users@lists.launchpad.net>
        Unsubscribe : https://launchpad.net/~dhis2-users
        <https://launchpad.net/~dhis2-users&gt;
        More help : https://help.launchpad.net/ListHelp

    -- Lars Helge Øverland
    Lead developer, DHIS 2
    University of Oslo
    Skype: larshelgeoverland
    http://www.dhis2.org <https://www.dhis2.org>

--
Lars Helge Øverland
Lead developer, DHIS 2
University of Oslo
Skype: larshelgeoverland
http://www.dhis2.org <https://www.dhis2.org>

Thanks, no problem.

Lars

···

On Thu, Nov 19, 2015 at 7:11 PM, uwe wahser uwe@wahser.de wrote:

Hi Lars,

  thank's a lot. I'm again amazed of the speed at which you guys respond to problems - 1h to workaround and another 6hrs to fix. Not bad ...



  regards,



  Uwe

  ---




  Am 18.11.2015 um 20:39 schrieb Lars Helge Øverland:

Hi Uwe,

this has been corrected in trunk and 2.21.

      On POST it will return http status code 201 and for delete it will return 204. No Accept header is required.

regards,

Lars

      On Wed, Nov 18, 2015 at 4:38 PM, Lars Helge Øverland <larshelge@gmail.com>
      wrote:

Hi Uwe,

            it seems you are right. We will fix this. Short term workaround is to add this header to the request (in curl):

-H “Accept:text/plain”

regards,

Lars


Lars Helge Øverland

                                          Lead developer, DHIS 2

                                          University of Oslo

                                            Skype: larshelgeoverland

http://www.dhis2.org

                On Wed, Nov 18, 2015 at 3:47 PM, Uwe Wahser <uwe@wahser.de>
                wrote:

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](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

              Mailing list: [https://launchpad.net/~dhis2-users](https://launchpad.net/%7Edhis2-users)

              Post to     : dhis2-users@lists.launchpad.net

              Unsubscribe : [https://launchpad.net/~dhis2-users](https://launchpad.net/%7Edhis2-users)

              More help   : [https://help.launchpad.net/ListHelp](https://help.launchpad.net/ListHelp)

Lars Helge Øverland

                                                    Lead developer, DHIS 2

                                                    University of Oslo

Skype: larshelgeoverland

http://www.dhis2.org

Lars Helge Øverland

Lead developer, DHIS 2

University of Oslo

Skype: larshelgeoverland

http://www.dhis2.org