s-alad / toofake

View friends BeReals without posting or them knowing. Post custom BeReal's whenever. Add custom realmojis
https://toofake.lol/
MIT License
158 stars 35 forks source link

can't login issue with foreign numbers #118

Open mats636 opened 5 months ago

mats636 commented 5 months ago

Now just nothing happens after i enter my phone number

s-alad commented 5 months ago

seems to work if you spam the submit button, haven't had any time to look into things, but will take a look over the weekend

mats636 commented 5 months ago

Sorry for annoying you but i tried to spam for a while and it didnt work Im from germany and tried it in safari

NOctu1412 commented 5 months ago

@mats636 Can you send a log of your network requests please (if possible) ?

mats636 commented 5 months ago

Sorry but whats that?

NOctu1412 commented 5 months ago

@mats636 Oh wait, forgot what I said, how many times did you sent an otp to your phone today ? You maybe got rate limited.

mats636 commented 5 months ago

Bro im sorry Whats otp can you explain it?

NOctu1412 commented 5 months ago

Okok, no problem. An otp is the verification code to your phone, but I just tested something and I think that maybe something is broken in the toofake.lol website itself because I can't login there too. But the fact is that when I try to login in a local project (when I run the code on my computer) or in the preview environment, it works.

You can access the preview environment by this link: https://toofake-hv74f4zs3-saladin.vercel.app/fr or via this if you don't trust the link: image

mats636 commented 5 months ago

On the bottom of my screen a Message which says log in to interact appears do i have to to do that?

NOctu1412 commented 5 months ago

@mats636 no you don't have, that's some developer stuff, you just need to use toofake like usual.

mats636 commented 5 months ago

Okay then i dont know whats the Problem because it still doesnt work but thank you for your time and help

NOctu1412 commented 5 months ago

@mats636 Mmmh that's a very strange issue. Just a quick question, before all of that, when you were putting your phone number and click the "send" button. Was there an error saying "retrying with firebase" and then it worked, or was it sending you the code directly ?

mats636 commented 5 months ago

I cant really remember but i think that a message appeared

NOctu1412 commented 5 months ago

@mats636 mmh ok so yeah I really don't know, I think we'll have to wait till salad investigate the issue because he is the one to have access to the toofake.lol website I think. I'm gonna do a pull request that will generate a preview version, that "maybe" fix the issue but I'm really not sure about it. You can try it if you want.

mats636 commented 5 months ago

Yes i will try im Open for every tip to fix the issue

mats636 commented 5 months ago

Just tell me what to do

NOctu1412 commented 5 months ago

If you have a computer I'll recommend you to run the project locally, it works fine for me.

NOctu1412 commented 5 months ago

I made a pull request, https://github.com/s-alad/toofake/pull/119 this """may""" fix the issue but I'm really not sure about it, I'll give you the link to the preview environment when it's ready.

NOctu1412 commented 5 months ago

https://toofake-git-fork-noctu1412-main-saladin.vercel.app/fr

NOctu1412 commented 5 months ago

If it doesn't work, then it's a problem that I cannot fix by myself :/

mats636 commented 5 months ago

ERROR: "\r\n400 Bad Request\r\n\r\n

400 Bad Request

\r\n
nginx
\r\n\r\n\r\n" Failed with Vonage login provider, re-trying to login with Vonage... Now this error code appears do you have any idea why?

NOctu1412 commented 5 months ago

Yeah because I haven't tested the thing because I don't have the error myself, I'm gonna try to fix the code

mats636 commented 5 months ago

okay thanks

NOctu1412 commented 5 months ago

Np I'll tell you when it's ready.

mats636 commented 5 months ago

can you estimate how long it will taje you to fix the code?

NOctu1412 commented 5 months ago

I really don't know, maybe I will not even manage to do it. But I'll try 👍

mats636 commented 5 months ago

Okay np take your time

NOctu1412 commented 5 months ago

The worst part about all of that is that I doesn't have the error myself so it's very hard to investigate.

mats636 commented 5 months ago

If i can possibly help you by giving you Information just ask ill See what i can do

NOctu1412 commented 5 months ago

@mats636 Yeah so I don't really know, for some reason when I test toofake under a vercel environment (toofake.lol or the preview environments), it toofake doesn't seem to work. But whenever I test by running the project on my computer i works immediatly. My guess would be that vercel is getting rate limited from sending requests from BeReal but I have no proof to advance. So my only recommendation to you would be to run toofake locally, sorry :/

mats636 commented 5 months ago

Firstly thanks for your help and Effort but what does it exactly mean to run it locally

NOctu1412 commented 5 months ago

You can follow these steps to run the project locally: https://github.com/s-alad/toofake?tab=readme-ov-file#how-to-run-locally. You can only do it on a computer as far as I know (Windows, MacOs, Linux, ...).

For that you need to download npm from https://nodejs.org/en/download/prebuilt-installer. Git is not required, you can just download the project files from github using:

image

Then you unzip the project, open a command prompt in the folder you unzipped toofake. Then you can just follow the steps.

mats636 commented 5 months ago

Okay ill try

mats636 commented 5 months ago

i dont think that im able to do that but still thanks maybe it will work in a few days

NOctu1412 commented 5 months ago

Yeah I understand, I hope we will be able to fix that, thanks for your patience.

mats636 commented 5 months ago

how do i unzip the project?

NOctu1412 commented 5 months ago

@mats636 Just made a quick tutorial: https://youtu.be/72vQnmqDmhk

Here are all the links: https://github.com/s-alad/toofake/tree/main https://nodejs.org/en/download/prebuilt-installer https://learn.microsoft.com/fr-fr/cpp/windows/latest-supported-vc-redist?view=msvc-170

riicardo1 commented 5 months ago

I actually have the same problem. For about a week now, I've been unable to log in to toofake or get an OTP and get the following error after clicking on "Send" with my number: ERROR: {"statusCode":400, "errorKey":null, "data":null, "fields":null, "timestamp": "2024-06-21T22:19:10.767Z", "requestId": "cd6016ad562f9baff50cee204accc662"} Since today nothing happens on toofake.lol when I click on "Send", not even an error.

I have now run the project locally and there I get an error again, but as in the days before I get no OTP. By the way, I am also using a German number.

mats636 commented 5 months ago

Great tutorial but still doesnt work now nothing happens again maybe its because of the german number

NOctu1412 commented 5 months ago

@Riiicardo Yeah I do think that this is because of that.

mats636 commented 5 months ago

because of what?

NOctu1412 commented 5 months ago

German numbers

mats636 commented 5 months ago

but it makes no sense that it doesnt work for german numbers

NOctu1412 commented 5 months ago

I think that BeReal is using another sms provider for german numbers (vonage), but the fact that makes no sense is that I also have this bug on the toofake.lol website times to times, while I don't have a german number.

mats636 commented 5 months ago

do you think this problem can be fixed?

riicardo1 commented 5 months ago

It should be noted that everything worked until about a week ago

mats636 commented 5 months ago

fr

NOctu1412 commented 5 months ago

Of course it can, I just need more logs to know what exactly is going on since I can't replicate the issue on my computer :/ @mats636

NOctu1412 commented 5 months ago

@Riiicardo yeah basically BeReal made change in the way that the login tokens are refreshed.

mats636 commented 5 months ago

okay but still thanks for your help and effort there are not many people who put in this kind of effort and time to help a random person they dont know i reallly appreciate that

NOctu1412 commented 5 months ago

@mats636 Thanks 👍