What's weird is it seem to be trying to use /rpc and not ${CONTEXT_ROOT}/rpc
for the metadata request.  We run our shindig as non-root.

We're gonna try an older snapshot and see if it works.

doug


On 9/19/11 8:26 PM, "Henry Saputra" <[email protected]> wrote:

> Hi Doug,
> 
> Just pull latest from trunk and I did curl for gadget metadata and got
> this response:
> 
> curl -H "Content-Type: application/json" --data-binary '
> [{"method":"gadgets.metadata","id":"gadgets.metadata","params":{"container":"d
> efault","ids":["http://www.google.com/ig/modules/horoscope.xml"],"fields":["if
> rameUrl","modulePrefs.*","needsTokenRefresh","userPrefs.*","views.preferredHei
> ght","views.preferredWidth","expireTimeMs","responseTimeMs"],"language":"en","
> country":"US","userId":"@viewer","groupId":"@self"}}]'
> http://localhost:8080/rpc
> 
> 
> [{"id":"gadgets.metadata","result":{"http://www.google.com/ig/modules/horoscop
> e.xml":{"userPrefs":{"day":{"dataType":"HIDDEN","orderedEnumValues":[],"name":
> "day","required":false,"displayName":"day","defaultValue":""},"month":{"dataTy
> pe":"HIDDEN","orderedEnumValues":[],"name":"month","required":false,"displayNa
> me":"month","defaultValue":""},"selectedTab":{"dataType":"HIDDEN","orderedEnum
> Values":[],"name":"selectedTab","required":false,"displayName":"selectedTab","
> defaultValue":"0"},"uid":{"dataType":"HIDDEN","orderedEnumValues":[],"name":"u
> id","required":false,"displayName":"uid","defaultValue":""},"selectedFriend":{
> "dataType":"HIDDEN","orderedEnumValues":[],"name":"selectedFriend","required":
> false,"displayName":"selectedFriend","defaultValue":"0"}},"needsTokenRefresh":
> false,"expireTimeMs":1316478556657,"views":{"home":{"preferredHeight":0,"quirk
> s":true,"preferredWidth":0},"default":{"preferredHeight":0,"quirks":true,"pref
> erredWidth":0},"preview":{"preferredHeight":0,"quirks":true,"preferredWidth":0
> },"canvas":{"preferredHeight":0,"quirks":true,"preferredWidth":0}},"modulePref
> s":{"screenshot":"http://www.gstatic.com/ig/modules/horoscope/horoscope.cache.
> png","authorEmail":"[email protected]
> ","width":0,"authorLink":"","links":{},"scaling":false,"author":"csindia-gadge
> ts","directoryTitle":"Daily
> Horoscopes","title":"Today's
> Horoscope","height":200,"thumbnail":"http://www.gstatic.com/ig/modules/horosco
> pe/horoscope-thm.cache.png","titleUrl":"http://www.dailyhoroscope.com/","scrol
> ling":false,"description":"Daily
> horoscopes and Astrosync courtesy of
> tarot.com","features":{"dynamic-height":{"name":"dynamic-height","params":{},"
> required":true},"views":{"name":"views","params":{},"required":true},"setprefs
> ":{"name":"setprefs","params":{},"required":true},"core":{"name":"core","param
> s":{},"required":true},"settitle":{"name":"settitle","params":{},"required":tr
> ue},"tabs":{"name":"tabs","params":{},"required":true}},"categories":["",""],"
> authorPhoto":""},"responseTimeMs":1316478256657,"iframeUrl":"//localhost:8080/
> gadgets/ifr?url=http%3A%2F%2Fwww.google.com%2Fig%2Fmodules%2Fhoroscope.xml&con
> tainer=default&view=%25view%25&lang=%25lang%25&country=%25country%25&debug=%25
> debug%25&nocache=%25nocache%25&sanitize=%25sanitize%25&v=81c0125ea88602827ebe7
> 788ff5921e1#up_day=%25up_day%25&up_month=%25up_month%25&up_selectedTab=%25up_s
> electedTab%25&up_uid=%25up_uid%25&up_selectedFriend=%25up_selectedFriend%25"}}
> }]
> 
> Looks ok to me.
> 
> - Henry
> 
> On Mon, Sep 19, 2011 at 4:55 PM, daviesd <[email protected]> wrote:
>> Is there anything that would have changed since last Thursday or so that
>> would be causing the metadata call to fail with a 400 error?
>> 
>> I grabbed the latest artifacts today and I¹m getting a 400 when making the
>> metadata request.
>> 
>> [{"method":"gadgets.metadata","id":"gadgets.metadata","params":{"container":
>> "default","ids":["http://www.google.com/ig/modules/horoscope.xml"],"fields":
>> ["iframeUrl","modulePrefs.*","needsTokenRefresh","userPrefs.*","views.prefer
>> redHeight","views.preferredWidth","expireTimeMs","responseTimeMs"],"language
>> ":"en","country":"US","userId":"@viewer","groupId":"@self"}}]
>> 
>> This was working late last week. ?It almost seems like it¹s getting garbage
>> back from the request.
>> 
>> Thanks,
>> Doug
>> 
>> 
> 


Reply via email to