Hi Wasim,
Can you please post the full body of your payload?
Are you using basic authentication as header in your request?
Regards,
Erling

On Sun, Jun 19, 2016 at 12:28 PM, Wasim shaikh <engineer631...@gmail.com>
wrote:

> Public bug reported:
>
> I am sending Json data from Android Code like this
> {"orgUnit":"ZJhVlB8fBYe",
> "dataSet":"kAVHswRyXNL",
> "completeDate":"2016-06-19",
> "period":"20160619",
> "dataValues":
> [
> {"dataElement":"JrAwjhUoCQ5","value":10}
> ]
> }
>
> Then its Return Response Like this
> {"status":"ERROR",
> "description":"The import process failed: Unrecognized token 'zshah': was
> expecting ('true', 'false' or 'null')\n at [Source:
> org.apache.catalina.connector.CoyoteInputStream@4380bda5; line: 1,
> column: 7]",
> "dataValueCount":
> {"imported":0,"updated":0,"ignored":0,"deleted":0},
> "importCount":
> {"imported":0,"updated":0,"ignored":0,"deleted":0}
> }
>
> Note that the token which specify in Error is my Username('zshah').
> Please Help me to slove this problem.
>
> ** Affects: dhis2
>      Importance: Undecided
>          Status: New
>
> --
> You received this bug notification because you are a member of DHIS 2
> developers, which is subscribed to DHIS.
> https://bugs.launchpad.net/bugs/1594093
>
> Title:
>   DataValues not store in Dataset from Android
>
> Status in DHIS:
>   New
>
> Bug description:
>   I am sending Json data from Android Code like this
>   {"orgUnit":"ZJhVlB8fBYe",
>   "dataSet":"kAVHswRyXNL",
>   "completeDate":"2016-06-19",
>   "period":"20160619",
>   "dataValues":
>   [
>   {"dataElement":"JrAwjhUoCQ5","value":10}
>   ]
>   }
>
>   Then its Return Response Like this
>   {"status":"ERROR",
>   "description":"The import process failed: Unrecognized token 'zshah':
> was expecting ('true', 'false' or 'null')\n at [Source:
> org.apache.catalina.connector.CoyoteInputStream@4380bda5; line: 1,
> column: 7]",
>   "dataValueCount":
>   {"imported":0,"updated":0,"ignored":0,"deleted":0},
>   "importCount":
>   {"imported":0,"updated":0,"ignored":0,"deleted":0}
>   }
>
>   Note that the token which specify in Error is my Username('zshah').
>   Please Help me to slove this problem.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/dhis2/+bug/1594093/+subscriptions
>
> _______________________________________________
> 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
>
_______________________________________________
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

Reply via email to