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

preguntada hace 5 años285 visualizaciones
2 Respuestas
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
respondido hace 5 años
0

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

respondido hace 5 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas