John McDonnell
John McDonnell

Reputation: 1490

Mysterious externalSubmit failure on an externalQuestion in Mechanical Turk.I

I'm surprised to be even asking this question, but I'm trying to submit a HIT on an external question, and I just get this error: "There was a problem submitting your results for this HIT."

The funny thing is the form is copied over almost exactly from the php code here.

<form id="mturk_form" method="POST" action="https://www.mturk.com/mturk/externalSubmit">
    <input type="hidden" id="assignmentId" name="assignmentId" value="2V7395SW6NG1V6K6INAB5F1F1YHUG7">
    <input id="submitButton" type="submit" name="Submit" value="Complete HIT">
</form>

Am I missing something really obvious?

Even a pointer to the documentation would be nice, I can't find official documentation for externalSubmit anywhere.

Upvotes: 1

Views: 2602

Answers (2)

David Grandinetti
David Grandinetti

Reputation: 640

Check out the documentation on exernalForms

Without seeing the exact code you are using, it could be a few things...

1 - If you are testing things out and have the assignmentId hard coded into the form, it may have already been submitted, or you may be crossing between the sandbox and the production environment. I've managed to do both. :)

2 - If you have any other input elements with really long names or nested arrays (see here) mTurk may not handle it too well.

3 - Allegedly, some browsers don't like it when you name the submit button "submit", as noted here. I usually name my submit buttons "commit", and have not had this problem.

4 - You may have to also submit the hitId as a hidden field (the same way you submit the assignmentId). Although it is not mentioned in the official docs, it has mentioned in the forums.

Upvotes: 8

John McDonnell
John McDonnell

Reputation: 1490

For posterity, the problem here was that I was testing by trying to submit the form on behalf of a different worker. Amazon tracks workers via cookies to make sure that submissions come from the worker who accepted the HIT.

Upvotes: 1

Related Questions