Hosting a local gadget

8 views
Skip to first unread message

Daniel França

unread,
Jan 27, 2010, 7:39:07 AM1/27/10
to google-...@googlegroups.com
Hi,
I'm trying to host a local gadget running Apache,
when I try to access that via browaer it works fine (and even work inside my company network), but in Google Wave the gadget appears broken, and I don't have any tip about why it's happening (Or I don't know where to see that).

The same gadget XML gadget file works fine when it's hosted in Google Hosting.

Any hint about how can I find out what's happening here?

Best Regards,
Daniel C. França

pamela fox

unread,
Jan 27, 2010, 12:36:49 PM1/27/10
to google-...@googlegroups.com

Hi Daniel -

Gadgets must be hosted on a public server, as they are sent through a proxy on the gadgets container server to get rendered. I thought we put that restriction in the docs, but perhaps it needs to be made more prominent. You may want to try hosting the XML publicly, and referring to your local server files in scrript tags .
- pamela

--
You received this message because you are subscribed to the Google Groups "Google Wave API" group.
To post to this group, send email to google-...@googlegroups.com.
To unsubscribe from this group, send email to google-wave-a...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-wave-api?hl=en.

rocketman

unread,
Jan 28, 2010, 1:38:01 PM1/28/10
to Google Wave API
Pamela, could you clarify or point to the docs that show what part(s)
of a Gadget have to be hosted on a public server? Does the actual
Gadget code have to be exposed publicly?

Cheers,
Paul

On Jan 27, 9:36 am, pamela fox <pamela....@gmail.com> wrote:
> Hi Daniel -
>
> Gadgets must be hosted on a public server, as they are sent through a proxy
> on the gadgets container server to get rendered. I thought we put that
> restriction in the docs, but perhaps it needs to be made more prominent. You
> may want to try hosting the XML publicly, and referring to your local server
> files in scrript tags .
> - pamela
>

> On 27 Jan 2010 23:39, "Daniel França" <daniel.fra...@gmail.com> wrote:
>
> Hi,
> I'm trying to host a local gadget running Apache,
> when I try to access that via browaer it works fine (and even work inside my
> company network), but in Google Wave the gadget appears broken, and I don't
> have any tip about why it's happening (Or I don't know where to see that).
>
> The same gadget XML gadget file works fine when it's hosted in Google
> Hosting.
>
> Any hint about how can I find out what's happening here?
>
> Best Regards,
> Daniel C. França
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Wave API" group.
> To post to this group, send email to google-...@googlegroups.com.
> To unsubscribe from this group, send email to

> google-wave-a...@googlegroups.com<google-wave-api%2Bunsu...@googlegroups.com>

pamela (Google Employee)

unread,
Jan 31, 2010, 6:09:47 AM1/31/10
to google-...@googlegroups.com
This section talks about the gadget being publicly visible:
http://code.google.com/apis/wave/extensions/gadgets/guide.html#hello

The actual XML is fetched through the gadgets proxy. Anything else
referenced in the gadget should be fetched by the browser, same as a
normal webpage.

If you want to share your gadget with the world one day, every aspect
will need to be public (same as a webpage).

- pamela

> To unsubscribe from this group, send email to google-wave-a...@googlegroups.com.

charyorde

unread,
Feb 2, 2010, 7:57:10 AM2/2/10
to Google Wave API
Hi, Pamela

I followed all the guideline on the Get Started page for building a
Wave Gadget. The section "Running a Gadget talks about hosting on GGE
and SVN". I tried hosting with GGE. Even though the file was uploaded
successfully, I wasn't redirected to any syndication creator page as
instructed in the "Publishing Your Gadget from GGE section".

Also, I don't seem to see any difference between hosting on GGE and
SVN. It seems both links to the same page.

I don't know what I'm doing wrong. Could you help shed more light.

On Jan 31, 11:09 am, "pamela (Google Employee)" <pamela...@gmail.com>
wrote:
> This section talks about thegadgetbeing publicly visible:http://code.google.com/apis/wave/extensions/gadgets/guide.html#hello


>
> The actual XML is fetched through the gadgets proxy. Anything else

> referenced in thegadgetshould be fetched by the browser, same as a
> normal webpage.
>
> If you want to share yourgadgetwith the world one day, every aspect


> will need to be public (same as a webpage).
>
> - pamela
>
>
>
> On Fri, Jan 29, 2010 at 5:38 AM, rocketman <pbar...@gmail.com> wrote:
> > Pamela, could you clarify or point to the docs that show what part(s)

> > of aGadgethave to be hosted on a public server?  Does the actual
> >Gadgetcode have to be exposed publicly?


>
> > Cheers,
> > Paul
>
> > On Jan 27, 9:36 am, pamela fox <pamela....@gmail.com> wrote:
> >> Hi Daniel -
>
> >> Gadgets must be hosted on a public server, as they are sent through a proxy
> >> on the gadgets container server to get rendered. I thought we put that
> >> restriction in the docs, but perhaps it needs to be made more prominent. You
> >> may want to try hosting the XML publicly, and referring to your local server
> >> files in scrript tags .
> >> - pamela
>
> >> On 27 Jan 2010 23:39, "Daniel França" <daniel.fra...@gmail.com> wrote:
>
> >> Hi,

> >> I'm trying to host a localgadgetrunning Apache,


> >> when I try to access that via browaer it works fine (and even work inside my

> >> company network), but in Google Wave thegadgetappears broken, and I don't


> >> have any tip about why it's happening (Or I don't know where to see that).
>

> >> The samegadgetXMLgadgetfile works fine when it's hosted in Google


> >> Hosting.
>
> >> Any hint about how can I find out what's happening here?
>
> >> Best Regards,
> >> Daniel C. França
>
> >> --
> >> You received this message because you are subscribed to the Google Groups
> >> "Google Wave API" group.
> >> To post to this group, send email to google-...@googlegroups.com.
> >> To unsubscribe from this group, send email to

> >> google-wave-a...@googlegroups.com<google-wave-api%2Bunsubscribe@ googlegroups.com>

Daniel França

unread,
Feb 3, 2010, 4:28:06 AM2/3/10
to google-...@googlegroups.com
Hi, did you click in "Publish"? after that should appear a link in upper right.
Anyway I think GGE is a lot unstable tool, sometimes it works fine, sometimes don't, sometimes I can't publish and it don't even show me some error message, etc.

kayode odeyemi

unread,
Feb 3, 2010, 4:37:01 AM2/3/10
to google-...@googlegroups.com
@Daniel

Yes I click on "Publish", but nothing seems to happen. Though I can see the link at the upper right, I copied it and tried to use it on the Google Wave Preview in the developer sandbox, but seems to happens. I was expecting after clicking publish I would be taken to a "syndication creation page". 

So, what is your suggested alternative.

2010/2/3 Daniel França <daniel...@gmail.com>



--
Odeyemi 'Kayode O.

Application Developer & Systems Engineer (Sun Certified Professional),
Drupal Developer

Tel: +2348053063373
P.O.Box 682, Ita-elewa, Ikorodu,
Lagos, Nigeria, West-Africa.

Website: http://www.sinati.com
Socialize with me: http://profile.to/charyorde, http://twitter.com/charyorde

Daniel França

unread,
Feb 3, 2010, 5:01:41 AM2/3/10
to google-...@googlegroups.com
Hi,
the same was happening to me yesterday (I didn't try today)... click publish, but dont update the file really and no error message appears.
I'm looking for a new hosting, I really can't trust on GGE.

Daniel França

unread,
Feb 3, 2010, 6:51:58 AM2/3/10
to google-...@googlegroups.com

Daniel França

unread,
Feb 3, 2010, 8:10:29 AM2/3/10
to google-...@googlegroups.com
why wave.getWaveId() is working fine on Firefox, but returning null in Chrome?

function init()
{
wave_id = wave.getWaveId().split('+')[1];
}


2010/2/3 Daniel França <daniel...@gmail.com>

Daniel França

unread,
Feb 3, 2010, 8:31:52 AM2/3/10
to google-...@googlegroups.com
GGE is driving me crazy hehehe, sometimes works, sometimes dont, sometimes update, sometimes dont... it's normal?


2010/2/3 Daniel França <daniel...@gmail.com>

Daniel França

unread,
Feb 3, 2010, 8:42:07 AM2/3/10
to google-...@googlegroups.com
Sometimes I publish the file (now using Gadget Checker because GGE simply can't even save my files), if I go to the url of the xml it seems up to date, fine... but if I add to a wave or simply open that in the GGE it's not updated. strange

2010/2/3 Daniel França <daniel...@gmail.com>

kayode odeyemi

unread,
Feb 3, 2010, 10:17:47 AM2/3/10
to google-...@googlegroups.com
Just trying my hand now on the Google Checker

2010/2/3 Daniel França <daniel...@gmail.com>

kayode odeyemi

unread,
Feb 4, 2010, 6:39:32 AM2/4/10
to google-...@googlegroups.com
I've started using Google Code. I did not see it earlier. 

About Gadget Checker, I see that you can't use it without GGE.

Thanks for your help anyways.

qMax

unread,
Feb 7, 2010, 9:08:45 PM2/7/10
to Google Wave API
I thought that all gadget stuff is requested directly from end-user
browser, isn't it?

On 31 янв, 17:09, "pamela (Google Employee)" <pamela...@gmail.com>
wrote:

pamela (Google Employee)

unread,
Feb 7, 2010, 9:21:54 PM2/7/10
to google-...@googlegroups.com
The XML goes through the gadget proxy. That is true for all gadget
containers. See slide 18 here:
http://www.slideshare.net/wuzziwug/opensocial-intro-presentation

Most gadget containers also provide methods of sending other content
through the proxy, for caching purposes.
All io.makeRequests call also go through proxy.

- pamela

qMax

unread,
Feb 7, 2010, 10:08:02 PM2/7/10
to Google Wave API
Thanks for slides.

But need more clarifications.
In context of wave - what is the wave server - gadget server, proxy or
container?
And is gagets.io.makeRequest available in wave?
What other opensocial features supported in wave?

On 8 фев, 08:21, "pamela (Google Employee)" <pamela...@gmail.com>
wrote:

pamela (Google Employee)

unread,
Feb 8, 2010, 6:19:54 PM2/8/10
to google-...@googlegroups.com
In context of wave:

Google Wave (wave.google.com) is the container server. When it embeds
gadgets, it uses another gadget server (gmodules.com).
That gadget server proxies the XML and converts it into HTML. It also
proxies any requests through gadgets.io.makeRequest() or
gadgets.io.getProxyUrl().

Wave supports the standard gadgets.* API methods
(http://code.google.com/apis/gadgets/docs/reference/).
For gadgets.io.makeRequest, we support requests for external data, but
not social data from the container.


- pamela

Reply all
Reply to author
Forward
0 new messages