Ning Developer Docs

preloadUserData and preloadedViewerData ERROR "Failed query. More than one matching result"

I have the "Hellow World" OpenSocial Gadget running in my network. It was working fine as of yesterday afternoon. I noticed this in the Hello World discussion thread (https://developer.ning.com/forum/topic/show?id=1185512%3ATopic%3A4661):

"we're fixing both the getData() and this other bug in a release later today, thanks for pointing them out!"

I'm not sure if this is related but when viewing my error in FireBug I can see that the update has in fact been pushed out because the error in the opensocial.registerOnloadHandler has been fixed. So, did this update cause a new bug? Any guidance would be greatly appreciated. Here is my output from FireBug:

Failed query. More than one matching result XN_Query: subject [Content]
returnIds []
begin [0]
end []
alwaysReturnTotalCount []
orders [
published : desc : string
]
filters [
owner.relativeUrl : = : 'myNetworkName' : string
AND
type : = : 'GadgetAppData' : string
AND
title : = : 'myTitle' : string
]

; var preloadedViewerData =

Uh-oh!

Failed query. More than one matching result XN_Query: subject [Content]
returnIds []
begin [0]
end []
alwaysReturnTotalCount []
orders [
published : desc : string
]
filters [
owner.relativeUrl : = : 'myRelativeUrl' : string
AND
type : = : 'GadgetAppData' : string
AND
title : = : 'myTitle' : string
]

; var hashAppName = 'myAppName';

function _IG_RegisterOnloadHandler(fun) {
onloadHandler = fun;
}

opensocial.registerOnloadHandler = function(fun) {
onloadHandler = fun;
};

Views: 2

Replies to This Discussion

A follow up to this error. I have logged in as a few other Test users I have in my network that ARE NOT admins or the network creator and they do not have this problem when my app shows up in their profile page. This error does still occur on the profile page of the network creator (me) and on the Main page??
Hi,

This is an error that occurs only rarely, we are trying to track it down. What happens is that there's invalid data generated if a gadget is switched multiple times in the space of several seconds. What network are you trying it on? We can fix the invalid data for you and you should expect a patch fairly soon that will solve this issue for good.

d
Awesome, that is much appreciated if you can get it solved for me. The network I'm experiencing it on is:

addada.ning.com

Again, much appreciated. Thanks.
This should be fixed now -- please let us know if the problem recurs. Thanks!

d

RSS

© 2026   Created by Ning Developer Admin.   Powered by

Badges  |  Report an Issue  |  Terms of Service