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":"default","ids":["http://www.google.com/ig/modules/horoscope.xml"],"fields":["iframeUrl","modulePrefs.*","needsTokenRefresh","userPrefs.*","views.preferredHeight","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/horoscope.xml":{"userPrefs":{"day":{"dataType":"HIDDEN","orderedEnumValues":[],"name":"day","required":false,"displayName":"day","defaultValue":""},"month":{"dataType":"HIDDEN","orderedEnumValues":[],"name":"month","required":false,"displayName":"month","defaultValue":""},"selectedTab":{"dataType":"HIDDEN","orderedEnumValues":[],"name":"selectedTab","required":false,"displayName":"selectedTab","defaultValue":"0"},"uid":{"dataType":"HIDDEN","orderedEnumValues":[],"name":"uid","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,"quirks":true,"preferredWidth":0},"default":{"preferredHeight":0,"quirks":true,"preferredWidth":0},"preview":{"preferredHeight":0,"quirks":true,"preferredWidth":0},"canvas":{"preferredHeight":0,"quirks":true,"preferredWidth":0}},"modulePrefs":{"screenshot":"http://www.gstatic.com/ig/modules/horoscope/horoscope.cache.png","authorEmail":"[email protected]","width":0,"authorLink":"","links":{},"scaling":false,"author":"csindia-gadgets","directoryTitle":"Daily
Horoscopes","title":"Today's
Horoscope","height":200,"thumbnail":"http://www.gstatic.com/ig/modules/horoscope/horoscope-thm.cache.png","titleUrl":"http://www.dailyhoroscope.com/","scrolling":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","params":{},"required":true},"settitle":{"name":"settitle","params":{},"required":true},"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&container=default&view=%25view%25&lang=%25lang%25&country=%25country%25&debug=%25debug%25&nocache=%25nocache%25&sanitize=%25sanitize%25&v=81c0125ea88602827ebe7788ff5921e1#up_day=%25up_day%25&up_month=%25up_month%25&up_selectedTab=%25up_selectedTab%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
>
>