Smart123s / BeFake

BeReal Python API wrapper
The Unlicense
12 stars 3 forks source link

Can't login anymore #2

Closed michielree closed 9 months ago

michielree commented 1 year ago

Many thanks for your continuing work on this project! Since last week I've run into an issue where I can't login anymore. I have tried all of the possible backends. Using the default cloud backend that I have alway used before, the request made at https://github.com/Smart123s/BeFake/blob/master/BeFake/BeFake.py#L217 receives the following response from the Identity Toolkit API:

{
  "error": {
    "code": 403,
    "message": "Requests from this Android client application \u003cempty\u003e are blocked.",
    "errors": [
      {
        "message": "Requests from this Android client application \u003cempty\u003e are blocked.",
        "domain": "global",
        "reason": "forbidden"
      }
    ],
    "status": "PERMISSION_DENIED",
    "details": [
      {
        "@type": "type.googleapis.com/google.rpc.ErrorInfo",
        "reason": "API_KEY_ANDROID_APP_BLOCKED",
        "domain": "googleapis.com",
        "metadata": {
          "service": "identitytoolkit.googleapis.com",
          "consumer": "projects/405768487586"
        }
      }
    ]
  }
}
NicoWeio commented 10 months ago

I just spent some time researching whether somebody has fixed this. It seems like there has been another very recent update that broke basically everything. I didn't keep track of all the issues and discussions I followed in the process, but I'll try to post here (and hopefully also create a PR) when the situation changes. Feel free to ping me, should I forget.

Some pointers:

NicoWeio commented 10 months ago

It's done (for now)! 🎉 I integrated the fix into my related fork (https://github.com/NicoWeio/BeFake/commit/a9fc1a154c4873e55d2ce57ca539087c1859dc13) and will try to create a PR. Note that I haven't tested everything, only login and feed. In the long run, I guess it would make sense to combine this repo with my fork, but for now, let's just be happy we fixed it! :)

Smart123s commented 9 months ago

I've rebased my fork on NicoWeio's master branch. I would generally recommend using his for though, as he's more active with updates and bug fixes.