Stuck on Loading next hit - Failed to execute 'postMessage' on 'DOMWindow'

0

I use externalQuestion post my HITs. My webapp is hosted on s3 and served with a domain name and https using route 53, acm and cloudfront: https://movietitlecamp.com/?taskId=3

I tested the HIT with sandbox and everything works correctly. I can submit the hit successfully, load the next hit and retrieve the answer on sandbox. However, when I push it on production, workers cannot submit hit. After they answer, they got stuck in a page said "Loading next HIT...". I got this err:

console.log("The following error (Failed to execute 'postMessage' on 'DOMWindow') is expected, please do not report");
[
'https://worker.mturk.com',
].forEach(function(domain) {
parent.postMessage('{"assignmentId":"35GMH2SV3HA8EOV182JRDPV5F1QOEL","answer":{"taskId":"3","media_selection":"0","transcription":"Kingsman"}}', domain);
});

I'm sure my submit URL is correct. I appended the answer to the submit url as followed: https://www.mturk.com/mturk/externalSubmit/?assignmentId=35GMH2SV3HA8EOV182JRDPV5F1QOEL&taskId=3&media_selection=0&transcription=Kingsman

HITTypeId: 3EP32X463BXG5DPRWRT1ISC729P1HC
HITId: 3M7OI89LV0G1507PMCM0HHEM2CTC6H

Please help. I read most of the forum discussions but I could not figure out the problem!

Edited by: trinity19 on Jul 16, 2019 10:31 AM

posta 5 anni fa284 visualizzazioni
2 Risposte
0

Hello,

Thanks for your patience while we looked into this. I have some information from our engineering team that may help you resolve this issue.

Your webapp seems to be down at the moment, so we were unable to look at the exact code that's causing the problem.

However, you seem to be submitting to /externalSubmit with query parameters (parameters appended to the URL with a question mark).

We only support form submissions, not submissions with query parameters.

If you're using a <form/>, you'll need to have <input/> elements (or a similar submittable element) for all your questions.

I hope that helps! If you have any other questions or concerns please don't hesitate to contact us at mturk-requester-support@amazon.com.

-Adam J

AWS
con risposta 5 anni fa
0

Thank you very much. I was able to solve the problem

con risposta 5 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande