[Developers] Bad Cursor pt2

Augusto Callejas acallejas at appliedminds.com
Mon Oct 22 18:29:29 UTC 2007


hi-

another example of a bad cursor.  i issued query 1 with cursor=true and
received response 1 with a result and a cursor.  i issued query 2 with the
cursor from response 1 and received response 2, a new cursor but the same
result as response 1.  i issued query 3 with the cursor from response 2 and
received a bad cursor in response 3.  am i misusing cursors or is this a
bug?

thanks,
augusto.


Query 1 ================================================
{
  "query10":{
    "cursor":true,
    "query":[{
      "/freebase/type_hints/enumeration":null,
      "/freebase/type_hints/included_types":[],
      "domain":null,
      "id":"/cricket/dismissal_type",
      "name":null,
      "type":"/type/type"
    }]
  }
}
Response 1 ================================================
{
  "query10": {
    "cursor": "eNpLy6xITbEytLIwNTIwNDezAAAqxgRb",
    "code": "/api/status/ok",
    "result": [ 
      {
        "domain": "/cricket",
        "name": "Dismissal Type",
        "/freebase/type_hints/enumeration": null,
        "type": "/type/type",
        "/freebase/type_hints/included_types": [
          "/common/topic"
        ], 
        "id": "/cricket/dismissal_type"
      }
    ]
  }, 
  "status": "200 OK",
  "code": "/api/status/ok"
}
Query 2 ================================================
{
  "query11":{
    "cursor":"eNpLy6xITbEytLIwNTIwNDezAAAqxgRb",
    "query":[{
      "/freebase/type_hints/enumeration":null,
      "/freebase/type_hints/included_types":[],
      "domain":null,
      "id":"/cricket/dismissal_type",
      "name":null,
      "type":"/type/type"
    }]
  }
}
Response 2 =================================================
{
  "status": "200 OK",
  "query11": {
    "cursor": "eNpLLi0qzi-ySko1M7NKy6xITbEytLIwNTIwNDez0DfUBwCpAgkv",
    "code": "/api/status/ok",
    "result": [ 
      {
        "domain": "/cricket",
        "name": "Dismissal Type",
        "/freebase/type_hints/enumeration": null,
        "type": "/type/type",
        "/freebase/type_hints/included_types": [
          "/common/topic"
        ], 
        "id": "/cricket/dismissal_type"
      }
    ]
  }, 
  "code": "/api/status/ok"
}
Query 3 =================================================
{
  "query12":{
    "cursor":"eNpLLi0qzi-ySko1M7NKy6xITbEytLIwNTIwNDez0DfUBwCpAgkv",
    "query":[{
      "/freebase/type_hints/enumeration":null,
      "/freebase/type_hints/included_types":[],
      "domain":null,
      "id":"/cricket/dismissal_type",
      "name":null,
      "type":"/type/type"
    }]
  }
}
Response 3 ==================================================
{
  "status": "200 OK",
  "query12": {
    "code": "/api/status/error",
    "messages": [
      {
        "info": {  
          "detail": "cannot resume at \"cursor:be66:fixed:1:85201768/1/\"",
          "subclass": "BADCURSOR"
        }, 
        "message": "error BADCURSOR: cannot resume at
\"cursor:be66:fixed:1:85201768/1/\"",
        "code": "/api/status/error/mql/graph"
      }
    ]
  }, 
  "code": "/api/status/ok"
}
==================================================




More information about the Developers mailing list