Issue while using curl command

Hello all,

                I am trying to follow

http://dhis2.org/doc/snapshot/en/user/html/ch23s09.html
to understand “Reading data values”. When I try to use

`      curl

“`` &period=201201&orgUnit=DiszpKrYNg8” -H
“Accept:application/xml” -u admin:district -v

`

I am expecting the output as demonstrated on the page, but instead,

I am getting the following as response

`

  <?xml version='1.0' encoding='UTF-8'?><dataValueSet

xmlns= dataSet=“pBOMPrpg1QX”
period=“201201” orgUnit=“DiszpKrYNg8”/>* Closing connection #0`

While using the same command about 10 days back, I was getting ditto

output as demonstrated on the page but all of a sudden this issue
arises.

Can anyone please explain me the issue and help me resolve it.

Thank you,
···

http://apps.dhis2.org/demo/api/dataValueSets?dataSet=pBOMPrpg1QX"http://dhis2.org/schema/dxf/2.0"

Forwarding to devs list.

Ola

···

On 2 Mar 2013 14:49, “Jibesh Patra” goodboy007.pro@gmail.com wrote:

Hello all,

                I am trying to follow [http://dhis2.org/doc/snapshot/en/user/html/ch23s09.html](http://dhis2.org/doc/snapshot/en/user/html/ch23s09.html)
to understand "Reading data values". When I try to use



`      curl "[http://apps.dhis2.org/demo/api/dataValueSets?dataSet=pBOMPrpg1QX](http://apps.dhis2.org/demo/api/dataValueSets?dataSet=pBOMPrpg1QX)``      &period=201201&orgUnit=DiszpKrYNg8" -H "Accept:application/xml" -u admin:district -v

`

I am expecting the output as demonstrated on the page, but instead, I am getting the following as response

`

  <?xml version='1.0' encoding='UTF-8'?><dataValueSet xmlns=["http://dhis2.org/schema/dxf/2.0"](http://dhis2.org/schema/dxf/2.0) dataSet="pBOMPrpg1QX" period="201201" orgUnit="DiszpKrYNg8"/>* Closing connection #0`

 

While using the same command about 10 days back, I was getting ditto output as demonstrated on the page but all of a sudden this issue arises.



Can anyone please explain me the issue and help me resolve it.



Thank you,

--

Jibesh Patra

 


`





``







`

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

Hi

Did you follow all the instructions? remember that this db is cleaned every night, so you will need to also do the part that sends data to the server.

···


Morten

On Sat, Mar 2, 2013 at 5:17 PM, Ola Hodne Titlestad olati@ifi.uio.no wrote:

Forwarding to devs list.

Ola


On 2 Mar 2013 14:49, “Jibesh Patra” goodboy007.pro@gmail.com wrote:

Hello all,

                I am trying to follow [http://dhis2.org/doc/snapshot/en/user/html/ch23s09.html](http://dhis2.org/doc/snapshot/en/user/html/ch23s09.html)
to understand "Reading data values". When I try to use



`      curl "[http://apps.dhis2.org/demo/api/dataValueSets?dataSet=pBOMPrpg1QX](http://apps.dhis2.org/demo/api/dataValueSets?dataSet=pBOMPrpg1QX)``      &period=201201&orgUnit=DiszpKrYNg8" -H "Accept:application/xml" -u admin:district -v

`

I am expecting the output as demonstrated on the page, but instead, I am getting the following as response

`

  <?xml version='1.0' encoding='UTF-8'?><dataValueSet xmlns=["http://dhis2.org/schema/dxf/2.0"](http://dhis2.org/schema/dxf/2.0) dataSet="pBOMPrpg1QX" period="201201" orgUnit="DiszpKrYNg8"/>* Closing connection #0`

 

While using the same command about 10 days back, I was getting ditto output as demonstrated on the page but all of a sudden this issue arises.



Can anyone please explain me the issue and help me resolve it.



Thank you,

--

Jibesh Patra

 


`





``







`

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


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

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

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

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

Hi Jibesh,

as Morten says, this command assumes that you have posted some data in the section about sending data values:

http://dhis2.org/doc/snapshot/en/user/html/ch23s06.html

I just did that part now, if you re-execute your command it will now return data.

As Ola says, be aware the demo db is reset nightly.

Lars