browser-samples icon indicating copy to clipboard operation
browser-samples copied to clipboard

Browser Quickstart causes error: The API Key and the authentication credential are from different projects

Open damms005 opened this issue 5 years ago • 5 comments

Expected Behavior

When the QuickStart example is followed to the last step, the outcome is suppose to be a listing of max 10 users.

Actual Behavior

An error occurred, with message: The API Key and the authentication credential are from different projects

JavaScript Console Output

N/A

Specifications

  • Browser: Chrome Version 87.0.4280.88 (Official Build) (64-bit)
  • OS: Linux x86_64 GNU/Linux (Ubuntu 20.04.1 LTS)

damms005 avatar Dec 15 '20 09:12 damms005

Removing the API key as reported for other error fixed this issue for me.

Weird because this official Quickstart sample code specified to generate the API key and include same in the code.

damms005 avatar Dec 15 '20 09:12 damms005

Also, if it may help, I just found that Enable the Directory API button and the Create API key both create new, separate projects, before doing their stuff

damms005 avatar Jan 10 '21 15:01 damms005

@damms005 Thanks! Funny bug from google

avevlad avatar Feb 23 '21 18:02 avevlad

Workaround Create API key,

0:37 sec

https://user-images.githubusercontent.com/2889662/108889791-cff4fb00-761d-11eb-8e26-f644931b7d0f.mp4

avevlad avatar Feb 23 '21 18:02 avevlad

I believe the problem is still there.

Exactly as mentioned.

siscia avatar Mar 14 '21 18:03 siscia