OpenSocial / spec

OpenSocial Specification #social
http://opensocial.org/
Apache License 2.0
106 stars 11 forks source link

OpenSocial API stopped working for Calendar Gadget #1300

Closed mmarum-sugarcrm closed 11 years ago

mmarum-sugarcrm commented 11 years ago

Original author: krask...@gene.com (January 16, 2013 07:17:36)

I found out that opensocial API we were using in Calendar Sidebar Gadget stopped working. It was still working correctly on Friday. We were using opensocial to store and get some key-value data, and today we are getting error code: badRequest (with no error message) everytime we are trying to read anything.

This an example of the code we are using:

var idspec = opensocial.newIdSpec({ "userId" : "VIEWER", "groupId" : "SELF" });
var req = opensocial.newDataRequest();
req.add(req.newFetchPersonAppDataRequest(idspec, "mydata"), "get_data");
req.send(function(data){console.log(data)});

And this is the response we are getting from google:

errorMessage_: undefined
  globalError_: true
  responseItems_: Object
  get_data: opensocial.ResponseItem
    data_: null
    errorCode_: "badRequest"
    errorMessage_: undefined

The code is quite simillar to what is described here: http://docs.opensocial.org/display/OSREF/App+Data

Does anyone have some similar problem, or know how to fix it? We are using it on our production system which is down since morning. any help would be appreciated.

Original issue: http://code.google.com/p/opensocial-resources/issues/detail?id=1331