chemokita13 / beReal-api

A not official BeReal rest API in wich you can get all posts info, comment, upload a post...
https://berealapi.fly.dev
79 stars 5 forks source link

/login/verify not working as expected #4

Closed TIMcre closed 1 year ago

TIMcre commented 1 year ago

So I am trying to use the API. Still, when I try to use the verify endpoint I get an internal server error, then a bit further into the response this message "Requests from this iOS client application are blocked." so yeah is it a problem on my side, or server-side if yes is there a way I could fix that.

thanks for the help already :)

{
    "status": 500,
    "message": "Internal server error",
    "data": {
        "response": {
            "status": 400,
            "message": "OTP not verified",
            "data": {
                "error": {
                    "code": 403,
                    "message": "Requests from this iOS client application <empty> are blocked.",
                    "errors": [
                        {
                            "message": "Requests from this iOS client application <empty> are blocked.",
                            "domain": "global",
                            "reason": "forbidden"
                        }
                    ],
                    "status": "PERMISSION_DENIED",
                    "details": [
                        {
                            "@type": "type.googleapis.com/google.rpc.ErrorInfo",
                            "reason": "API_KEY_IOS_APP_BLOCKED",
                            "domain": "googleapis.com",
                            "metadata": {
                                "consumer": "projects/405768487586",
                                "service": "identitytoolkit.googleapis.com"
                            }
                        }
                    ]
                }
            }
        },
        "status": 400,
        "message": "OTP not verified",
        "name": "HttpException"
    }
}
chemokita13 commented 1 year ago

Hey, could you tell me what international phone number are you using? Like +XX YYYYYYYYY

TIMcre commented 1 year ago

Its "+49 YYYYYYYYY" for Germany

basti394 commented 1 year ago

I think the problem is solved with the last update. I had the same issue, and now its working fine 👍

chemokita13 commented 1 year ago

yeah, @TIMcre I think its solved!