Google Fit API - keep getting API error

Screenshot below, I keep getting “API Connector error: the Oauth2 API Google-Fit-Connect is not configured properly - Received error from ap”

What can I do? In the “User profile endpoint”, I also tried https://www.googleapis.com/oauth2/v2/userinfo to no avail

I think you need to keep userinfo, be sure to have the correct scope listed (you will need one for userinfo too).

It worked! Thank you a ton :slight_smile:

1 Like

Hi Ifgm!
I try to use Google fit as well and keep getting the error 401: Request had invalid authentication credentials
The OAuth credentials work for google log-in on bubble, and also when I run the test on google’s test playground. Yet, when in Bubble I can’t make it work.
I suspect it’s a URI issue (need to give the correct URI on google’s console) or that I need to publish the app on google’s API console, but honestly I have no clue.

Please let me know what you did to launch the API and what URI / app mode you used.
Thanks, Omer

This is what my URI setup looks like on https://console.cloud.google.com/apis/credentials/ where I set up a new OAUTH client. I think I followed a guide I found on Google Fit Rest API documentation. Picture below:

Not sure if it helps

Hi! Thank you it, actually helped but not working yet.
Appreciate your help, please let me know if what I do here makes sense:

To be clear, I have set up the OAuth similarly on the Google API console (with my app’s URI’s), and it works well with the Google signup. I also enabled the API & services on the the Google Console, as well added the scopes on the Bubble API connector.

Now when I run the Connector API for Google Fit through the workflow I manage to get the user to approve my app to connect with their google fit - BUT after the user approves the connection I get an error from Bubble that the OAUTH credentials are not working.

I try to find where I’m wrong:

  1. the call is -
    GET https://www.googleapis.com/fitness/v1/users/[userid]/dataSources/[dataSourceId]
    userid = me (for test user)
    Did you use something else here? How did you enter the userid?

  2. Do you run the call through a workflow, what is it include?

Sorry for the many questions, it’s just driving me CRAZY :slight_smile:
thanks!