airavata-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Suresh Marru <sma...@apache.org>
Subject Re: python client - gw111
Date Thu, 06 Aug 2015 22:58:29 GMT
Hi Doug,


TApplicationException says that the exception is caught at client side (the
python code), so you should add some debug statements and see if the
gatewayId is passed correctly.

Lets chat on hip chat.

Suresh

On Thu, Aug 6, 2015 at 6:52 PM Douglas Chau <dchau3@binghamton.edu> wrote:

> Hey Suresh,
>
> I also tried reading it directly from the configuration once before to
> make sure, but the issue still persisted.
>
> Doug
> On Aug 6, 2015 6:44 PM, "Suresh Marru" <smarru.apache@gmail.com> wrote:
>
>> Hi Doug,
>>
>> As you can see from the exception the gateway id in your python code is
>> null. May be you are not reading it from config file. Try adding something
>> like:
>>
>> self.gatewayId = self.airavataConfig.get('GatewayProperties',
>> 'gateway_id')
>>
>> Suresh
>>
>> On Aug 6, 2015, at 5:56 PM, Douglas Chau <dchau3@binghamton.edu> wrote:
>>
>> Hey Devs,
>>
>> I was working on a small python client to submit jobs to airavata and I
>> believe I am having issues with passing in the correct gateway Id (i.g.
>> making a call to getAllComputeResourceNames(1: required AuthzToken, 2:
>> required gatewayId))
>>
>> Here is a gist of my code:
>> https://gist.github.com/dogless/090c0d5ddb747089476a
>>
>> I pass in “default” as the gatewayId on line 91, and I receive the error:
>> thrift.Thrift.TApplicationException: Required field 'gatewayId' was not
>> present! Struct: getAllApplicationInterfaceNames_args(gatewayId:null)
>>
>> My airavata client properties are set to:
>> # SciGaP Development Server
>> host=gw111.iu.xsede.org
>> port=9930
>> # Gateway Specific Properties
>> [GatewayProperties]
>> gateway_id=default
>>
>> Perhaps I’m missing something here, but has anyone encountered this issue
>> before?
>>
>> Thanks
>> Doug
>>
>>
>>

Mime
View raw message