[InterMine Dev] error Unable to construct query

Todd Harris todd at wormbase.org
Mon Nov 26 15:43:14 GMT 2012


Are you sending requests to www.wormbase.org?  That definitely will not work without some redirection at our proxy.

It looks like you need to configure the host (I don't know how or here that is done in Intermine).

th

--
Sent frm my mobile; pls excuse brevity

On Nov 26, 2012, at 8:27 AM, JD Wong <jdmswong at gmail.com> wrote:

> Thanks Alex,
> 
> Those commands returned an error:
> 
> console.log($SERVICE.root);
> http://www.wormbase.org/wormmine/service/
> undefined
> $SERVICE.fetchVersion(_.bind(console.log, console, "success"));
> Object
> 
> XMLHttpRequest cannot load http://www.wormbase.org/wormmine/service/version?token=K1I3sbJ3tdE4zdY17bDe&format=json. Origin http://wb-intermine:8080 is not allowed by Access-Control-Allow-Origin.
> Object {readyState: 0, responseText: "", status: 0, statusText: "error"}
> abort: function (statusText){statusText=statusText||"abort";if(transport){transport.abort(statusText);}done(0,statusText);return this;}
> 
> 
> 
> always: function (){return deferred.done.apply(deferred,arguments).fail.apply(deferred,arguments);}
> 
> 
> 
> complete: function (){if(list){var length=list.length;add(arguments);if(firing){firingLength=list.length;}else{if(memory&&memory!==true){firingStart=length;fire(memory[0],memory[1]);}}}return this;}
> 
> 
> 
> done: function (){if(list){var length=list.length;add(arguments);if(firing){firingLength=list.length;}else{if(memory&&memory!==true){firingStart=length;fire(memory[0],memory[1]);}}}return this;}
> 
> 
> 
> error: function (){if(list){var length=list.length;add(arguments);if(firing){firingLength=list.length;}else{if(memory&&memory!==true){firingStart=length;fire(memory[0],memory[1]);}}}return this;}
> 
> 
> 
> fail: function (){if(list){var length=list.length;add(arguments);if(firing){firingLength=list.length;}else{if(memory&&memory!==true){firingStart=length;fire(memory[0],memory[1]);}}}return this;}
> 
> 
> 
> getAllResponseHeaders: function (){return state===2?responseHeadersString:null;}
> 
> 
> 
> getResponseHeader: function (key){var match;if(state===2){if(!responseHeaders){responseHeaders={};while((match=rheaders.exec(responseHeadersString))){responseHeaders[match[1].toLowerCase()]=match[2];}}match=responseHeaders[key.toLowerCase()];}return match===undefined?null:match;}
> 
> 
> 
> isRejected: function (){return !!memory;}
> 
> 
> 
> isResolved: function (){return !!memory;}
> 
> 
> 
> overrideMimeType: function (type){if(!state){s.mimeType=type;}return this;}
> 
> 
> 
> pipe: function (fnDone,fnFail,fnProgress){return jQuery.Deferred(function(newDefer){jQuery.each({done:[fnDone,"resolve"],fail:[fnFail,"reject"],progress:[fnProgress,"notify"]},function(handler,data){var fn=data[0],action=data[1],returned;if(jQuery.isFunction(fn)){deferred[handler](function(){returned=fn.apply(this,arguments);if(returned&&jQuery.isFunction(returned.promise)){returned.promise().then(newDefer.resolve,newDefer.reject,newDefer.notify);}else{newDefer[action+"With"](this===deferred?newDefer:this,[returned]);}});}else{deferred[handler](newDefer[action]);}});}).promise();}
> 
> 
> 
> progress: function (){if(list){var length=list.length;add(arguments);if(firing){firingLength=list.length;}else{if(memory&&memory!==true){firingStart=length;fire(memory[0],memory[1]);}}}return this;}
> 
> 
> 
> promise: function (obj){if(obj==null){obj=promise;}else{for(var key in promise){obj[key]=promise[key];}}return obj;}
> 
> 
> 
> readyState: 0
> 
> 
> 
> responseText: ""
> 
> 
> 
> setRequestHeader: function (name,value){if(!state){var lname=name.toLowerCase();name=requestHeadersNames[lname]=requestHeadersNames[lname]||name;requestHeaders[name]=value;}return this;}
> 
> 
> 
> state: function (){return state;}
> 
> 
> 
> status: 0
> 
> statusCode: function (map){if(map){var tmp;if(state<2){for(tmp in map){statusCode[tmp]=[statusCode[tmp],map[tmp]];}}else{tmp=map[jqXHR.status];jqXHR.then(tmp,tmp);}}return this;}
> 
> 
> 
> statusText: "error"
> 
> 
> 
> success: function (){if(list){var length=list.length;add(arguments);if(firing){firingLength=list.length;}else{if(memory&&memory!==true){firingStart=length;fire(memory[0],memory[1]);}}}return this;}
> 
> 
> 
> then: function (doneCallbacks,failCallbacks,progressCallbacks){deferred.done(doneCallbacks).fail(failCallbacks).progress(progressCallbacks);return this;}
> 
> 
> 
> __proto__: Object
> 
> 
> 
>  imjs.js:1164
> error 
> 
> 
> On Fri, Nov 23, 2012 at 6:04 PM, Alex Kalderimis <alex at intermine.org> wrote:
>> Hey there JD,
>> 
>> Sorry you are experiencing problems. It would help if you could run the following code in your browser console: 
>> 
>> console.log($SERVICE.root);
>> $SERVICE.fetchVersion(_.bind(console.log, console, "success"));
>> 
>> This will check that the underlying library is working correctly. It'd be useful to see the output. 
>> 
>> You can open the console by typing ctl-shift-j in chrome or right-clicking and choosing "inspect element" in any webkit browser.
>> 
>> All best,
>> 
>> Alex 
>> 
>> 
>> JD Wong <jdmswong at gmail.com> wrote:
>>> 
>>> Hi everyone,
>>> 
>>> When I try to run queries on my 1.1 instance it tells me it can't construct my query.  All my mine contains is a single gene record added by a custom file converter.  Nothing gets added to tomcat or webapp/intermine.log when this happens, postgres shows my record is there, and I'm on the most recent version of master.
>>> 
>>> Has anyone seen this before, or am I missing something really obvious?
>>> 
>>> Thanks,
>>> -JD
>>> 
>>> dev mailing list
>>> dev at intermine.org
>>> 
>>> 
>>> 
>>> http://mail.intermine.org/cgi-bin/mailman/listinfo/dev
>> 
>> -- 
>> Sent from my Android phone with K-9 Mail. Please excuse my brevity.
> 
> _______________________________________________
> dev mailing list
> dev at intermine.org
> http://mail.intermine.org/cgi-bin/mailman/listinfo/dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.intermine.org/pipermail/dev/attachments/20121126/10f43398/attachment-0001.html>


More information about the dev mailing list