opensocial.requestCreateActivity returns "Error fetching data" in response

1 view
Skip to first unread message

Nemesh

unread,
Jul 3, 2008, 7:39:03 AM7/3/08
to Orkut Developer Forum
I am getting the follwing response when I try to run the following
code in sandbox:


createASampleActivity()

function postActivity(title, body) {
var params = {};
params[opensocial.Activity.Field.TITLE] = title;
if (body != null) {
params[opensocial.Activity.Field.BODY] = body;
}
var activity = opensocial.newActivity(params);
opensocial.requestCreateActivity(activity,
opensocial.CreateActivityPriority.HIGH,
postActivityCallback);
};

function postActivityCallback(data) {
if (true) console.log(data);
};

function createASampleActivity() {
var title = 'This is a test title';
var body = 'Check it';
postActivity(title, body);
}

Is something wrong with the orkut sandbox server. I tried the same
code earlier and it used to work. I am getting this response since
last 2 days. I also saw other applications on orkut throwing same
response.

Please help.

Nemesh

Nemesh

unread,
Jul 3, 2008, 7:40:03 AM7/3/08
to Orkut Developer Forum
Here is the response I get when I try to run the code:

<HTML>

<HEAD>

<TITLE>Error fetching data</TITLE>

</HEAD>

<BODY BGCOLOR="#FFFFFF" TEXT="#000000">

<H1>Error fetching data</H1>

<H2>Error 500</H2>

</BODY>

</HTML>


Nemesh

yoichiro

unread,
Jul 3, 2008, 10:02:09 AM7/3/08
to Orkut Developer Forum
Hi Nemesh,

I have known the same situation since yesterday, too.
But this error does not occurs in www.orkut.com.

I seem that there are some trouble in the code of Shindig on
sandbox.orkut.com...

Best regards,
Yoichiro

Nemesh

unread,
Jul 3, 2008, 3:09:09 PM7/3/08
to Orkut Developer Forum
Hi Yoichiro,

Thank you for your reply.

yes I also noticed the same thing. Lets wait and see.

Nemesh
> > > Nemesh- Hide quoted text -
>
> - Show quoted text -

Jason

unread,
Jul 14, 2008, 6:10:36 PM7/14/08
to Orkut Developer Forum
Hi Nemesh. I'm sorry for the late reply.

Are you still seeing this issue? The code snippet you provided runs
successfully for me with no error reported. As Yoichiro notes, this
was likely due to a temporary issue with the back-end that has since
been addressed, but please let me know if this is still a problem on
your end.

- Jason

yoichiro

unread,
Jul 14, 2008, 9:05:19 PM7/14/08
to Orkut Developer Forum
Hi Jason,

Thank you for your reply. I confirmed to be able to create an activity
at several hours ago. We can create it now.

Best regards,
Yoichiro
Reply all
Reply to author
Forward
0 new messages