Hey Bubblers,
I am pretty sure that I have hit a bug in Bubble but am hoping that someone has a quick and easy mitigating fix/workaround. I successfully initialized API PATCH CALL for Google Drive using the API Connector (see below). The call gets a 200 “No Error” response from Google but does not do the patch. The only explanation I can come up with is that it is timing out because of transmission issues or that Bubble is including clutter in its json that is stuffing things up. (the no error response is very weird though!!)
I set up an API call to Google Drive using the API Connector, which gets the right response back from Google. I got exactly the same response when tested it using the Try It app that Google provides on their API documentation site before setting up API Connector. The problem is that the Patch Call that is supposed to move one folder into another folder. Executing from Google Try It moves the folder, meanwhile the executing the initialized call in Bubble does NOT. (and it doesn’t do the move on the initialization either).
I made the same call using Postman (see below), and it gave the same 200 no errors response but Postman does complete the folder move.
I thought it might be something to do with my environment but I have tried this on three different browsers, two completely different machines running two different operating systems and it seems to make no difference.
Google Drive is an absolutely abdominal API and I suspect that their decision to make it impossible for a folder to have more than one parent, is partly to blame here but Postman gets this call to work so it seems almost certain that if Bubble fixes something on their side it should work.
I am no master at reading the Browser Console log files but the impression I have is that Bubble is hitting obstacles that Postman overcomes.
Anyway, if anyone has any idea of what could be the cause and even better, what I can do to address this problem please let me know.
Cheers,
Bubble API Call Move Folder in Google - Patch https://www.googleapis.com/drive/v3/files/[fileId]
Ooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
Response to Patch call from Bubble.
{
“kind”: “drive#file”,
“id”: “1ewxaaIVNJ-dzT_2AQ1NRLmXPYa9p-aTB”,
“name”: “Kevin Hunt”,
“mimeType”: “application/vnd.google-apps.folder”
}
Note - I get the same response even after the folder has been moved by a successful call from Postman!
oooooooooooooooooooooooooooooooooooooooooooooooooooooo
Google API response to same call in Postman
{ “kind”: “drive#file”, “id”: “1ewxaaIVNJ-dzT_2AQ1NRLmXPYa9p-aTB”, “name”: “Kevin Hunt”, “mimeType”: “application/vnd.google-apps.folder” }
ooooooooooooooooooooooooooooooooooooooooooooooooooooooo