thooton / muse

Let's create synthetic textbooks together :)
MIT License
70 stars 6 forks source link

Consumer suspended #6

Open w013nad opened 10 months ago

w013nad commented 10 months ago

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 commented 10 months ago

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 commented 10 months ago

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 commented 10 months ago

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

dronesflier commented 10 months ago

Fixed by regenerating API keys as per https://github.com/thooton/muse/issues/6#issuecomment-1870792233

TanvirOnGH commented 10 months ago

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 commented 10 months ago

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 commented 10 months ago

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