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

질문됨 5년 전284회 조회
2개 답변
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
답변함 5년 전
0

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

답변함 5년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인