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

can't login issue with foreign numbers #118

Open
mats636 opened this issue Jun 21, 2024 · 77 comments
Open

can't login issue with foreign numbers #118

mats636 opened this issue Jun 21, 2024 · 77 comments

Comments

@mats636
Copy link

mats636 commented Jun 21, 2024

Now just nothing happens after i enter my phone number

@s-alad
Copy link
Owner

s-alad commented Jun 21, 2024

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
Copy link
Author

mats636 commented Jun 21, 2024

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
Copy link
Contributor

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

@mats636
Copy link
Author

mats636 commented Jun 21, 2024

Sorry but whats that?

@NOctu1412
Copy link
Contributor

@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
Copy link
Author

mats636 commented Jun 21, 2024

Bro im sorry Whats otp can you explain it?

@NOctu1412
Copy link
Contributor

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
Copy link
Author

mats636 commented Jun 21, 2024

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

@NOctu1412
Copy link
Contributor

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

@mats636
Copy link
Author

mats636 commented Jun 21, 2024

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

@NOctu1412
Copy link
Contributor

@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
Copy link
Author

mats636 commented Jun 21, 2024

I cant really remember but i think that a message appeared

@NOctu1412
Copy link
Contributor

@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
Copy link
Author

mats636 commented Jun 21, 2024

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

@mats636
Copy link
Author

mats636 commented Jun 21, 2024

Just tell me what to do

@NOctu1412
Copy link
Contributor

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

@NOctu1412
Copy link
Contributor

I made a pull request, #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
Copy link
Contributor

@NOctu1412
Copy link
Contributor

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

@mats636
Copy link
Author

mats636 commented Jun 21, 2024

ERROR: "\r\n<title>400 Bad Request</title>\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
Copy link
Contributor

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
Copy link
Author

mats636 commented Jun 21, 2024

okay thanks

@NOctu1412
Copy link
Contributor

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

@mats636
Copy link
Author

mats636 commented Jun 21, 2024

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

@NOctu1412
Copy link
Contributor

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

@mats636
Copy link
Author

mats636 commented Jun 21, 2024

Okay np take your time

@NOctu1412
Copy link
Contributor

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

@mats636
Copy link
Author

mats636 commented Jun 21, 2024

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

@NOctu1412
Copy link
Contributor

@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 :/

@NOctu1412
Copy link
Contributor

@mats636 Thanks 👍

@NOctu1412
Copy link
Contributor

NOctu1412 commented Jun 21, 2024

@Riiicardo do you think you can send me your console logs (don't forget to hide your tokens) ?
(by console logs, I mean what is inside your command line)
This may help me to investigate the issue.

@riicardo1
Copy link

riicardo1 commented Jun 21, 2024

2024-06-22 00:35:47 {
2024-06-22 00:35:47   status: 400,
2024-06-22 00:35:47   statusText: 'Bad Request',
2024-06-22 00:35:47   headers: AxiosHeaders {
2024-06-22 00:35:47     date: 'Fri, 21 Jun 2024 22:34:44 GMT',
2024-06-22 00:35:47     'content-type': 'application/json; charset=utf-8',
2024-06-22 00:35:47     'content-length': '146',
2024-06-22 00:35:47     connection: 'close',
2024-06-22 00:35:47     'x-request-id': '1fcd4bfa10621020f6210f3e0d811f43',
2024-06-22 00:35:47     etag: 'W/"92-WwysK+VN3u29/JZpFQM24p65FNo"',
2024-06-22 00:35:47     'strict-transport-security': 'max-age=15724800; includeSubDomains'
2024-06-22 00:35:47   },
2024-06-22 00:35:47   config: {
2024-06-22 00:35:47     transitional: {
2024-06-22 00:35:47       silentJSONParsing: true,
2024-06-22 00:35:47       forcedJSONParsing: true,
2024-06-22 00:35:47       clarifyTimeoutError: false
2024-06-22 00:35:47     },
2024-06-22 00:35:47     adapter: [ 'xhr', 'http' ],
2024-06-22 00:35:47     transformRequest: [ [Function: transformRequest] ],
2024-06-22 00:35:47     transformResponse: [ [Function: transformResponse] ],
2024-06-22 00:35:47     timeout: 0,
2024-06-22 00:35:47     xsrfCookieName: 'XSRF-TOKEN',
2024-06-22 00:35:47     xsrfHeaderName: 'X-XSRF-TOKEN',
2024-06-22 00:35:47     maxContentLength: -1,
2024-06-22 00:35:47     maxBodyLength: -1,
2024-06-22 00:35:47     env: { FormData: [Function], Blob: [class Blob] },
2024-06-22 00:35:47     validateStatus: [Function: validateStatus],
2024-06-22 00:35:47     headers: AxiosHeaders {
2024-06-22 00:35:47       Accept: '*/*',
2024-06-22 00:35:47       'Content-Type': 'application/json',
2024-06-22 00:35:47       'User-Agent': 'BeReal/8586 CFNetwork/1240.0.4 Darwin/20.6.0',
2024-06-22 00:35:47       'x-ios-bundle-identifier': 'AlexisBarreyat.BeReal',
2024-06-22 00:35:47       'Content-Length': '62',
2024-06-22 00:35:47       'Accept-Encoding': 'gzip, compress, deflate, br'
2024-06-22 00:35:47     },
2024-06-22 00:35:47     url: 'https://auth.bereal.team/api/vonage/request-code',
2024-06-22 00:35:47     method: 'post',
2024-06-22 00:35:47     data: '{"phoneNumber":"","deviceId":"7pabiubif9cansnr"}'
2024-06-22 00:35:47   },
2024-06-22 00:35:47   request: <ref *1> ClientRequest {
2024-06-22 00:35:47     _events: [Object: null prototype] {
2024-06-22 00:35:47       abort: [Function (anonymous)],
2024-06-22 00:35:47       aborted: [Function (anonymous)],
2024-06-22 00:35:47       connect: [Function (anonymous)],
2024-06-22 00:35:47       error: [Function (anonymous)],
2024-06-22 00:35:47       socket: [Function (anonymous)],
2024-06-22 00:35:47       timeout: [Function (anonymous)],
2024-06-22 00:35:47       finish: [Function: requestOnFinish]
2024-06-22 00:35:47     },
2024-06-22 00:35:47     _eventsCount: 7,
2024-06-22 00:35:47     _maxListeners: undefined,
2024-06-22 00:35:47     outputData: [],
2024-06-22 00:35:47     outputSize: 0,
2024-06-22 00:35:47     writable: true,
2024-06-22 00:35:47     destroyed: false,
2024-06-22 00:35:47     _last: true,
2024-06-22 00:35:47     chunkedEncoding: false,
2024-06-22 00:35:47     shouldKeepAlive: false,
2024-06-22 00:35:47     maxRequestsOnConnectionReached: false,
2024-06-22 00:35:47     _defaultKeepAlive: true,
2024-06-22 00:35:47     useChunkedEncodingByDefault: true,
2024-06-22 00:35:47     sendDate: false,
2024-06-22 00:35:47     _removedConnection: false,
2024-06-22 00:35:47     _removedContLen: false,
2024-06-22 00:35:47     _removedTE: false,
2024-06-22 00:35:47     strictContentLength: false,
2024-06-22 00:35:47     _contentLength: '62',
2024-06-22 00:35:47     _hasBody: true,
2024-06-22 00:35:47     _trailer: '',
2024-06-22 00:35:47     finished: true,
2024-06-22 00:35:47     _headerSent: true,
2024-06-22 00:35:47     _closed: false,
2024-06-22 00:35:47     socket: TLSSocket {
2024-06-22 00:35:47       _tlsOptions: [Object],
2024-06-22 00:35:47       _secureEstablished: true,
2024-06-22 00:35:47       _securePending: false,
2024-06-22 00:35:47       _newSessionPending: false,
2024-06-22 00:35:47       _controlReleased: true,
2024-06-22 00:35:47       secureConnecting: false,
2024-06-22 00:35:47       _SNICallback: null,
2024-06-22 00:35:47       servername: 'auth.bereal.team',
2024-06-22 00:35:47       alpnProtocol: false,
2024-06-22 00:35:47       authorized: true,
2024-06-22 00:35:47       authorizationError: null,
2024-06-22 00:35:47       encrypted: true,
2024-06-22 00:35:47       _events: [Object: null prototype],
2024-06-22 00:35:47       _eventsCount: 10,
2024-06-22 00:35:47       connecting: false,
2024-06-22 00:35:47       _hadError: false,
2024-06-22 00:35:47       _parent: null,
2024-06-22 00:35:47       _host: 'auth.bereal.team',
2024-06-22 00:35:47       _closeAfterHandlingError: false,
2024-06-22 00:35:47       _readableState: [ReadableState],
2024-06-22 00:35:47       _maxListeners: undefined,
2024-06-22 00:35:47       _writableState: [WritableState],
2024-06-22 00:35:47       allowHalfOpen: false,
2024-06-22 00:35:47       _sockname: null,
2024-06-22 00:35:47       _pendingData: null,
2024-06-22 00:35:47       _pendingEncoding: '',
2024-06-22 00:35:47       server: undefined,
2024-06-22 00:35:47       _server: null,
2024-06-22 00:35:47       ssl: [TLSWrap],
2024-06-22 00:35:47       _requestCert: true,
2024-06-22 00:35:47       _rejectUnauthorized: true,
2024-06-22 00:35:47       parser: null,
2024-06-22 00:35:47       _httpMessage: [Circular *1],
2024-06-22 00:35:47       [Symbol(alpncallback)]: null,
2024-06-22 00:35:47       [Symbol(res)]: [TLSWrap],
2024-06-22 00:35:47       [Symbol(verified)]: true,
2024-06-22 00:35:47       [Symbol(pendingSession)]: null,
2024-06-22 00:35:47       [Symbol(async_id_symbol)]: 330,
2024-06-22 00:35:47       [Symbol(kHandle)]: [TLSWrap],
2024-06-22 00:35:47       [Symbol(lastWriteQueueSize)]: 0,
2024-06-22 00:35:47       [Symbol(timeout)]: null,
2024-06-22 00:35:47       [Symbol(kBuffer)]: null,
2024-06-22 00:35:47       [Symbol(kBufferCb)]: null,
2024-06-22 00:35:47       [Symbol(kBufferGen)]: null,
2024-06-22 00:35:47       [Symbol(kCapture)]: false,
2024-06-22 00:35:47       [Symbol(kSetNoDelay)]: false,
2024-06-22 00:35:47       [Symbol(kSetKeepAlive)]: true,
2024-06-22 00:35:47       [Symbol(kSetKeepAliveInitialDelay)]: 60,
2024-06-22 00:35:47       [Symbol(kBytesRead)]: 0,
2024-06-22 00:35:47       [Symbol(kBytesWritten)]: 0,
2024-06-22 00:35:47       [Symbol(connect-options)]: [Object]
2024-06-22 00:35:47     },
2024-06-22 00:35:47     _header: 'POST /api/vonage/request-code HTTP/1.1\r\n' +
2024-06-22 00:35:47       'Accept: */*\r\n' +
2024-06-22 00:35:47       'Content-Type: application/json\r\n' +
2024-06-22 00:35:47       'User-Agent: BeReal/8586 CFNetwork/1240.0.4 Darwin/20.6.0\r\n' +
2024-06-22 00:35:47       'x-ios-bundle-identifier: AlexisBarreyat.BeReal\r\n' +
2024-06-22 00:35:47       'Content-Length: 62\r\n' +
2024-06-22 00:35:47       'Accept-Encoding: gzip, compress, deflate, br\r\n' +
2024-06-22 00:35:47       'Host: auth.bereal.team\r\n' +
2024-06-22 00:35:47       'Connection: close\r\n' +
2024-06-22 00:35:47       '\r\n',
2024-06-22 00:35:47     _keepAliveTimeout: 0,
2024-06-22 00:35:47     _onPendingData: [Function: nop],
2024-06-22 00:35:47     agent: Agent {
2024-06-22 00:35:47       _events: [Object: null prototype],
2024-06-22 00:35:47       _eventsCount: 2,
2024-06-22 00:35:47       _maxListeners: undefined,
2024-06-22 00:35:47       defaultPort: 443,
2024-06-22 00:35:47       protocol: 'https:',
2024-06-22 00:35:47       options: [Object: null prototype],
2024-06-22 00:35:47       requests: [Object: null prototype] {},
2024-06-22 00:35:47       sockets: [Object: null prototype],
2024-06-22 00:35:47       freeSockets: [Object: null prototype] {},
2024-06-22 00:35:47       keepAliveMsecs: 1000,
2024-06-22 00:35:47       keepAlive: false,
2024-06-22 00:35:47       maxSockets: Infinity,
2024-06-22 00:35:47       maxFreeSockets: 256,
2024-06-22 00:35:47       scheduling: 'lifo',
2024-06-22 00:35:47       maxTotalSockets: Infinity,
2024-06-22 00:35:47       totalSocketCount: 1,
2024-06-22 00:35:47       maxCachedSessions: 100,
2024-06-22 00:35:47       _sessionCache: [Object],
2024-06-22 00:35:47       [Symbol(kCapture)]: false
2024-06-22 00:35:47     },
2024-06-22 00:35:47     socketPath: undefined,
2024-06-22 00:35:47     method: 'POST',
2024-06-22 00:35:47     maxHeaderSize: undefined,
2024-06-22 00:35:47     insecureHTTPParser: undefined,
2024-06-22 00:35:47     joinDuplicateHeaders: undefined,
2024-06-22 00:35:47     path: '/api/vonage/request-code',
2024-06-22 00:35:47     _ended: true,
2024-06-22 00:35:47     res: IncomingMessage {
2024-06-22 00:35:47       _readableState: [ReadableState],
2024-06-22 00:35:47       _events: [Object: null prototype],
2024-06-22 00:35:47       _eventsCount: 4,
2024-06-22 00:35:47       _maxListeners: undefined,
2024-06-22 00:35:47       socket: [TLSSocket],
2024-06-22 00:35:47       httpVersionMajor: 1,
2024-06-22 00:35:47       httpVersionMinor: 1,
2024-06-22 00:35:47       httpVersion: '1.1',
2024-06-22 00:35:47       complete: true,
2024-06-22 00:35:47       rawHeaders: [Array],
2024-06-22 00:35:47       rawTrailers: [],
2024-06-22 00:35:47       joinDuplicateHeaders: undefined,
2024-06-22 00:35:47       aborted: false,
2024-06-22 00:35:47       upgrade: false,
2024-06-22 00:35:47       url: '',
2024-06-22 00:35:47       method: null,
2024-06-22 00:35:47       statusCode: 400,
2024-06-22 00:35:47       statusMessage: 'Bad Request',
2024-06-22 00:35:47       client: [TLSSocket],
2024-06-22 00:35:47       _consuming: false,
2024-06-22 00:35:47       _dumped: false,
2024-06-22 00:35:47       req: [Circular *1],
2024-06-22 00:35:47       responseUrl: 'https://auth.bereal.team/api/vonage/request-code',
2024-06-22 00:35:47       redirects: [],
2024-06-22 00:35:47       [Symbol(kCapture)]: false,
2024-06-22 00:35:47       [Symbol(kHeaders)]: [Object],
2024-06-22 00:35:47       [Symbol(kHeadersCount)]: 14,
2024-06-22 00:35:47       [Symbol(kTrailers)]: null,
2024-06-22 00:35:47       [Symbol(kTrailersCount)]: 0
2024-06-22 00:35:47     },
2024-06-22 00:35:47     aborted: false,
2024-06-22 00:35:47     timeoutCb: null,
2024-06-22 00:35:47     upgradeOrConnect: false,
2024-06-22 00:35:47     parser: null,
2024-06-22 00:35:47     maxHeadersCount: null,
2024-06-22 00:35:47     reusedSocket: false,
2024-06-22 00:35:47     host: 'auth.bereal.team',
2024-06-22 00:35:47     protocol: 'https:',
2024-06-22 00:35:47     _redirectable: Writable {
2024-06-22 00:35:47       _writableState: [WritableState],
2024-06-22 00:35:47       _events: [Object: null prototype],
2024-06-22 00:35:47       _eventsCount: 3,
2024-06-22 00:35:47       _maxListeners: undefined,
2024-06-22 00:35:47       _options: [Object],
2024-06-22 00:35:47       _ended: true,
2024-06-22 00:35:47       _ending: true,
2024-06-22 00:35:47       _redirectCount: 0,
2024-06-22 00:35:47       _redirects: [],
2024-06-22 00:35:47       _requestBodyLength: 62,
2024-06-22 00:35:47       _requestBodyBuffers: [],
2024-06-22 00:35:47       _onNativeResponse: [Function (anonymous)],
2024-06-22 00:35:47       _currentRequest: [Circular *1],
2024-06-22 00:35:47       _currentUrl: 'https://auth.bereal.team/api/vonage/request-code',
2024-06-22 00:35:47       [Symbol(kCapture)]: false
2024-06-22 00:35:47     },
2024-06-22 00:35:47     [Symbol(kCapture)]: false,
2024-06-22 00:35:47     [Symbol(kBytesWritten)]: 0,
2024-06-22 00:35:47     [Symbol(kNeedDrain)]: false,
2024-06-22 00:35:47     [Symbol(corked)]: 0,
2024-06-22 00:35:47     [Symbol(kOutHeaders)]: [Object: null prototype] {
2024-06-22 00:35:47       accept: [Array],
2024-06-22 00:35:47       'content-type': [Array],
2024-06-22 00:35:47       'user-agent': [Array],
2024-06-22 00:35:47       'x-ios-bundle-identifier': [Array],
2024-06-22 00:35:47       'content-length': [Array],
2024-06-22 00:35:47       'accept-encoding': [Array],
2024-06-22 00:35:47       host: [Array]
2024-06-22 00:35:47     },
2024-06-22 00:35:47     [Symbol(errored)]: null,
2024-06-22 00:35:47     [Symbol(kHighWaterMark)]: 16384,
2024-06-22 00:35:47     [Symbol(kRejectNonStandardBodyWrites)]: false,
2024-06-22 00:35:47     [Symbol(kUniqueHeaders)]: null
2024-06-22 00:35:47   },
2024-06-22 00:35:47   data: {
2024-06-22 00:35:47     statusCode: 400,
2024-06-22 00:35:47     errorKey: null,
2024-06-22 00:35:47     data: null,
2024-06-22 00:35:47     fields: null,
2024-06-22 00:35:47     timestamp: '2024-06-21T22:34:44.559Z',
2024-06-22 00:35:47     requestId: '1fcd4bfa10621020f6210f3e0d811f43'
2024-06-22 00:35:47   }
2024-06-22 00:35:47 }
2024-06-22 00:35:47 AxiosError: Request failed with status code 400
2024-06-22 00:35:47     at settle (file:///app/node_modules/axios/lib/core/settle.js:19:12)
2024-06-22 00:35:47     at Unzip.handleStreamEnd (file:///app/node_modules/axios/lib/adapters/http.js:570:11)
2024-06-22 00:35:47     at Unzip.emit (node:events:529:35)
2024-06-22 00:35:47     at endReadableNT (node:internal/streams/readable:1400:12)
2024-06-22 00:35:47     at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
2024-06-22 00:35:47   code: 'ERR_BAD_REQUEST',
2024-06-22 00:35:47   config: {
2024-06-22 00:35:47     transitional: {
2024-06-22 00:35:47       silentJSONParsing: true,
2024-06-22 00:35:47       forcedJSONParsing: true,
2024-06-22 00:35:47       clarifyTimeoutError: false
2024-06-22 00:35:47     },
2024-06-22 00:35:47     adapter: [ 'xhr', 'http' ],
2024-06-22 00:35:47     transformRequest: [ [Function: transformRequest] ],
2024-06-22 00:35:47     transformResponse: [ [Function: transformResponse] ],
2024-06-22 00:35:47     timeout: 0,
2024-06-22 00:35:47     xsrfCookieName: 'XSRF-TOKEN',
2024-06-22 00:35:47     xsrfHeaderName: 'X-XSRF-TOKEN',
2024-06-22 00:35:47     maxContentLength: -1,
2024-06-22 00:35:47     maxBodyLength: -1,
2024-06-22 00:35:47     env: { FormData: [Function], Blob: [class Blob] },
2024-06-22 00:35:47     validateStatus: [Function: validateStatus],
2024-06-22 00:35:47     headers: AxiosHeaders {
2024-06-22 00:35:47       Accept: '*/*',
2024-06-22 00:35:47       'Content-Type': 'application/json',
2024-06-22 00:35:47       'x-client-version': 'iOS/FirebaseSDK/9.6.0/FirebaseCore-iOS',
2024-06-22 00:35:47       'x-ios-bundle-identifier': 'AlexisBarreyat.BeReal',
2024-06-22 00:35:47       'accept-language': 'en',
2024-06-22 00:35:47       'user-agent': 'FirebaseAuth.iOS/9.6.0 AlexisBarreyat.BeReal/0.31.0 iPhone/14.7.1 hw/iPhone9_1',
2024-06-22 00:35:47       'x-firebase-locale': 'en',
2024-06-22 00:35:47       'x-firebase-gmpid': '1:405768487586:ios:28c4df089ca92b89',
2024-06-22 00:35:47       'Content-Length': '79',
2024-06-22 00:35:47       'Accept-Encoding': 'gzip, compress, deflate, br'
2024-06-22 00:35:47     },
2024-06-22 00:35:47     url: 'https://www.googleapis.com/identitytoolkit/v3/relyingparty/verifyClient?key=AIzaSyDwjfEeparokD7sXPVQli9NsTuhT6fJ6iA',
2024-06-22 00:35:47     method: 'post',
2024-06-22 00:35:47     data: '{"appToken":""}'
2024-06-22 00:35:47   },
2024-06-22 00:35:47   request: <ref *1> ClientRequest {
2024-06-22 00:35:47     _events: [Object: null prototype] {
2024-06-22 00:35:47       abort: [Function (anonymous)],
2024-06-22 00:35:47       aborted: [Function (anonymous)],
2024-06-22 00:35:47       connect: [Function (anonymous)],
2024-06-22 00:35:47       error: [Function (anonymous)],
2024-06-22 00:35:47       socket: [Function (anonymous)],
2024-06-22 00:35:47       timeout: [Function (anonymous)],
2024-06-22 00:35:47       finish: [Function: requestOnFinish]
2024-06-22 00:35:47     },
2024-06-22 00:35:47     _eventsCount: 7,
2024-06-22 00:35:47     _maxListeners: undefined,
2024-06-22 00:35:47     outputData: [],
2024-06-22 00:35:47     outputSize: 0,
2024-06-22 00:35:47     writable: true,
2024-06-22 00:35:47     destroyed: true,
2024-06-22 00:35:47     _last: true,
2024-06-22 00:35:47     chunkedEncoding: false,
2024-06-22 00:35:47     shouldKeepAlive: false,
2024-06-22 00:35:47     maxRequestsOnConnectionReached: false,
2024-06-22 00:35:47     _defaultKeepAlive: true,
2024-06-22 00:35:47     useChunkedEncodingByDefault: true,
2024-06-22 00:35:47     sendDate: false,
2024-06-22 00:35:47     _removedConnection: false,
2024-06-22 00:35:47     _removedContLen: false,
2024-06-22 00:35:47     _removedTE: false,
2024-06-22 00:35:47     strictContentLength: false,
2024-06-22 00:35:47     _contentLength: '79',
2024-06-22 00:35:47     _hasBody: true,
2024-06-22 00:35:47     _trailer: '',
2024-06-22 00:35:47     finished: true,
2024-06-22 00:35:47     _headerSent: true,
2024-06-22 00:35:47     _closed: true,
2024-06-22 00:35:47     socket: TLSSocket {
2024-06-22 00:35:47       _tlsOptions: [Object],
2024-06-22 00:35:47       _secureEstablished: true,
2024-06-22 00:35:47       _securePending: false,
2024-06-22 00:35:47       _newSessionPending: false,
2024-06-22 00:35:47       _controlReleased: true,
2024-06-22 00:35:47       secureConnecting: false,
2024-06-22 00:35:47       _SNICallback: null,
2024-06-22 00:35:47       servername: 'www.googleapis.com',
2024-06-22 00:35:47       alpnProtocol: false,
2024-06-22 00:35:47       authorized: true,
2024-06-22 00:35:47       authorizationError: null,
2024-06-22 00:35:47       encrypted: true,
2024-06-22 00:35:47       _events: [Object: null prototype],
2024-06-22 00:35:47       _eventsCount: 9,
2024-06-22 00:35:47       connecting: false,
2024-06-22 00:35:47       _hadError: false,
2024-06-22 00:35:47       _parent: null,
2024-06-22 00:35:47       _host: 'www.googleapis.com',
2024-06-22 00:35:47       _closeAfterHandlingError: false,
2024-06-22 00:35:47       _readableState: [ReadableState],
2024-06-22 00:35:47       _maxListeners: undefined,
2024-06-22 00:35:47       _writableState: [WritableState],
2024-06-22 00:35:47       allowHalfOpen: false,
2024-06-22 00:35:47       _sockname: null,
2024-06-22 00:35:47       _pendingData: null,
2024-06-22 00:35:47       _pendingEncoding: '',
2024-06-22 00:35:47       server: undefined,
2024-06-22 00:35:47       _server: null,
2024-06-22 00:35:47       ssl: null,
2024-06-22 00:35:47       _requestCert: true,
2024-06-22 00:35:47       _rejectUnauthorized: true,
2024-06-22 00:35:47       parser: null,
2024-06-22 00:35:47       _httpMessage: [Circular *1],
2024-06-22 00:35:47       [Symbol(alpncallback)]: null,
2024-06-22 00:35:47       [Symbol(res)]: null,
2024-06-22 00:35:47       [Symbol(verified)]: true,
2024-06-22 00:35:47       [Symbol(pendingSession)]: null,
2024-06-22 00:35:47       [Symbol(async_id_symbol)]: 370,
2024-06-22 00:35:47       [Symbol(kHandle)]: null,
2024-06-22 00:35:47       [Symbol(lastWriteQueueSize)]: 0,
2024-06-22 00:35:47       [Symbol(timeout)]: null,
2024-06-22 00:35:47       [Symbol(kBuffer)]: null,
2024-06-22 00:35:47       [Symbol(kBufferCb)]: null,
2024-06-22 00:35:47       [Symbol(kBufferGen)]: null,
2024-06-22 00:35:47       [Symbol(kCapture)]: false,
2024-06-22 00:35:47       [Symbol(kSetNoDelay)]: false,
2024-06-22 00:35:47       [Symbol(kSetKeepAlive)]: true,
2024-06-22 00:35:47       [Symbol(kSetKeepAliveInitialDelay)]: 60,
2024-06-22 00:35:47       [Symbol(kBytesRead)]: 775,
2024-06-22 00:35:47       [Symbol(kBytesWritten)]: 639,
2024-06-22 00:35:47       [Symbol(connect-options)]: [Object]
2024-06-22 00:35:47     },
2024-06-22 00:35:47     _header: 'POST /identitytoolkit/v3/relyingparty/verifyClient?key=AIzaSyDwjfEeparokD7sXPVQli9NsTuhT6fJ6iA HTTP/1.1\r\n' +
2024-06-22 00:35:47       'Accept: */*\r\n' +
2024-06-22 00:35:47       'Content-Type: application/json\r\n' +
2024-06-22 00:35:47       'x-client-version: iOS/FirebaseSDK/9.6.0/FirebaseCore-iOS\r\n' +
2024-06-22 00:35:47       'x-ios-bundle-identifier: AlexisBarreyat.BeReal\r\n' +
2024-06-22 00:35:47       'accept-language: en\r\n' +
2024-06-22 00:35:47       'user-agent: FirebaseAuth.iOS/9.6.0 AlexisBarreyat.BeReal/0.31.0 iPhone/14.7.1 hw/iPhone9_1\r\n' +
2024-06-22 00:35:47       'x-firebase-locale: en\r\n' +
2024-06-22 00:35:47       'x-firebase-gmpid: 1:405768487586:ios:28c4df089ca92b89\r\n' +
2024-06-22 00:35:47       'Content-Length: 79\r\n' +
2024-06-22 00:35:47       'Accept-Encoding: gzip, compress, deflate, br\r\n' +
2024-06-22 00:35:47       'Host: www.googleapis.com\r\n' +
2024-06-22 00:35:47       'Connection: close\r\n' +
2024-06-22 00:35:47       '\r\n',
2024-06-22 00:35:47     _keepAliveTimeout: 0,
2024-06-22 00:35:47     _onPendingData: [Function: nop],
2024-06-22 00:35:47     agent: Agent {
2024-06-22 00:35:47       _events: [Object: null prototype],
2024-06-22 00:35:47       _eventsCount: 2,
2024-06-22 00:35:47       _maxListeners: undefined,
2024-06-22 00:35:47       defaultPort: 443,
2024-06-22 00:35:47       protocol: 'https:',
2024-06-22 00:35:47       options: [Object: null prototype],
2024-06-22 00:35:47       requests: [Object: null prototype] {},
2024-06-22 00:35:47       sockets: [Object: null prototype] {},
2024-06-22 00:35:47       freeSockets: [Object: null prototype] {},
2024-06-22 00:35:47       keepAliveMsecs: 1000,
2024-06-22 00:35:47       keepAlive: false,
2024-06-22 00:35:47       maxSockets: Infinity,
2024-06-22 00:35:47       maxFreeSockets: 256,
2024-06-22 00:35:47       scheduling: 'lifo',
2024-06-22 00:35:47       maxTotalSockets: Infinity,
2024-06-22 00:35:47       totalSocketCount: 0,
2024-06-22 00:35:47       maxCachedSessions: 100,
2024-06-22 00:35:47       _sessionCache: [Object],
2024-06-22 00:35:47       [Symbol(kCapture)]: false
2024-06-22 00:35:47     },
2024-06-22 00:35:47     socketPath: undefined,
2024-06-22 00:35:47     method: 'POST',
2024-06-22 00:35:47     maxHeaderSize: undefined,
2024-06-22 00:35:47     insecureHTTPParser: undefined,
2024-06-22 00:35:47     joinDuplicateHeaders: undefined,
2024-06-22 00:35:47     path: '/identitytoolkit/v3/relyingparty/verifyClient?key=AIzaSyDwjfEeparokD7sXPVQli9NsTuhT6fJ6iA',
2024-06-22 00:35:47     _ended: true,
2024-06-22 00:35:47     res: IncomingMessage {
2024-06-22 00:35:47       _readableState: [ReadableState],
2024-06-22 00:35:47       _events: [Object: null prototype],
2024-06-22 00:35:47       _eventsCount: 4,
2024-06-22 00:35:47       _maxListeners: undefined,
2024-06-22 00:35:47       socket: [TLSSocket],
2024-06-22 00:35:47       httpVersionMajor: 1,
2024-06-22 00:35:47       httpVersionMinor: 1,
2024-06-22 00:35:47       httpVersion: '1.1',
2024-06-22 00:35:47       complete: true,
2024-06-22 00:35:47       rawHeaders: [Array],
2024-06-22 00:35:47       rawTrailers: [],
2024-06-22 00:35:47       joinDuplicateHeaders: undefined,
2024-06-22 00:35:47       aborted: false,
2024-06-22 00:35:47       upgrade: false,
2024-06-22 00:35:47       url: '',
2024-06-22 00:35:47       method: null,
2024-06-22 00:35:47       statusCode: 400,
2024-06-22 00:35:47       statusMessage: 'Bad Request',
2024-06-22 00:35:47       client: [TLSSocket],
2024-06-22 00:35:47       _consuming: true,
2024-06-22 00:35:47       _dumped: false,
2024-06-22 00:35:47       req: [Circular *1],
2024-06-22 00:35:47       responseUrl: 'https://www.googleapis.com/identitytoolkit/v3/relyingparty/verifyClient?key=AIzaSyDwjfEeparokD7sXPVQli9NsTuhT6fJ6iA',
2024-06-22 00:35:47       redirects: [],
2024-06-22 00:35:47       [Symbol(kCapture)]: false,
2024-06-22 00:35:47       [Symbol(kHeaders)]: [Object],
2024-06-22 00:35:47       [Symbol(kHeadersCount)]: 28,
2024-06-22 00:35:47       [Symbol(kTrailers)]: null,
2024-06-22 00:35:47       [Symbol(kTrailersCount)]: 0
2024-06-22 00:35:47     },
2024-06-22 00:35:47     aborted: false,
2024-06-22 00:35:47     timeoutCb: null,
2024-06-22 00:35:47     upgradeOrConnect: false,
2024-06-22 00:35:47     parser: null,
2024-06-22 00:35:47     maxHeadersCount: null,
2024-06-22 00:35:47     reusedSocket: false,
2024-06-22 00:35:47     host: 'www.googleapis.com',
2024-06-22 00:35:47     protocol: 'https:',
2024-06-22 00:35:47     _redirectable: Writable {
2024-06-22 00:35:47       _writableState: [WritableState],
2024-06-22 00:35:47       _events: [Object: null prototype],
2024-06-22 00:35:47       _eventsCount: 3,
2024-06-22 00:35:47       _maxListeners: undefined,
2024-06-22 00:35:47       _options: [Object],
2024-06-22 00:35:47       _ended: true,
2024-06-22 00:35:47       _ending: true,
2024-06-22 00:35:47       _redirectCount: 0,
2024-06-22 00:35:47       _redirects: [],
2024-06-22 00:35:47       _requestBodyLength: 79,
2024-06-22 00:35:47       _requestBodyBuffers: [],
2024-06-22 00:35:47       _onNativeResponse: [Function (anonymous)],
2024-06-22 00:35:47       _currentRequest: [Circular *1],
2024-06-22 00:35:47       _currentUrl: 'https://www.googleapis.com/identitytoolkit/v3/relyingparty/verifyClient?key=AIzaSyDwjfEeparokD7sXPVQli9NsTuhT6fJ6iA',
2024-06-22 00:35:47       [Symbol(kCapture)]: false
2024-06-22 00:35:47     },
2024-06-22 00:35:47     [Symbol(kCapture)]: false,
2024-06-22 00:35:47     [Symbol(kBytesWritten)]: 0,
2024-06-22 00:35:47     [Symbol(kNeedDrain)]: false,
2024-06-22 00:35:47     [Symbol(corked)]: 0,
2024-06-22 00:35:47     [Symbol(kOutHeaders)]: [Object: null prototype] {
2024-06-22 00:35:47       accept: [Array],
2024-06-22 00:35:47       'content-type': [Array],
2024-06-22 00:35:47       'x-client-version': [Array],
2024-06-22 00:35:47       'x-ios-bundle-identifier': [Array],
2024-06-22 00:35:47       'accept-language': [Array],
2024-06-22 00:35:47       'user-agent': [Array],
2024-06-22 00:35:47       'x-firebase-locale': [Array],
2024-06-22 00:35:47       'x-firebase-gmpid': [Array],
2024-06-22 00:35:47       'content-length': [Array],
2024-06-22 00:35:47       'accept-encoding': [Array],
2024-06-22 00:35:47       host: [Array]
2024-06-22 00:35:47     },
2024-06-22 00:35:47     [Symbol(errored)]: null,
2024-06-22 00:35:47     [Symbol(kHighWaterMark)]: 16384,
2024-06-22 00:35:47     [Symbol(kRejectNonStandardBodyWrites)]: false,
2024-06-22 00:35:47     [Symbol(kUniqueHeaders)]: null
2024-06-22 00:35:47   },
2024-06-22 00:35:47   response: {
2024-06-22 00:35:47     status: 400,
2024-06-22 00:35:47     statusText: 'Bad Request',
2024-06-22 00:35:47     headers: AxiosHeaders {
2024-06-22 00:35:47       vary: 'Origin, X-Origin, Referer',
2024-06-22 00:35:47       'content-type': 'application/json; charset=UTF-8',
2024-06-22 00:35:47       date: 'Fri, 21 Jun 2024 22:34:44 GMT',
2024-06-22 00:35:47       server: 'ESF',
2024-06-22 00:35:47       'cache-control': 'private',
2024-06-22 00:35:47       'x-xss-protection': '0',
2024-06-22 00:35:47       'x-frame-options': 'SAMEORIGIN',
2024-06-22 00:35:47       'x-content-type-options': 'nosniff',
2024-06-22 00:35:47       'alt-svc': 'h3=":443"; ma=2592000,h3-29=":443"; ma=2592000',
2024-06-22 00:35:47       connection: 'close',
2024-06-22 00:35:47       'transfer-encoding': 'chunked'
2024-06-22 00:35:47     },
2024-06-22 00:35:47     config: {
2024-06-22 00:35:47       transitional: [Object],
2024-06-22 00:35:47       adapter: [Array],
2024-06-22 00:35:47       transformRequest: [Array],
2024-06-22 00:35:47       transformResponse: [Array],
2024-06-22 00:35:47       timeout: 0,
2024-06-22 00:35:47       xsrfCookieName: 'XSRF-TOKEN',
2024-06-22 00:35:47       xsrfHeaderName: 'X-XSRF-TOKEN',
2024-06-22 00:35:47       maxContentLength: -1,
2024-06-22 00:35:47       maxBodyLength: -1,
2024-06-22 00:35:47       env: [Object],
2024-06-22 00:35:47       validateStatus: [Function: validateStatus],
2024-06-22 00:35:47       headers: [AxiosHeaders],
2024-06-22 00:35:47       url: 'https://www.googleapis.com/identitytoolkit/v3/relyingparty/verifyClient?key=AIzaSyDwjfEeparokD7sXPVQli9NsTuhT6fJ6iA',
2024-06-22 00:35:47       method: 'post',
2024-06-22 00:35:47       data: '{"appToken":""}'
2024-06-22 00:35:47     },
2024-06-22 00:35:47     request: <ref *1> ClientRequest {
2024-06-22 00:35:47       _events: [Object: null prototype],
2024-06-22 00:35:47       _eventsCount: 7,
2024-06-22 00:35:47       _maxListeners: undefined,
2024-06-22 00:35:47       outputData: [],
2024-06-22 00:35:47       outputSize: 0,
2024-06-22 00:35:47       writable: true,
2024-06-22 00:35:47       destroyed: true,
2024-06-22 00:35:47       _last: true,
2024-06-22 00:35:47       chunkedEncoding: false,
2024-06-22 00:35:47       shouldKeepAlive: false,
2024-06-22 00:35:47       maxRequestsOnConnectionReached: false,
2024-06-22 00:35:47       _defaultKeepAlive: true,
2024-06-22 00:35:47       useChunkedEncodingByDefault: true,
2024-06-22 00:35:47       sendDate: false,
2024-06-22 00:35:47       _removedConnection: false,
2024-06-22 00:35:47       _removedContLen: false,
2024-06-22 00:35:47       _removedTE: false,
2024-06-22 00:35:47       strictContentLength: false,
2024-06-22 00:35:47       _contentLength: '79',
2024-06-22 00:35:47       _hasBody: true,
2024-06-22 00:35:47       _trailer: '',
2024-06-22 00:35:47       finished: true,
2024-06-22 00:35:47       _headerSent: true,
2024-06-22 00:35:47       _closed: true,
2024-06-22 00:35:47       socket: [TLSSocket],
2024-06-22 00:35:47       _header: 'POST /identitytoolkit/v3/relyingparty/verifyClient?key=AIzaSyDwjfEeparokD7sXPVQli9NsTuhT6fJ6iA HTTP/1.1\r\n' +
2024-06-22 00:35:47         'Accept: */*\r\n' +
2024-06-22 00:35:47         'Content-Type: application/json\r\n' +
2024-06-22 00:35:47         'x-client-version: iOS/FirebaseSDK/9.6.0/FirebaseCore-iOS\r\n' +
2024-06-22 00:35:47         'x-ios-bundle-identifier: AlexisBarreyat.BeReal\r\n' +
2024-06-22 00:35:47         'accept-language: en\r\n' +
2024-06-22 00:35:47         'user-agent: FirebaseAuth.iOS/9.6.0 AlexisBarreyat.BeReal/0.31.0 iPhone/14.7.1 hw/iPhone9_1\r\n' +
2024-06-22 00:35:47         'x-firebase-locale: en\r\n' +
2024-06-22 00:35:47         'x-firebase-gmpid: 1:405768487586:ios:28c4df089ca92b89\r\n' +
2024-06-22 00:35:47         'Content-Length: 79\r\n' +
2024-06-22 00:35:47         'Accept-Encoding: gzip, compress, deflate, br\r\n' +
2024-06-22 00:35:47         'Host: www.googleapis.com\r\n' +
2024-06-22 00:35:47         'Connection: close\r\n' +
2024-06-22 00:35:47         '\r\n',
2024-06-22 00:35:47       _keepAliveTimeout: 0,
2024-06-22 00:35:47       _onPendingData: [Function: nop],
2024-06-22 00:35:47       agent: [Agent],
2024-06-22 00:35:47       socketPath: undefined,
2024-06-22 00:35:47       method: 'POST',
2024-06-22 00:35:47       maxHeaderSize: undefined,
2024-06-22 00:35:47       insecureHTTPParser: undefined,
2024-06-22 00:35:47       joinDuplicateHeaders: undefined,
2024-06-22 00:35:47       path: '/identitytoolkit/v3/relyingparty/verifyClient?key=AIzaSyDwjfEeparokD7sXPVQli9NsTuhT6fJ6iA',
2024-06-22 00:35:47       _ended: true,
2024-06-22 00:35:47       res: [IncomingMessage],
2024-06-22 00:35:47       aborted: false,
2024-06-22 00:35:47       timeoutCb: null,
2024-06-22 00:35:47       upgradeOrConnect: false,
2024-06-22 00:35:47       parser: null,
2024-06-22 00:35:47       maxHeadersCount: null,
2024-06-22 00:35:47       reusedSocket: false,
2024-06-22 00:35:47       host: 'www.googleapis.com',
2024-06-22 00:35:47       protocol: 'https:',
2024-06-22 00:35:47       _redirectable: [Writable],
2024-06-22 00:35:47       [Symbol(kCapture)]: false,
2024-06-22 00:35:47       [Symbol(kBytesWritten)]: 0,
2024-06-22 00:35:47       [Symbol(kNeedDrain)]: false,
2024-06-22 00:35:47       [Symbol(corked)]: 0,
2024-06-22 00:35:47       [Symbol(kOutHeaders)]: [Object: null prototype],
2024-06-22 00:35:47       [Symbol(errored)]: null,
2024-06-22 00:35:47       [Symbol(kHighWaterMark)]: 16384,
2024-06-22 00:35:47       [Symbol(kRejectNonStandardBodyWrites)]: false,
2024-06-22 00:35:47       [Symbol(kUniqueHeaders)]: null
2024-06-22 00:35:47     },
2024-06-22 00:35:47     data: { error: [Object] }
2024-06-22 00:35:47   }
2024-06-22 00:35:47 }

I hope this is what you were looking for

@NOctu1412
Copy link
Contributor

@Riiicardo That's good to know (vonage isn't working) but that's not really what I needed, mmmh try to search for the same type of error but with "firebase" in it.

@NOctu1412
Copy link
Contributor

NOctu1412 commented Jun 21, 2024

You'll find that somewhere:
"------------------
request vonage otp
phoneNumber n2cf2fq9rb28lsyc
------------------"

And the thing I need is what comes before, it has the same form that what you sent me, it's just before.
Again, don't forget to hide the tokens, they look like long random alpha-numericals chain of characters.

@riicardo1
Copy link

In fact, my log only starts with "request vonage otp". Nothing comes before that...

@NOctu1412
Copy link
Contributor

@Riiicardo mmh ok, are you sure that you are running the latest version of toofake on your computer ?

@riicardo1
Copy link

{
  status: 400,
  statusText: 'Bad Request',
  headers: AxiosHeaders {
    vary: 'Origin, X-Origin, Referer',
    'content-type': 'application/json; charset=UTF-8',
    date: 'Fri, 21 Jun 2024 22:56:09 GMT',
    server: 'ESF',
    'cache-control': 'private',
    'x-xss-protection': '0',
    'x-frame-options': 'SAMEORIGIN',
    'x-content-type-options': 'nosniff',
    'alt-svc': 'h3=":443"; ma=2592000,h3-29=":443"; ma=2592000',
    'transfer-encoding': 'chunked'
  },
  config: {
    transitional: {
      silentJSONParsing: true,
      forcedJSONParsing: true,
      clarifyTimeoutError: false
    },
    adapter: [ 'xhr', 'http' ],
    transformRequest: [ [Function: transformRequest] ],
    transformResponse: [ [Function: transformResponse] ],
    timeout: 0,
    xsrfCookieName: 'XSRF-TOKEN',
    xsrfHeaderName: 'X-XSRF-TOKEN',
    maxContentLength: -1,
    maxBodyLength: -1,
    env: { FormData: [Function], Blob: [class Blob] },
    validateStatus: [Function: validateStatus],
    headers: AxiosHeaders {
      Accept: '*/*',
      'Content-Type': 'application/json',
      'x-client-version': 'iOS/FirebaseSDK/9.6.0/FirebaseCore-iOS',
      'x-ios-bundle-identifier': 'AlexisBarreyat.BeReal',
      'accept-language': 'en',
      'user-agent': 'FirebaseAuth.iOS/9.6.0 AlexisBarreyat.BeReal/0.28.2 iPhone/14.7.1 hw/iPhone9_1',
      'x-firebase-locale': 'en',
      'x-firebase-gmpid': '1:405768487586:ios:28c4df089ca92b89',
      'Content-Length': '180',
      'Accept-Encoding': 'gzip, compress, deflate, br'
    },
    url: 'https://www.googleapis.com/identitytoolkit/v3/relyingparty/sendVerificationCode?key=AIzaSyCgNTZt6gzPMh-2voYXOvrt_UR_gpGl83Q',
    method: 'post',
    data: '{"phoneNumber":"","iosReceipt":""}'
  },
  request: <ref *1> ClientRequest {
    _events: [Object: null prototype] {
      abort: [Function (anonymous)],
      aborted: [Function (anonymous)],
      connect: [Function (anonymous)],
      error: [Function (anonymous)],
      socket: [Function (anonymous)],
      timeout: [Function (anonymous)],
      finish: [Function: requestOnFinish]
    },
    _eventsCount: 7,
    _maxListeners: undefined,
    outputData: [],
    outputSize: 0,
    writable: true,
    destroyed: true,
    _last: false,
    chunkedEncoding: false,
    shouldKeepAlive: true,
    maxRequestsOnConnectionReached: false,
    _defaultKeepAlive: true,
    useChunkedEncodingByDefault: true,
    sendDate: false,
    _removedConnection: false,
    _removedContLen: false,
    _removedTE: false,
    strictContentLength: false,
    _contentLength: '180',
    _hasBody: true,
    _trailer: '',
    finished: true,
    _headerSent: true,
    _closed: true,
    socket: TLSSocket {
      _tlsOptions: [Object],
      _secureEstablished: true,
      _securePending: false,
      _newSessionPending: false,
      _controlReleased: true,
      secureConnecting: false,
      _SNICallback: null,
      servername: 'www.googleapis.com',
      alpnProtocol: false,
      authorized: true,
      authorizationError: null,
      encrypted: true,
      _events: [Object: null prototype],
      _eventsCount: 9,
      connecting: false,
      _hadError: false,
      _parent: null,
      _host: 'www.googleapis.com',
      _closeAfterHandlingError: false,
      _readableState: [ReadableState],
      _writableState: [WritableState],
      allowHalfOpen: false,
      _maxListeners: undefined,
      _sockname: null,
      _pendingData: null,
      _pendingEncoding: '',
      server: undefined,
      _server: null,
      ssl: [TLSWrap],
      _requestCert: true,
      _rejectUnauthorized: true,
      timeout: 5000,
      parser: null,
      _httpMessage: null,
      autoSelectFamilyAttemptedAddresses: [Array],
      [Symbol(alpncallback)]: null,
      [Symbol(res)]: [TLSWrap],
      [Symbol(verified)]: true,
      [Symbol(pendingSession)]: null,
      [Symbol(async_id_symbol)]: -1,
      [Symbol(kHandle)]: [TLSWrap],
      [Symbol(lastWriteQueueSize)]: 0,
      [Symbol(timeout)]: Timeout {
        _idleTimeout: 5000,
        _idlePrev: [TimersList],
        _idleNext: [Timeout],
        _idleStart: 126188,
        _onTimeout: [Function: bound ],
        _timerArgs: undefined,
        _repeat: null,
        _destroyed: false,
        [Symbol(refed)]: false,
        [Symbol(kHasPrimitive)]: false,
        [Symbol(asyncId)]: 1273,
        [Symbol(triggerId)]: 1271
      },
      [Symbol(kBuffer)]: null,
      [Symbol(kBufferCb)]: null,
      [Symbol(kBufferGen)]: null,
      [Symbol(shapeMode)]: true,
      [Symbol(kCapture)]: false,
      [Symbol(kSetNoDelay)]: false,
      [Symbol(kSetKeepAlive)]: true,
      [Symbol(kSetKeepAliveInitialDelay)]: 1,
      [Symbol(kBytesRead)]: 0,
      [Symbol(kBytesWritten)]: 0,
      [Symbol(connect-options)]: [Object]
    },
    _header: 'POST /identitytoolkit/v3/relyingparty/sendVerificationCode?key=AIzaSyCgNTZt6gzPMh-2voYXOvrt_UR_gpGl83Q HTTP/1.1\r\n' +
      'Accept: */*\r\n' +
      'Content-Type: application/json\r\n' +
      'x-client-version: iOS/FirebaseSDK/9.6.0/FirebaseCore-iOS\r\n' +
      'x-ios-bundle-identifier: AlexisBarreyat.BeReal\r\n' +
      'accept-language: en\r\n' +
      'user-agent: FirebaseAuth.iOS/9.6.0 AlexisBarreyat.BeReal/0.28.2 iPhone/14.7.1 hw/iPhone9_1\r\n' +
      'x-firebase-locale: en\r\n' +
      'x-firebase-gmpid: 1:405768487586:ios:28c4df089ca92b89\r\n' +
      'Content-Length: 180\r\n' +
      'Accept-Encoding: gzip, compress, deflate, br\r\n' +
      'Host: www.googleapis.com\r\n' +
      'Connection: keep-alive\r\n' +
      '\r\n',
    _keepAliveTimeout: 0,
    _onPendingData: [Function: nop],
    agent: Agent {
      _events: [Object: null prototype],
      _eventsCount: 2,
      _maxListeners: undefined,
      defaultPort: 443,
      protocol: 'https:',
      options: [Object: null prototype],
      requests: [Object: null prototype] {},
      sockets: [Object: null prototype] {},
      freeSockets: [Object: null prototype],
      keepAliveMsecs: 1000,
      keepAlive: true,
      maxSockets: Infinity,
      maxFreeSockets: 256,
      scheduling: 'lifo',
      maxTotalSockets: Infinity,
      totalSocketCount: 1,
      maxCachedSessions: 100,
      _sessionCache: [Object],
      [Symbol(shapeMode)]: false,
      [Symbol(kCapture)]: false
    },
    socketPath: undefined,
    method: 'POST',
    maxHeaderSize: undefined,
    insecureHTTPParser: undefined,
    joinDuplicateHeaders: undefined,
    path: '/identitytoolkit/v3/relyingparty/sendVerificationCode?key=AIzaSyCgNTZt6gzPMh-2voYXOvrt_UR_gpGl83Q',
    _ended: true,
    res: IncomingMessage {
      _events: [Object],
      _readableState: [ReadableState],
      _maxListeners: undefined,
      socket: null,
      httpVersionMajor: 1,
      httpVersionMinor: 1,
      httpVersion: '1.1',
      complete: true,
      rawHeaders: [Array],
      rawTrailers: [],
      joinDuplicateHeaders: undefined,
      aborted: false,
      upgrade: false,
      url: '',
      method: null,
      statusCode: 400,
      statusMessage: 'Bad Request',
      client: [TLSSocket],
      _consuming: true,
      _dumped: false,
      req: [Circular *1],
      _eventsCount: 4,
      responseUrl: 'https://www.googleapis.com/identitytoolkit/v3/relyingparty/sendVerificationCode?key=AIzaSyCgNTZt6gzPMh-2voYXOvrt_UR_gpGl83Q',
      redirects: [],
      [Symbol(shapeMode)]: true,
      [Symbol(kCapture)]: false,
      [Symbol(kHeaders)]: [Object],
      [Symbol(kHeadersCount)]: 26,
      [Symbol(kTrailers)]: null,
      [Symbol(kTrailersCount)]: 0
    },
    aborted: false,
    timeoutCb: null,
    upgradeOrConnect: false,
    parser: null,
    maxHeadersCount: null,
    reusedSocket: true,
    host: 'www.googleapis.com',
    protocol: 'https:',
    _redirectable: Writable {
      _events: [Object],
      _writableState: [WritableState],
      _maxListeners: undefined,
      _options: [Object],
      _ended: true,
      _ending: true,
      _redirectCount: 0,
      _redirects: [],
      _requestBodyLength: 180,
      _requestBodyBuffers: [],
      _eventsCount: 3,
      _onNativeResponse: [Function (anonymous)],
      _currentRequest: [Circular *1],
      _currentUrl: 'https://www.googleapis.com/identitytoolkit/v3/relyingparty/sendVerificationCode?key=AIzaSyCgNTZt6gzPMh-2voYXOvrt_UR_gpGl83Q',
      [Symbol(shapeMode)]: true,
      [Symbol(kCapture)]: false
    },
    [Symbol(shapeMode)]: false,
    [Symbol(kCapture)]: false,
    [Symbol(kBytesWritten)]: 0,
    [Symbol(kNeedDrain)]: false,
    [Symbol(corked)]: 0,
    [Symbol(kOutHeaders)]: [Object: null prototype] {
      accept: [Array],
      'content-type': [Array],
      'x-client-version': [Array],
      'x-ios-bundle-identifier': [Array],
      'accept-language': [Array],
      'user-agent': [Array],
      'x-firebase-locale': [Array],
      'x-firebase-gmpid': [Array],
      'content-length': [Array],
      'accept-encoding': [Array],
      host: [Array]
    },
    [Symbol(errored)]: null,
    [Symbol(kHighWaterMark)]: 16384,
    [Symbol(kRejectNonStandardBodyWrites)]: false,
    [Symbol(kUniqueHeaders)]: null
  },
  data: {
    error: {
      code: 400,
      message: 'TOO_MANY_ATTEMPTS_TRY_LATER',
      errors: [Array]
    }
  }
}
{
  error: {
    code: 400,
    message: 'TOO_MANY_ATTEMPTS_TRY_LATER',
    errors: [ [Object] ]
  }
}
{
  code: 400,
  message: 'TOO_MANY_ATTEMPTS_TRY_LATER',
  errors: [
    {
      message: 'TOO_MANY_ATTEMPTS_TRY_LATER',
      domain: 'global',
      reason: 'invalid'
    }
  ]
}

@NOctu1412
Copy link
Contributor

NOctu1412 commented Jun 21, 2024

@Riiicardo okay so this is because you are getting rate limited by bereal, you tried to login too many times 😅
You just need to wait 1 or 2 hours I think.

@riicardo1
Copy link

oh okay, yeah makes sense, have been trying for a while now. I'll try in a few hours again...

@s-alad
Copy link
Owner

s-alad commented Jun 22, 2024

@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 :/

Vercel does not work anymore as of #89 (comment), I still have the preview builds run mainly due to lack of cleaning things up and for the reasoning of ensuring builds pass. toofake.lol is currently the only way to access a hosted instance or via docker / running it locally

@riicardo1
Copy link

I have tried again and now get the following error by running it locally:

{
  status: 400,
  statusText: 'Bad Request',
  headers: AxiosHeaders {
    vary: 'Origin, X-Origin, Referer',
    'content-type': 'application/json; charset=UTF-8',
    date: 'Sat, 22 Jun 2024 11:09:49 GMT',
    server: 'ESF',
    'cache-control': 'private',
    'x-xss-protection': '0',
    'x-frame-options': 'SAMEORIGIN',
    'x-content-type-options': 'nosniff',
    'alt-svc': 'h3=":443"; ma=2592000,h3-29=":443"; ma=2592000',
    'transfer-encoding': 'chunked'
  },
  config: {
    transitional: {
      silentJSONParsing: true,
      forcedJSONParsing: true,
      clarifyTimeoutError: false
    },
    adapter: [ 'xhr', 'http' ],
    transformRequest: [ [Function: transformRequest] ],
    transformResponse: [ [Function: transformResponse] ],
    timeout: 0,
    xsrfCookieName: 'XSRF-TOKEN',
    xsrfHeaderName: 'X-XSRF-TOKEN',
    maxContentLength: -1,
    maxBodyLength: -1,
    env: { FormData: [Function], Blob: [class Blob] },
    validateStatus: [Function: validateStatus],
    headers: AxiosHeaders {
      Accept: '*/*',
      'Content-Type': 'application/json',
      'x-client-version': 'iOS/FirebaseSDK/9.6.0/FirebaseCore-iOS',
      'x-ios-bundle-identifier': 'AlexisBarreyat.BeReal',
      'accept-language': 'en',
      'user-agent': 'FirebaseAuth.iOS/9.6.0 AlexisBarreyat.BeReal/0.28.2 iPhone/14.7.1 hw/iPhone9_1',
      'x-firebase-locale': 'en',
      'x-firebase-gmpid': '1:405768487586:ios:28c4df089ca92b89',
      'Content-Length': '180',
      'Accept-Encoding': 'gzip, compress, deflate, br'
    },
    url: 'https://www.googleapis.com/identitytoolkit/v3/relyingparty/sendVerificationCode?key=AIzaSyCgNTZt6gzPMh-2voYXOvrt_UR_gpGl83Q',
    method: 'post',
    data: '{"phoneNumber":"","iosReceipt":"AEFDNu_Jbpp1Q3PimUZJjBOt5fRWSKrhiKw7bSKVHSLUBZOT43ld9sNQvgW36ndD1Fqq7EX_iJ-qUA_mX1Ie04XM7kUGfmr9rZYg8BS9BEUEA40KFVOBQPDBnTclvltKLGBm"}'
  },
  request: <ref *1> ClientRequest {
    _events: [Object: null prototype] {
      abort: [Function (anonymous)],
      aborted: [Function (anonymous)],
      connect: [Function (anonymous)],
      error: [Function (anonymous)],
      socket: [Function (anonymous)],
      timeout: [Function (anonymous)],
      finish: [Function: requestOnFinish]
    },
    _eventsCount: 7,
    _maxListeners: undefined,
    outputData: [],
    outputSize: 0,
    writable: true,
    destroyed: true,
    _last: false,
    chunkedEncoding: false,
    shouldKeepAlive: true,
    maxRequestsOnConnectionReached: false,
    _defaultKeepAlive: true,
    useChunkedEncodingByDefault: true,
    sendDate: false,
    _removedConnection: false,
    _removedContLen: false,
    _removedTE: false,
    strictContentLength: false,
    _contentLength: '180',
    _hasBody: true,
    _trailer: '',
    finished: true,
    _headerSent: true,
    _closed: true,
    socket: TLSSocket {
      _tlsOptions: [Object],
      _secureEstablished: true,
      _securePending: false,
      _newSessionPending: false,
      _controlReleased: true,
      secureConnecting: false,
      _SNICallback: null,
      servername: 'www.googleapis.com',
      alpnProtocol: false,
      authorized: true,
      authorizationError: null,
      encrypted: true,
      _events: [Object: null prototype],
      _eventsCount: 9,
      connecting: false,
      _hadError: false,
      _parent: null,
      _host: 'www.googleapis.com',
      _closeAfterHandlingError: false,
      _readableState: [ReadableState],
      _writableState: [WritableState],
      allowHalfOpen: false,
      _maxListeners: undefined,
      _sockname: null,
      _pendingData: null,
      _pendingEncoding: '',
      server: undefined,
      _server: null,
      ssl: [TLSWrap],
      _requestCert: true,
      _rejectUnauthorized: true,
      timeout: 5000,
      parser: null,
      _httpMessage: null,
      autoSelectFamilyAttemptedAddresses: [Array],
      [Symbol(alpncallback)]: null,
      [Symbol(res)]: [TLSWrap],
      [Symbol(verified)]: true,
      [Symbol(pendingSession)]: null,
      [Symbol(async_id_symbol)]: -1,
      [Symbol(kHandle)]: [TLSWrap],
      [Symbol(lastWriteQueueSize)]: 0,
      [Symbol(timeout)]: Timeout {
        _idleTimeout: 5000,
        _idlePrev: [TimersList],
        _idleNext: [Timeout],
        _idleStart: 19244,
        _onTimeout: [Function: bound ],
        _timerArgs: undefined,
        _repeat: null,
        _destroyed: false,
        [Symbol(refed)]: false,
        [Symbol(kHasPrimitive)]: false,
        [Symbol(asyncId)]: 1023,
        [Symbol(triggerId)]: 1021
      },
      [Symbol(kBuffer)]: null,
      [Symbol(kBufferCb)]: null,
      [Symbol(kBufferGen)]: null,
      [Symbol(shapeMode)]: true,
      [Symbol(kCapture)]: false,
      [Symbol(kSetNoDelay)]: false,
      [Symbol(kSetKeepAlive)]: true,
      [Symbol(kSetKeepAliveInitialDelay)]: 1,
      [Symbol(kBytesRead)]: 0,
      [Symbol(kBytesWritten)]: 0,
      [Symbol(connect-options)]: [Object]
    },
    _header: 'POST /identitytoolkit/v3/relyingparty/sendVerificationCode?key=AIzaSyCgNTZt6gzPMh-2voYXOvrt_UR_gpGl83Q HTTP/1.1\r\n' +
      'Accept: */*\r\n' +
      'Content-Type: application/json\r\n' +
      'x-client-version: iOS/FirebaseSDK/9.6.0/FirebaseCore-iOS\r\n' +
      'x-ios-bundle-identifier: AlexisBarreyat.BeReal\r\n' +
      'accept-language: en\r\n' +
      'user-agent: FirebaseAuth.iOS/9.6.0 AlexisBarreyat.BeReal/0.28.2 iPhone/14.7.1 hw/iPhone9_1\r\n' +
      'x-firebase-locale: en\r\n' +
      'x-firebase-gmpid: 1:405768487586:ios:28c4df089ca92b89\r\n' +
      'Content-Length: 180\r\n' +
      'Accept-Encoding: gzip, compress, deflate, br\r\n' +
      'Host: www.googleapis.com\r\n' +
      'Connection: keep-alive\r\n' +
      '\r\n',
    _keepAliveTimeout: 0,
    _onPendingData: [Function: nop],
    agent: Agent {
      _events: [Object: null prototype],
      _eventsCount: 2,
      _maxListeners: undefined,
      defaultPort: 443,
      protocol: 'https:',
      options: [Object: null prototype],
      requests: [Object: null prototype] {},
      sockets: [Object: null prototype] {},
      freeSockets: [Object: null prototype],
      keepAliveMsecs: 1000,
      keepAlive: true,
      maxSockets: Infinity,
      maxFreeSockets: 256,
      scheduling: 'lifo',
      maxTotalSockets: Infinity,
      totalSocketCount: 1,
      maxCachedSessions: 100,
      _sessionCache: [Object],
      [Symbol(shapeMode)]: false,
      [Symbol(kCapture)]: false
    },
    socketPath: undefined,
    method: 'POST',
    maxHeaderSize: undefined,
    insecureHTTPParser: undefined,
    joinDuplicateHeaders: undefined,
    path: '/identitytoolkit/v3/relyingparty/sendVerificationCode?key=AIzaSyCgNTZt6gzPMh-2voYXOvrt_UR_gpGl83Q',
    _ended: true,
    res: IncomingMessage {
      _events: [Object],
      _readableState: [ReadableState],
      _maxListeners: undefined,
      socket: null,
      httpVersionMajor: 1,
      httpVersionMinor: 1,
      httpVersion: '1.1',
      complete: true,
      rawHeaders: [Array],
      rawTrailers: [],
      joinDuplicateHeaders: undefined,
      aborted: false,
      upgrade: false,
      url: '',
      method: null,
      statusCode: 400,
      statusMessage: 'Bad Request',
      client: [TLSSocket],
      _consuming: true,
      _dumped: false,
      req: [Circular *1],
      _eventsCount: 4,
      responseUrl: 'https://www.googleapis.com/identitytoolkit/v3/relyingparty/sendVerificationCode?key=AIzaSyCgNTZt6gzPMh-2voYXOvrt_UR_gpGl83Q',
      redirects: [],
      [Symbol(shapeMode)]: true,
      [Symbol(kCapture)]: false,
      [Symbol(kHeaders)]: [Object],
      [Symbol(kHeadersCount)]: 26,
      [Symbol(kTrailers)]: null,
      [Symbol(kTrailersCount)]: 0
    },
    aborted: false,
    timeoutCb: null,
    upgradeOrConnect: false,
    parser: null,
    maxHeadersCount: null,
    reusedSocket: true,
    host: 'www.googleapis.com',
    protocol: 'https:',
    _redirectable: Writable {
      _events: [Object],
      _writableState: [WritableState],
      _maxListeners: undefined,
      _options: [Object],
      _ended: true,
      _ending: true,
      _redirectCount: 0,
      _redirects: [],
      _requestBodyLength: 180,
      _requestBodyBuffers: [],
      _eventsCount: 3,
      _onNativeResponse: [Function (anonymous)],
      _currentRequest: [Circular *1],
      _currentUrl: 'https://www.googleapis.com/identitytoolkit/v3/relyingparty/sendVerificationCode?key=AIzaSyCgNTZt6gzPMh-2voYXOvrt_UR_gpGl83Q',
      [Symbol(shapeMode)]: true,
      [Symbol(kCapture)]: false
    },
    [Symbol(shapeMode)]: false,
    [Symbol(kCapture)]: false,
    [Symbol(kBytesWritten)]: 0,
    [Symbol(kNeedDrain)]: false,
    [Symbol(corked)]: 0,
    [Symbol(kOutHeaders)]: [Object: null prototype] {
      accept: [Array],
      'content-type': [Array],
      'x-client-version': [Array],
      'x-ios-bundle-identifier': [Array],
      'accept-language': [Array],
      'user-agent': [Array],
      'x-firebase-locale': [Array],
      'x-firebase-gmpid': [Array],
      'content-length': [Array],
      'accept-encoding': [Array],
      host: [Array]
    },
    [Symbol(errored)]: null,
    [Symbol(kHighWaterMark)]: 16384,
    [Symbol(kRejectNonStandardBodyWrites)]: false,
    [Symbol(kUniqueHeaders)]: null
  },
  data: {
    error: { code: 400, message: 'OPERATION_NOT_ALLOWED', errors: [Array] }
  }
}
{
  error: { code: 400, message: 'OPERATION_NOT_ALLOWED', errors: [ [Object] ] }
}
{
  code: 400,
  message: 'OPERATION_NOT_ALLOWED',
  errors: [
    {
      message: 'OPERATION_NOT_ALLOWED',
      domain: 'global',
      reason: 'invalid'
    }
  ]
}

On toofake.lol I now get an error again, first this one:
ERROR: FIREBASE OTP REQUEST ERROR:{"message":"Request failed with status code 400","name":"Axios Error","stack":"D@https://toofake.lol/_next/static/chunks/154-26c97a7090d4b522.js:6:26362\n6154/tT</</l/<@https://toofake.lol/_next/static/chunks/154-26c97a7090d4b522.js:6:39985\nl@https://toofake.lol/_next/static/ chunks/154-26c97a7090d4b522.js:6:40125\n","config":{"transitional":{"silentJSONParsing":true,"forcedJSONParsing":true,"clarifyTimeoutError":false},"adapter":["xhr","http"],"transformRequest":[null], "transformResponse":[null],"timeout":0,"xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF- TOKEN","maxContentLength":-1,"maxBodyLength":-1,"env":{},"headers":{"Accept":"application/json, text/plain, */*","Content-Type":"application/json"},"url":"/api/otp/fire/send","method":"post","data":"{\"number\":\"\"}"},"code":"ERR_BAD_REQUEST","status":400}
And then this one:
ERROR: VONAGE REQUEST ERROR: {"statusCode":400,"errorKey":null,"data":null,"fields":null,"timestamp":"2024-06-22T11:17:50.605Z","requestId":"4d7a22a850687fa9f66bc5565342f03c"}

I hope this can somehow help to solve the problem. Once again, it should be mentioned that I use a German (+49) number...

@s-alad s-alad changed the title Issue can Jun 22, 2024
@s-alad s-alad changed the title can can't login issue with foreign numbers Jun 22, 2024
@neviodercoole
Copy link

having the same problem also with a german number

@mats636
Copy link
Author

mats636 commented Jun 23, 2024

Any Updates on This?

@s-alad
Copy link
Owner

s-alad commented Jun 24, 2024

Are you on toofake.lol, or on one hosted on vercel? I merged N0ctus PR which may have helped. I have no issues logging in with US phone number. Have you also tried running toofake locally?

@mats636
Copy link
Author

mats636 commented Jun 24, 2024

Yes i tried to run it locally but it didnt work it seemed Like the website just didnt react

@mats636
Copy link
Author

mats636 commented Jun 25, 2024

Is there maybe an other Option to enter the Website?

@GHGEnjoyer
Copy link

Please try to fix german numbers. I think I‘m to stupid to run it locally.

@DasKekse73
Copy link

Please try to fix german numbers. I think I‘m to stupid to run it locally.

No, it also doesnt work if you run it locally. I tried a fiew Times and tried to fix it myself but i didnt find any way.

@Ein-Tim
Copy link

Ein-Tim commented Jun 26, 2024

Just a FYI: I'm using https://github.com/macedonga/beunblurred with my German number and have no problems.

@mats636
Copy link
Author

mats636 commented Jun 26, 2024

Thanks Bro Great tip it works for me aswell

@Professoroink167
Copy link

It does not work for me . It says that the international servers are down .

@blueskyy24
Copy link

Beunblurred also doesn‘t work for me. I can log in there but it says „internal server error“. Reloading the page doesn‘t help. I hope toofake will work again soon 🙏

@Professoroink167
Copy link

@s-alad please look after german Nummern its down again

@s-alad
Copy link
Owner

s-alad commented Aug 14, 2024

@s-alad please look after german Nummern its down again

Can you see if the current toofake.lol works for german please?

@Professoroink167
Copy link

@s-alad no IT doesnt work 😕

@blueskyy24
Copy link

I have good news for you, beunblurred.co seems to be working again for german numbers.

@Professoroink167
Copy link

Yes it works trank you :))

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

10 participants