Advanced " /> Advanced " /> Advanced "/>

Why does "ReferenceError: Drive is not defined" keep occuring frequently?

1.3k views Asked by At

const file = Drive.Files.insert({ title: 'Temp.pdf' }, blob, { ocr: true, ocrLanguage: "en" });

I have enabled Drive API(v2) from Resources->Advanced Google Services and also enabled Drive API in Google Cloud Platform API Dashboard for that particular project.

But this doesn't look like a one time activity. The error ReferenceError: Drive is not defined keeps coming every now and then. When I enable Drive API from Resources->Advanced Google Services, there is no error for some time and it comes again after some time. The setting in Resources->Advanced Google Services is not persisted.

Why is it not persisted? Am I missing something here?

1

There are 1 answers

0
Ekalavya On

Figured out that reference error was occurring only after I perform a clasp push. Resolved.