We're Hiring!

connecting to a remote server in OMERO.web

General and open developer discussion about using OMERO APIs from C++, Java, Python, Matlab and more! Please new questions at https://forum.image.sc/tags/omero
Please note:
Historical discussions about OMERO. Please look for and ask new questions at https://forum.image.sc/tags/omero

If you are having trouble with custom code, please provide a link to a public repository, ideally GitHub.

connecting to a remote server in OMERO.web

Postby bhcho » Mon Aug 15, 2011 9:17 pm

hi again,

I'm trying to connect to another remote server from my OMERO.web function.

in my own function in views.py,
I was trying to connect to another remote server like
Code: Select all
def getSearchContentDBfromRemoteServer( request, **kwargs):
   ...
   client = omero.client(server,port)


and I got the following error

exception ::Ice::EndpointParseException
{
str = ssl -p 4064 -h <"omero.host" not set>
}

Request Method: POST
Request URL: http://omepslid.compbio.cs.cmu.edu/sear ... oteServer/
Exception Type: EndpointParseException
Exception Value:

exception ::Ice::EndpointParseException
{
str = ssl -p 4064 -h <"omero.host" not set>
}

Exception Location: /usr/lib64/python2.5/site-packages/Ice/Ice.py in initialize, line 340


Could any one tell me a correct way to do this?
What I eventually want to do is ....to connect to a remote server and get a session in order to download some attached files from there.

bk
bhcho
 
Posts: 236
Joined: Mon Apr 05, 2010 2:15 pm

Re: connecting to a remote server in OMERO.web

Postby jmoore » Tue Aug 16, 2011 6:14 am

Hi BK,

how are server and port being set? The error you are seeing is expected if server == None.

Cheers,
~Josh
User avatar
jmoore
Site Admin
 
Posts: 1591
Joined: Fri May 22, 2009 1:29 pm
Location: Germany

Re: connecting to a remote server in OMERO.web

Postby bhcho » Tue Aug 16, 2011 11:11 am

Oops!

That's my bad bad~. there was a typo. and it works.
Thanks Josh.
bhcho
 
Posts: 236
Joined: Mon Apr 05, 2010 2:15 pm


Return to Developer Discussion

Who is online

Users browsing this forum: Google [Bot] and 1 guest