dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #43359
Re: Events API - content length mismatch
hey
I haven't run into this but you may have to page:( or you could try a
sqlview which won't have a size restriction (you would have to use a
function as tracker events can't be accessed with raw sql).
On Thursday, 18 February 2016, Olav Poppe <olav.poppe@xxxxxx> wrote:
> Hi devs,
> I’m trying to fetch events from the API (DHIS 2.22 build 21829). For a
> small number of events, everything works fine. However, for larger
> datasets, it fails to load the full "events" object.
>
> This is the request (should return about 700 events):
>
> api/events.json?orgUnit=M4nRM5O3mH8&ouMode=DESCENDANTS&programStage=wmSb9TmevMn&startDate=2013-02-17&endDate=2016-02-17&status=COMPLETED&skipPaging=true
>
> These are the error messages:
> Chrome: "ERR_CONTENT_LENGTH_MISMATCH"
> Curl: curl: (18) transfer closed with 1557104 bytes remaining to read
> node.js request.get: simply loads the first part of the events object as a
> string
>
> Any advice?
>
> Olav
>
--
*Pierre Dane*
Jembi Health Systems
Software Development Manager
tel: +27 (0)21 701 0939
cel: +27 (0)83 680 8274
email: pierre@xxxxxxxxx
web: www.jembi.org
Follow ups
References