script-lab
script-lab copied to clipboard
Script lab - Invariant Violation: NativeBlobModule is available.
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; }