Error when uploading a form using the API

Hey,

I am using a python script to upload an xform. The script is a shown
here[1]. Sadly when I run the script against the Birds.xml sample from ODK
i get the following error[2]. Any pointers on what could be wrong?

[1].https://gist.github.com/jmwenda/f22720f4f813c4ca2d9f
[2].https://gist.github.com/jmwenda/03747faa2cadddc19ff9

··· -- Regards,

Jude Mwenda
Skype id: jmwenda

I'm not familiar with python.

Did you specify a multipart/form-data style post?

Also, the content type for the file should be UTF-8

It looks like the server is not finding the 'form_def_file' field in the
submission.

··· On Mon, Jul 21, 2014 at 10:11 AM, jude mwenda wrote:

Hey,

I am using a python script to upload an xform. The script is a shown
here[1]. Sadly when I run the script against the Birds.xml sample from ODK
i get the following error[2]. Any pointers on what could be wrong?

[1].https://gist.github.com/jmwenda/f22720f4f813c4ca2d9f
[2].https://gist.github.com/jmwenda/03747faa2cadddc19ff9

--
Regards,

Jude Mwenda
Skype id: jmwenda

--
You received this message because you are subscribed to the Google Groups
"ODK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com

Thanks. It seems I was having multiple form_def_file definitions. Do you
mind pointing me to the manual where one can authenticate such a request so
that the the form is registered under a specific account on aggregate? Does
one have to pass the authentication parameters to the header's while
performing a post.

thanks

··· On Monday, July 21, 2014 1:22:41 PM UTC-4, Mitch wrote: > > I'm not familiar with python. > > Did you specify a multipart/form-data style post? > > Also, the content type for the file should be UTF-8 > > It looks like the server is not finding the 'form_def_file' field in the > submission. > > > > On Mon, Jul 21, 2014 at 10:11 AM, jude mwenda <judem...@gmail.com > wrote: > >> Hey, >> >> I am using a python script to upload an xform. The script is a shown >> here[1]. Sadly when I run the script against the Birds.xml sample from ODK >> i get the following error[2]. Any pointers on what could be wrong? >> >> [1].https://gist.github.com/jmwenda/f22720f4f813c4ca2d9f >> [2].https://gist.github.com/jmwenda/03747faa2cadddc19ff9 >> >> >> -- >> Regards, >> >> Jude Mwenda >> Skype id: jmwenda >> >> -- >> You received this message because you are subscribed to the Google Groups >> "ODK Developers" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to opendatakit-developers+unsubscribe@googlegroups.com >> . >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Mitch Sundt > Software Engineer > University of Washington > mitche...@gmail.com >

ODK Aggregate is set up and managed by individual teams, unlike formHub.

So you would set up your own ODK Aggregate instance and grant access to it
for ODK Aggregate usernames -- Google email account access is currently
broken.

The authentication mechanism for these usernames is DigestAuth
https://www.ietf.org/rfc/rfc2617.txt

And if you grant the anonymous user the ability to upload forms, then you
don't need any authentication.

··· On Mon, Jul 21, 2014 at 10:56 AM, jude wrote:

Thanks. It seems I was having multiple form_def_file definitions. Do you
mind pointing me to the manual where one can authenticate such a request so
that the the form is registered under a specific account on aggregate? Does
one have to pass the authentication parameters to the header's while
performing a post.

thanks

On Monday, July 21, 2014 1:22:41 PM UTC-4, Mitch wrote:

I'm not familiar with python.

Did you specify a multipart/form-data style post?

Also, the content type for the file should be UTF-8

It looks like the server is not finding the 'form_def_file' field in the
submission.

On Mon, Jul 21, 2014 at 10:11 AM, jude mwenda judem...@gmail.com wrote:

Hey,

I am using a python script to upload an xform. The script is a shown
here[1]. Sadly when I run the script against the Birds.xml sample from ODK
i get the following error[2]. Any pointers on what could be wrong?

[1].https://gist.github.com/jmwenda/f22720f4f813c4ca2d9f
[2].https://gist.github.com/jmwenda/03747faa2cadddc19ff9

--
Regards,

Jude Mwenda
Skype id: jmwenda

--
You received this message because you are subscribed to the Google
Groups "ODK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to opendatakit-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
Mitch Sundt
Software Engineer
University of Washington
mitche...@gmail.com

--
You received this message because you are subscribed to the Google Groups
"ODK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com