When I run the compliancetests app, Firebug reports 5 ajax calls to /social/data. Each call posts a security token and requestItem. The response I get back on all 5 requests is:
{"responses":false,"error":"badRequest"} And then the Javascript error I get after all of them is: dataResponse.get("viewerData") is undefined http://shindig.laboratree.org/gadgets/ifr?synd=default&container=default&viewer=1&owner=1&aid=7&mid=7&country=US&lang=EN&view=canvas&parent=http%3A%2F%2Flaboratree.org&st=i6h6s6nrA%252BXwBuqiY%252Fy1CSD%252BMuJ5IJ9khkWzP1ThSs41h4RcN3UukBeMweGw03qz5EonEV2DMhRPf%252B%252F%252BgFEpclUTsXqh3J46BQPLW8SM%252FmhBn%252BsAunq6RqE%252FgzmZcmOfZuhek2KKM98YK5Zs5wUrtaPXDlgA%252FpGpulnm9c7nb5BnkcyvzCOTEEPTa2n9in0ardQYDU1qI31fazzM7FOdLV1cZjLSVAFi0ydHOzS0UkAUIy1%252BDXkm3339Riv64NPz5RFuNA%253D%253D&v=a086fcee8305e298d318f22676d241d6&url=http%3A%2F%2Fopensocial-resources.googlecode.com%2Fsvn%2Ftests%2Ftrunk%2Fcompliancetests.xml&view-params=#rpctoken=788733709 Line 495 I've checked the DataHandler I wrote and I don't see any obvious problems there. Thanks, Brandon On Thu, Jun 5, 2008 at 7:19 PM, Kevin Brown <[EMAIL PROTECTED]> wrote: > On Thu, Jun 5, 2008 at 3:42 PM, Brandon Peters <[EMAIL PROTECTED]> > wrote: > >> Hello, >> After I got back from Google I/O, I decided to try to get Shindig >> setup with my SNS. I've been struggling with getting Shindig setup >> since then, and I think I've made decent progress. I've implemented a >> DataHandler (copied and modified from Partuza), put the >> /js/container.js file in place (copied and modified from Partuza), >> created code to save preferences from gadgets, and implemented adding >> gadgets with a canvas page (copied and modified from Partuza). I'm >> still having a few problems here and there. >> >> My main problem now is that the gadgets I am testing are not getting >> data for some reason. When I run the compliancetests gadget, I fail on >> several of the tests, and I always get this error >> 'dataResponse.get("viewerData") is undefined'. Is there a more >> step-by-step guide on how to setup Shindig on an SNS, and any clues on >> why my dataResponse.get would be undefined? >> >> I also wanted to know the purpose of /config/oauth.json, > > > This is a way to pre-authenticate gadgets for oauth. It's used only for the > basic oauth handling; in reality, a proper site would probably store this > information in a database of some sort. > > >> /config/syndicator.js (I don't have one), and /config/container.js. >> I've modified the /config/container.js, but wasn't sure if I changed >> everything I should have. > > > syndicator.js was renamed to container.js > > container.js is configuration for a container. This is different from global > configuration. > > Global configuration handles language specific details. It takes the form of > a java properties file in the java implementation, and a php script in the > php implementation. > > Container configuration stores configuration parameters that are not > language specific, including all configuration for javascript libraries. > Container configuration has an inheritance model that allows you to just > override certain configuration settings while keeping others. It was > designed this way to facilitate a single organization that has to support > multiple containers simultaneously -- the simplest example is when you have > two public-facing deployments; one a limited developer sandbox, the other a > tightly controlled production environment. Some organizations have the > resources and architectural setup to deploy these completely independently, > while others don't, so we support both models. > > >> >> Are there any gadgets I could use to test out my container? I've >> loaded the ToDo gadget from LabPixies, but it never seems to make any >> calls to /socialdata/. >> >> Thanks, >> Brandon Peters >> > -- Brandon Peters