When shindig starts it makes a request to to /social/rpc to get the list of available methods. See container.js sections "osapi" and "osapi.services" for ways to hard-code the list or change the endpoints used.
On Mon, Nov 30, 2009 at 6:18 AM, Luc Arthur Castera <[email protected]>wrote: > Paul, > > When I load the gadget that uses osapi.people, I get a javascript error in > Firebug: osapi.people is undefined > > I also see the following warning coming from rpc.js: Unknown RPC service: > osapi._handleGadgetRpcMethod > > On the shindig logs, I see the following error: > > Nov 30, 2009 9:06:59 AM > org.apache.shindig.gadgets.render.DefaultServiceFetcher retrieveServices > SEVERE: Failed to parse services methods from endpoint > http://localhost:8080/social/rpc. JSONObject["data"] not found. > > My environment is the following: > - Ubuntu 9.10 > - Java 1.6.0_16 > - Java version of Shindig (Trunk: SVN Revision 818615) > > I appreciate your help with this, > > Luc > > > > On Fri, Nov 27, 2009 at 5:45 AM, Paul Lindner <[email protected]> wrote: > > > osapi should 'just work' if you specify <Require feature="osapi"/> in > your > > ModulePrefs. What behavior are you observing? Do you get the osapi > classes > > loaded? Is there any error with 'listMethods' in your shindig logs? > > > > Can you provide more information about your environment? Java/PHP? > > Javascript Errors? etc.... > > > > Thanks! > > > > > > On Wed, Nov 25, 2009 at 5:10 PM, Luc Arthur Castera > > <[email protected]>wrote: > > > > > Hey, > > > > > > I wrote a gadget that uses the OS lite api (osapi.people, > osapi.appdata, > > > etc...). When I test the gadget on iGoogle, it works fine but when I > try > > it > > > on my local shindig instance, it is not working properly. It looks like > > the > > > osapi.people and osapi.appdata are not implemented in Shindig. > > > > > > FYI, I have written my adapters for my local shindig instance and I am > > able > > > to use the older JS APIs without any issue. > > > > > > Are we suppose to implement the osapi.js libraries ourselves when we > > build > > > our container or is it just that the shindig implementation hasn't > > > implemented these newer APIs yet? > > > > > > Any pointers of the issue would be greatly helpful. I tried to search > the > > > mailing list but could not find anything on that matter. > > > > > > Thank you, > > > > > > Luc > > > > > > > > > -- > ______________________ > Luc Castera >

