'API Connector did not return an ID for this user'

Hi All,

Apologies if this is an obvious fix, but I’m stuck with the Bubble API connector OAuth2 User-Agent flow.

I’m trying to allow users to pull in data from their Sleep Health wearable (Oura ring). I’ve got the calls working manually with a personal access token, but when I try to authenticate using the Bubble social login flow, I keep getting the same error message on setup:

API Connector Bubble Oauth2 Error

This message pops up after taking me to the Oura authentication page, with the correct scope checkboxes checked etc. and asking to grant access to my app.

From what I can see, it actually is returning a user id, along with the access token and refresh token (I’ve used these strings and they work when run manually or on Postman).

Not sure what I’ve done wrong in setting up the flow, but here’s my setup:

If anyone has run into this, or can help in any way, will be greatly appreciated!


1 Like

Hello. I have the same problem with Gumroad API.

Did you solve this?

1 Like


I’ve got the same problem with Google Drive API. Spend hours and just found solution! Check it out - hope it help to solve yours problem too, guys:

So this is the error message that I’ve got from Google Auth2 API:

The service apiconnector2-cmSgX0 did not return an ID for this user. The user cannot be logged in. Please check your settings or reach out to the plugin author. (raw data: {“_id”:"565dc3dfd34f8d7a7a1b4348

The problem was in Scope field. And the solution was to add “https://www.googleapis.com/auth/userinfo.profile” - scope with user data.

So this is the settings, that works in my case:

Scope: https://www.googleapis.com/auth/drive https://www.googleapis.com/auth/drive.file https://www.googleapis.com/auth/userinfo.profile
Login dialog redirect: Sign in - Google Accounts
Access token endpoint: https://accounts.google.com/o/oauth2/token
User profile endpoint: https://www.googleapis.com/oauth2/v1/userinfo?alt=json

Other settings see on screen:

1 Like

Worked. Thank you.

Has anybody had any luck with this connecting to Slack?