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

Consumer suspended #6

Open
w013nad opened this issue Dec 28, 2023 · 7 comments
Open

Consumer suspended #6

w013nad opened this issue Dec 28, 2023 · 7 comments

Comments

@w013nad
Copy link
Contributor

w013nad commented Dec 28, 2023

It seems google has caught on to this. My API key has been suspended and it looks like a couple others have too.

C:\Users\Nick>curl -H "Content-Type: application/json" -d "{\"contents\":[{\"parts\":[{\"text\":\"Write a story about a magic backpack\"}]}]}" -X POST https://generativelanguage.googleapis.com/v1beta/models/gemini-pro:generateContent?key=API_KEY
{
  "error": {
    "code": 403,
    "message": "Permission denied: Consumer 'api_key:<API_KEY' has been suspended.",
    "status": "PERMISSION_DENIED",
    "details": [
      {
        "@type": "type.googleapis.com/google.rpc.ErrorInfo",
        "reason": "CONSUMER_SUSPENDED",
        "domain": "googleapis.com",
        "metadata": {
          "service": "generativelanguage.googleapis.com",
          "consumer": "projects/993395320710"
        }
      }
    ]
  }
}
@thooton
Copy link
Owner

thooton commented Dec 28, 2023

Dang, you're right.
For now, I just registered a new API key - it seems that Google is banning the key, not the account :)

@TanvirOnGH
Copy link
Contributor

TanvirOnGH commented Dec 28, 2023

Oh no. I'm out (temporary ip ban). Getting this from the API now:

Sorry...
We're sorry but your computer or network may be sending automated queries. To protect our users, we can't process your request right now. See https://support.google.com/websearch/answer/86640 for more information.

Several hours have passed, and the ban still hasn't been appealed. Using VPN/proxy now.

@dronesflier
Copy link

Yeah, the same thing is happening to me. Got an error 403.

@dronesflier
Copy link

Fixed by regenerating API keys as per #6 (comment)

@TanvirOnGH
Copy link
Contributor

TanvirOnGH commented Dec 29, 2023

Update

After few hours of running:

{
  "error": {
    "code": 429,
    "message": "Resource has been exhausted (e.g. check quota).",
    "status": "RESOURCE_EXHAUSTED"
  }
}

Unable to generate new APIs. Getting: The caller does not have permission.

@ambrosfitz
Copy link

Update

After few hours of running:

{
  "error": {
    "code": 429,
    "message": "Resource has been exhausted (e.g. check quota).",
    "status": "RESOURCE_EXHAUSTED"
  }
}

Unable to generate new APIs. Getting: The caller does not have permission.

I solved this by using another browser that had not logged into the Google AI platform yet. I used Firefox first, got the "The caller does not have permissions" error. Logged into Chrome, and generated a new key. We will see how long it lasts if they are banning them.

@TanvirOnGH
Copy link
Contributor

Tried with several browsers. Doesn't work for me.

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

5 participants