javascriptgoogle-chrome-extensionfetch-apimturk

Chrome MTurk Extension Javascript Fetch Response.status=200 for accept_project_task_url but HIT is not Queued


I have an extension that sends accept_project_task_url, via fetch API, in which the response.status=200. That is supposed to mean success but that hit is not queued. Why is 200 being returned when the accept hit fails? Is there something else I need to do to get the HIT queued? TIA.

What may or may not mean anything, in that case the response.text() is HTML rather than json.


Solution

  • For someone else that may run into this problem, it turns out that when a HIT is no longer available the return status may still be 200. However, in that case it returns an HTML page of MTurk HITs with the banner that says HITs of this type are no longer available. It is a bad situation but it is what it is.