Hello everyone, hope all are doing great!
My issue is about a persistent problem with a manually created Google OAuth 2.0 Workflow using Bubble’s API Connector, and I just can’t seem to solve it. I’ve researched similar issues from multiple sources, tried to get help from AI platforms, but I’m completely stuck at this point. I would greatly appreciate any support from anyone who has faced and resolved a similar issue.
First, I created a manual API in Bubble’s API Connector called ‘Google OAuth - Manual API’ that is set to ‘none’ or ‘self-handled’ so that it appears in workflows. I then defined API calls named ‘Google Access Token via Authorization Code’ and ‘Google Access Token via Refresh Code’ linked to it. At this stage, I also created another API call named ‘Google UserInfo’ to retrieve basic information about users. In Google Cloud Console, I carefully defined the credentials, including scopes, redirect URIs, and all other settings, and I believe there’s no issue originating from there.
I was able to manually initialize all of the above API calls, and I can say they work flawlessly. The problem arises when trying to create a workflow that uses these API calls. Initially, I use a button on the page (which I also defined as the redirect URI) to call an external URL, and I can see the Authorization Code
as a query string value in the URL returned from Google. In the workflow, I use the ‘Page Load’ event to first call ‘Google Access Token via Authorization Code’ and use ‘Get code from page URL’ to provide this code to the API. At this point, the workflow halts and doesn’t proceed to any subsequent steps.
If it were to proceed, as you can see in the visual provided, I would use the ‘login’ or ‘signup’ actions to register the user in the Bubble database and achieve Google login. With the acquired access token, I intend to access various tools like Sheets, Drive, Docs, Meeting, and Calendar throughout the application. Unfortunately, I’ve encountered significant errors and issues with the Google OAuth integration, which has prevented me from completing this setup.
I’ve tried many alternative methods: I tried the built-in Google OAuth plugins, but I couldn’t get the access token needed for other API uses, so they weren’t suitable. I also used intermediary platforms like Zapier, but its integration with Google tools has serious errors and issues, like mixing up rows and reading incorrect data even at a basic level.
Anyway, I’ve also shared the error message from Chrome and the step where the error occurs on the screen. I’d be really grateful if anyone could assist me.
Thanks all.