[Iplant-api-dev] /apps-v1/job/
Darren Boss
dboss at email.arizona.edu
Wed Jul 10 17:54:17 MST 2013
As a follow up to my emails to Matthew Vaughn which he just forwarded
to this dev list, I'm doing this in Python and am running into some
issues with the standard Python libraries. The first problem I
encountered is the standard behavior with urllib2 is to always send an
unauthenticated request first which won't work with the API because
for some urls an unauthenticated request means something different
than an authenticated request. I got around that by manually setting
http headers. Now I'm trying to submit a job but I kept getting HTTP
400: Bad request errors when trying to set the content type to
multipart. I saw a note on the wiki about sending a request to /job-v1
with content-type application/json but got a 404. I also tried
/apps-v1/job-v1 but I get a 401: Unauthorized error and I'm not sure
if it a problem with my code, the url or if my userid isn't allowed to
use this endpoint.
On Wed, Jul 10, 2013 at 8:05 PM, Matthew Vaughn <vaughn at tacc.utexas.edu> wrote:
> I just tried /apps-v1/job-v1 but I get a 401 Unauthorized. This is the
> first time I'm adding more than just the one http header since I have
> to both add the authorization and and content type so it could be my
> code that's causing this issue.
>
> On Wed, Jul 10, 2013 at 7:35 PM, Darren Boss <darren.boss at arizona.edu> wrote:
>> In the doc at https://pods.iplantcollaborative.org/wiki/display/docs/FoundationAPI.JOB.Basic.1.0
>> there is mention of using the /job-v1 endpoint together with
>> Content-type application/json. When I post to /job-v1 I get a 404. Is
>> this implemented? I'm not have any luck using the Python urllib2
>> library together with multipart forms.
>>
>> On Wed, Jul 10, 2013 at 12:10 PM, Darren Boss <darren.boss at arizona.edu> wrote:
>>> Is the get not implemented in v1 for returning a list of historical
>>> jobs for a user as indicated in the docs?
More information about the Iplant-api-dev
mailing list