I'm using the "drive.files" scope in my add-on. That scope only allows access to files and folders that either the add-on has created, or the user selected with the Google Picker.
My add-on was previously able to access a Google Drive folder that the user had picked with the Google Picker.
But that's not working anymore.
My code hasn't changed, and there are no errors in the browser's developer console log when using the picker.
The picker is able to pick a folder and get the folder ID.
In the past, my add-on could save a PDF file to a folder that the user had chosen with the picker.
If the add-on creates a new folder, then the add-on can access that folder.
For some reason the Google picker must not be working correctly, and not communicating with the Drive API.
I've tried creating a new API Developer Key, but that didn't fix the problem.
The error I get is:
API call to drive.files.get failed with error: File not found: Folder ID
If if use the exact same line of code to save a PDF file to a folder that the add-on created, then it works.