Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google blocks the app #26

Open
CyberAP opened this issue Dec 23, 2019 · 22 comments
Open

Google blocks the app #26

CyberAP opened this issue Dec 23, 2019 · 22 comments

Comments

@CyberAP
Copy link

CyberAP commented Dec 23, 2019

For some reason the app is blocked by Google, I am getting this error when trying to connect the app to my Google account:

Logging with Google account is temporary blocked for this application
You can't log into the app using Google account because the app has not yet been verified

Or something like that, I have the warning in Russian, so it's not worded exactly like that.

@dmfrancisco
Copy link
Member

@CyberAP Thanks for opening this issue 👍

Google updated the user limit for apps that have not been approved. I submitted the app for approval yesterday but it may take some time…

In the meantime, maybe you can create your own Google App? I don't have time to try it out at the moment, but let me know if you have any issues (such as this).

@dmfrancisco
Copy link
Member

@CyberAP I tried creating a Google App and it seems to work fine. You need to add some metadata in the consent screen section, and then simply create an OAuth Client ID. You need to select "iOS" and you can put any string in the "Bundle ID" field (this is because there's no CLI option anymore, so iOS is the most similar).

image

Alternatively, I created this temporary app that you can use for now. Hope this helps:

BROWSERSLIST_GA_CLIENT_ID=64751005694-kdnlb8f0miegd0mqrckjhqcq42344l19.apps.googleusercontent.com npx browserslist-ga

@CyberAP
Copy link
Author

CyberAP commented Dec 23, 2019

@dmfrancisco, thanks, will try!

@pierremanceaux
Copy link

Any news from Google so far? :))

@dmfrancisco
Copy link
Member

@pierremanceaux Not yet… 😕

@carloscuesta
Copy link

Can't wait for Google to approve this 🙏

@pierremanceaux
Copy link

Np @dmfrancisco , thanks for the heads up! Looking forward too, amazing feature 👍

@melfa
Copy link

melfa commented Apr 2, 2020

As i see, app is working now.

@keithws
Copy link

keithws commented Apr 8, 2020

It's not working for me. I get the following error.

Sign in with Google temporarily disabled for this app
This app has not been verified yet by Google in order to use Google Sign In.

@mauriciabad
Copy link

Not working for me neither

@melfa
Copy link

melfa commented Apr 9, 2020

This is strange, but is works for me, both npm version 0.0.12 and github version run as npx github:browserslist/browserslist-ga

@dmfrancisco
Copy link
Member

I haven't heard from Google yet unfortunately… it has been like this since December:

image

And because of that, it quickly reaches the limit every month:

image

Maybe people that have already authorized the app successfully in the past won't get the error. For everyone else I'm afraid the only solution is to create your own app by following the steps above.

@CyberAP
Copy link
Author

CyberAP commented Apr 10, 2020

Maybe readme should now state that browserslist-ga requires for you to create a Google App (with provided instructions), instead of using a public App for that? And remove public App key completely in that case. That should fix the issue and provide a reliably working guide.

@dmfrancisco
Copy link
Member

Makes sense, I added a link to this 👍 Still no answer from Google. Best way for now is to create your own free google app.

@oboxodo
Copy link

oboxodo commented May 11, 2021

@dmfrancisco: Creating a custom google app works but... isn't there a way for us to just manually export the google analytics data to a file and have browserslist-ga parse the data from there offline as a workaround?

@dboulet
Copy link

dboulet commented May 11, 2021

@oboxodo: take a look at browserlist-ga-export. I’ve been using it as a workaround with good success.

@oboxodo
Copy link

oboxodo commented May 11, 2021

Thank you @dboulet! That's exactly what I was looking for.

@saltyandsmiling
Copy link

saltyandsmiling commented Oct 6, 2021

Can anyone elaborate or put a link here to where you "create a google app"? Those instructions are a little vague.

@johanadivare
Copy link

Using temp solution as noted here: #26 (comment)

I get the following response:

GaxiosError: Google Analytics API has not been used in project 64751005694 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/analytics.googleapis.com/overview?project=64751005694 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.
    at Gaxios.<anonymous> (/home/johan/.npm/_npx/64293/lib/node_modules/browserslist-ga/node_modules/gaxios/build/src/gaxios.js:73:27)
    at Generator.next (<anonymous>)
    at fulfilled (/home/johan/.npm/_npx/64293/lib/node_modules/browserslist-ga/node_modules/gaxios/build/src/gaxios.js:16:58)
    at processTicksAndRejections (internal/process/task_queues.js:95:5) {
  response: {
    config: {
      url: 'https://www.googleapis.com/analytics/v3/management/accounts',
      method: 'GET',
      paramsSerializer: [Function (anonymous)],
      headers: [Object],
      params: [Object: null prototype] {},
      validateStatus: [Function (anonymous)],
      responseType: 'json'
    },
    data: { error: [Object] },
    headers: {
      'alt-svc': 'h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"',
      'cache-control': 'private',
      connection: 'close',
      'content-encoding': 'gzip',
      'content-type': 'application/json; charset=UTF-8',
      date: 'Wed, 01 Jun 2022 06:56:18 GMT',
      server: 'ESF',
      'transfer-encoding': 'chunked',
      vary: 'Origin, X-Origin, Referer',
      'x-content-type-options': 'nosniff',
      'x-frame-options': 'SAMEORIGIN',
      'x-xss-protection': '0'
    },
    status: 403,
    statusText: 'Forbidden'
  },
  config: {
    url: 'https://www.googleapis.com/analytics/v3/management/accounts',
    method: 'GET',
    paramsSerializer: [Function (anonymous)],
    headers: {
      'Accept-Encoding': 'gzip',
      'User-Agent': 'google-api-nodejs-client/0.7.2 (gzip)',
      Authorization: 'Bearer ya29.a0ARrdaM8C_wqbCdx3q-0wEDrJp3gYKUDW3j1r1BmByf6mzazCPmYCuLs4mw-uOtKlTvjcsEXxFWu5ZaogBT-BivN2DfduflNx-22oBPhUZMmBrYqx3qb7W5bQkVxo-YuvtVquS6sS36QaWl3wjHTlzSdS8nS-',
      Accept: 'application/json'
    },
    params: [Object: null prototype] {},
    validateStatus: [Function (anonymous)],
    responseType: 'json'
  },
  code: 403,
  errors: [
    {
      message: 'Google Analytics API has not been used in project 64751005694 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/analytics.googleapis.com/overview?project=64751005694 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.',
      domain: 'usageLimits',
      reason: 'accessNotConfigured',
      extendedHelp: 'https://console.developers.google.com'
    }
  ]

Also tried setting up client myself but it complaints it needs secure redirect url

@edward-simpson
Copy link

Yup #26 (comment) doesn't work anymore, I get an invalid request with a correct and working client ID

Error 400: invalid_request

@allypalanzi
Copy link

same issue as above.

@brookjordan
Copy link

I’m getting this:

Screenshot 2024-01-02 at 11 44 48 AM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests