script-lab icon indicating copy to clipboard operation
script-lab copied to clipboard

Script lab - Invariant Violation: NativeBlobModule is available.

Open suresh-anumolu opened this issue 4 years ago • 0 comments

Hi Script-Lab Team,

It may not be an issue but trying to see how to resolve the issue i am creating a function to submit file to REST API, and log shows the following invariant violation: NativeBlobModule is available' any idea how can i test this script lab with the NativeBlobModule.

I really appreciate any help/suggestions on this.

const input = [ { "name" :"test"}]; /**

  • Gets the sample test json
  • @return string json. */ async function submitBatchData() { var data = new FormData(); var blob = await new Blob([inputJson], { type: "application/json" }); // var file = new File([blob], "ExcelAPI.json", { type: "application/json", lastModified: Date.now() }); //data.append("file", file); return input; }

suresh-anumolu avatar Feb 04 '21 12:02 suresh-anumolu