You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! I was very happy for found it yor librarie but with a quick example, i've been receiving the same error message:
Error: Object for request is wrong. Please confirm formData again. at FetchApp.Fetch(Code:66:17) at fetch(Code:17:27)
The code I use is the one you provide in README, and I don't know what I am missing:
functionmain(){varfolder=DriveApp.getFolderById('')varfile=folder.getFilesByName('Salvoconducto Okima.pdf').next()varid=file.getId();varfileBlob=DriveApp.getFileById(id).getBlob();varmetadata={name: "OCR-PDF-"+(newDate()).getYear(),mimeType: MimeType.GOOGLE_DOCS};varform=FetchApp.createFormData();form.append("metadata",Utilities.newBlob(JSON.stringify(metadata),"application/json"));form.append("file",fileBlob);varurl="https://www.googleapis.com/upload/drive/v3/files?uploadType=multipart";varparams={method: "POST",headers: {Authorization: "Bearer "+ScriptApp.getOAuthToken()},body: form// muteHttpExceptions: true};varres=FetchApp.fetch(url,params);console.log(res);// DriveApp.createFile(blob) // This comment line is used for automatically detecting scope for running this sample script.}
I tried with the code of closed issue but still give me the same error :(
I hope you can help me!
(Sorry for my english)
The text was updated successfully, but these errors were encountered:
Thank you for your comment. I could confirm about the error. It was found that the reason of this error is due to that V8 runtime is enabled. So I removed the error. In the current stage, the version is v1.0.1. By this, this library can be used with both enabling and disabling V8. Could you please confirm it?
Hi! I was very happy for found it yor librarie but with a quick example, i've been receiving the same error message:
Error: Object for request is wrong. Please confirm formData again. at FetchApp.Fetch(Code:66:17) at fetch(Code:17:27)
The code I use is the one you provide in README, and I don't know what I am missing:
I tried with the code of closed issue but still give me the same error :(
I hope you can help me!
(Sorry for my english)
The text was updated successfully, but these errors were encountered: