[Midas] midas.upload.generatetoken error

Michael Grauer michael.grauer at kitware.com
Wed Jul 11 12:13:30 EDT 2012


Oh, that is disappointing.  What version of Midas are you running against?

Would you have access to the Apache error logs?  If so, you could make that
same request again, and see if anything gets reported in the Apache logs.



On Wed, Jul 11, 2012 at 12:04 PM, <mona at sdsc.edu> wrote:

>
> Hi Michael:
>
> Nothing showed up in the logs...
>
>
> > Hi Mona,
> >
> > Can you look in the logs of the Midas server after you make this call?
> >  Does that tell you anything?
> >
> > Thanks,
> > Mike
> >
> > On Tue, Jul 10, 2012 at 9:09 PM, Mona Wong <mona at sdsc.edu> wrote:
> >
> >>
> >> I'm trying to make the following web api call:
> >>
> >> https://
> >>
> <our_midas_server>/api/json?method=midas.upload.generatetoken&useSession&itemid=675&filename=rkd2_merged_phase001.nii.axml
> >>
> >> and I got back:
> >>
> >> {"stat":"fail","message":"Error param.","code":0}
> >>
> >> I think I'm making the call right according to the doc:
> >>
> >>    - midas.upload.generatetoken ?
> >>    Generate a unique upload token
> >>    *Parameters*
> >>       - *token* - Authentication token
> >>    - *itemid* - The id of the parent item to upload into
> >>    - *filename* - The filename of the bitstream you will upload
> >>    - *checksum* - (Optional) The md5 checksum of the file to be uploaded
> >>    *Return* - An upload token that can be used to upload a file. If
> >>    checksum is passed and the token returned is blank, the server
> >> already has
> >>    this file and there is no need to upload.
> >>
> >>  What am I doing wrong?
> >>
> >> Mona
> >>
>
>
> _______________________________________________
> Midas mailing list
> Midas at public.kitware.com
> http://public.kitware.com/cgi-bin/mailman/listinfo/midas
>



-- 
Thanks,
Michael Grauer
R & D Engineer
Kitware, Inc.
919 969 6990 x322
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/midas/attachments/20120711/90dee788/attachment.html>


More information about the Midas mailing list