You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@usergrid.apache.org by "Jeffrey (JIRA)" <ji...@apache.org> on 2015/11/02 17:25:28 UTC

[jira] [Updated] (USERGRID-599) Cannot get events after they have been posted

     [ https://issues.apache.org/jira/browse/USERGRID-599?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jeffrey  updated USERGRID-599:
------------------------------
    Sprint: Usergrid 33  (was: Usergrid 32)

> Cannot get events after they have been posted
> ---------------------------------------------
>
>                 Key: USERGRID-599
>                 URL: https://issues.apache.org/jira/browse/USERGRID-599
>             Project: Usergrid
>          Issue Type: Bug
>            Reporter: Alan Ho
>
> After posting an event to the event collection, there is no way to get the individual event back out, or query for the event. Attatched is a sample of creating an event in "sandbox", and immediately trying to retrieve it:
> Alans-MacBook-Air:~ ApigeeCorporation$curl -X POST https://api.usergrid.com/twyder/sandbox/events -d '{"timestamp": 0, "counters" : {"mycounter_20":1}}' 
> {
>   "action" : "post",
>   "application" : "93554305-3e6a-11e2-9141-02e81ae640dc",
>   "params" : { },
>   "path" : "/events",
>   "uri" : "https://api.usergrid.com/twyder/sandbox/events",
>   "entities" : [ {
>     "uuid" : "c06510a0-83a4-182e-ba26-7f45da741a63",
>     "type" : "event",
>     "created" : 1430241847214,
>     "modified" : 1430241847214,
>     "timestamp" : 1430241847214,
>     "counters" : {
>       "mycounter_20" : 1
>     },
>     "message" : null,
>     "metadata" : {
>       "path" : "/events/c06510a0-83a4-182e-ba26-7f45da741a63"
>     }
>   } ],
>   "timestamp" : 1430241847212,
>   "duration" : 16,
>   "organization" : "twyder",
>   "applicationName" : "sandbox"
> }Alans-MacBook-Air:~ ApigeeCorporation$ curl -X GET https://api.usergrid.com/twyder/sandbox/events/c06510a0-83a4-182e-ba26-7f45da741a63
> {"error":"service_resource_not_found","timestamp":1430241876216,"duration":0,"exception":"org.apache.usergrid.services.exceptions.ServiceResourceNotFAlans-MacBook-AAlans-MacBooAlAlA



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)