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

login not working with num #109

Open
Vaunter501 opened this issue Sep 11, 2024 · 0 comments
Open

login not working with num #109

Vaunter501 opened this issue Sep 11, 2024 · 0 comments

Comments

@Vaunter501
Copy link

when I am trying to add my num to login it gives this long error.

node:internal/process/promises:391
triggerUncaughtException(err, true /* fromPromise */);
^
AxiosError: getaddrinfo ENOTFOUND account-asia-south1.truecaller.com
at AxiosError.from (file:///usr/local/lib/node_modules/truecallerjs/node_modules/axios/lib/core/AxiosError.js:92:14)
at RedirectableRequest.handleRequestError (file:///usr/local/lib/node_modules/truecallerjs/node_modules/axios/lib/adapters/http.js:620:25)
at RedirectableRequest.emit (node:events:519:28)
at eventHandlers. (/usr/local/lib/node_modules/truecallerjs/node_modules/follow-redirects/index.js:49:24)
at ClientRequest.emit (node:events:519:28)
at emitErrorEvent (node:_http_client:108:11)
at TLSSocket.socketErrorListener (node:_http_client:511:5)
at TLSSocket.emit (node:events:519:28)
at emitErrorNT (node:internal/streams/destroy:169:8)
at emitErrorCloseNT (node:internal/streams/destroy:128:3)
at Axios.request (file:///usr/local/lib/node_modules/truecallerjs/node_modules/axios/lib/core/Axios.js:45:41)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async login (file:///usr/local/lib/node_modules/truecallerjs/dist/login.js:78:17)
at async runCLI (file:///usr/local/lib/node_modules/truecallerjs/dist/cli.js:152:28) {
hostname: 'account-asia-south1.truecaller.com',
syscall: 'getaddrinfo',
code: 'ENOTFOUND',
errno: -3008,
config: {
transitional: {
silentJSONParsing: true,
forcedJSONParsing: true,
clarifyTimeoutError: false
},
adapter: [ 'xhr', 'http', 'fetch' ],
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
env: {
FormData: [Function: FormData] {
LINE_BREAK: '\r\n',
DEFAULT_CONTENT_TYPE: 'application/octet-stream'
},
Blob: [class Blob]
},
validateStatus: [Function: validateStatus],
headers: Object [AxiosHeaders] {
Accept: 'application/json, text/plain, /',
'Content-Type': 'application/json; charset=UTF-8',
'accept-encoding': 'gzip',
'user-agent': 'Truecaller/11.75.5 (Android;10)',
clientsecret: 'lvc22mp3l1sfv6ujg83rd17btt',
'Content-Length': '387'
},
method: 'post',
url: 'https://account-asia-south1.truecaller.com/v2/sendOnboardingOtp',
data: '{"countryCode":"PK","dialingCode":92,"installationDetails":{"app":{"buildVersion":5,"majorVersion":11,"minorVersion":7,"store":"GOOGLE_PLAY"},"device":{"deviceId":"qv30aqu2wf4ebs5t","language":"en","manufacturer":"Oppo","model":"Oppo Reno 4 Pro","osName":"Android","osVersion":"10","mobileServices":["GMS"]},"language":"en"},"phoneNumber":"3195164384","region":"region-2","sequenceNo":2}'
},
request: <ref *3> Writable {
_events: {
close: undefined,
error: [Function: handleRequestError],
prefinish: undefined,
finish: undefined,
drain: undefined,
response: [Function: handleResponse],
socket: [Function: handleRequestSocket]
},
_writableState: WritableState {
highWaterMark: 16384,
length: 0,
corked: 0,
onwrite: [Function: bound onwrite],
writelen: 0,
bufferedIndex: 0,
pendingcb: 0,
[Symbol(kState)]: 17580812,
[Symbol(kBufferedValue)]: null
},
_maxListeners: undefined,
_options: {
maxRedirects: 21,
maxBodyLength: Infinity,
protocol: 'https:',
path: '/v2/sendOnboardingOtp',
method: 'POST',
headers: [Object: null prototype] {
Accept: 'application/json, text/plain, /',
'Content-Type': 'application/json; charset=UTF-8',
'accept-encoding': 'gzip',
'user-agent': 'Truecaller/11.75.5 (Android;10)',
clientsecret: 'lvc22mp3l1sfv6ujg83rd17btt',
'Content-Length': '387'
},
agents: { http: undefined, https: undefined },
auth: undefined,
family: undefined,
beforeRedirect: [Function: dispatchBeforeRedirect],
beforeRedirects: { proxy: [Function: beforeRedirect] },
hostname: 'account-asia-south1.truecaller.com',
port: '',
agent: undefined,
nativeProtocols: {
'http:': {
_connectionListener: [Function: connectionListener],
METHODS: [
'ACL', 'BIND', 'CHECKOUT',
'CONNECT', 'COPY', 'DELETE',
'GET', 'HEAD', 'LINK',
'LOCK', 'M-SEARCH', 'MERGE',
'MKACTIVITY', 'MKCALENDAR', 'MKCOL',
'MOVE', 'NOTIFY', 'OPTIONS',
'PATCH', 'POST', 'PROPFIND',
'PROPPATCH', 'PURGE', 'PUT',
'REBIND', 'REPORT', 'SEARCH',
'SOURCE', 'SUBSCRIBE', 'TRACE',
'UNBIND', 'UNLINK', 'UNLOCK',
'UNSUBSCRIBE'
],
STATUS_CODES: {
'100': 'Continue',
'101': 'Switching Protocols',
'102': 'Processing',
'103': 'Early Hints',
'200': 'OK',
'201': 'Created',
'202': 'Accepted',
'203': 'Non-Authoritative Information',
'204': 'No Content',
'205': 'Reset Content',
'206': 'Partial Content',
'207': 'Multi-Status',
'208': 'Already Reported',
'226': 'IM Used',
'300': 'Multiple Choices',
'301': 'Moved Permanently',
'302': 'Found',
'303': 'See Other',
'304': 'Not Modified',

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

1 participant