Question: Issue accessing Library API
0
gravatar for murra668
3.5 years ago by
murra6680
United States
murra6680 wrote:

I am having issue accessing the Library API using:

./display.py key <galaxy base url>/api/libraries

I receive the following message:

Traceback (most recent call last):
  File "./display.py", line 8, in <module>
    display( *sys.argv[1:3] )
  File "./common.py", line 93, in display
    print '#%d: %s' % (n+1, i.pop( 'url' ) )
KeyError: 'url'

I have no issue retrieving data from other api calls, e.g. histories, workflows... Has anyone encountered this issue?

 

software error • 737 views
ADD COMMENTlink modified 3.5 years ago by Martin Čech ♦♦ 4.9k • written 3.5 years ago by murra6680
0
gravatar for Martin Čech
3.5 years ago by
Martin Čech ♦♦ 4.9k
United States
Martin Čech ♦♦ 4.9k wrote:

The Library API changed and it no longer provides the URL field in the response, that is why the scripts fails. 

If you comment out L93 in common.py (https://github.com/galaxyproject/galaxy/blob/dev/scripts/api/common.py#L93) it will work

 

edit: this PR should fix it: https://github.com/galaxyproject/galaxy/pull/352

ADD COMMENTlink modified 3.5 years ago • written 3.5 years ago by Martin Čech ♦♦ 4.9k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 174 users visited in the last hour