sumithemmadi / truecallerjs

TruecallerJS: This is a library for retrieving phone number details using the Truecaller API.
http://truecaller.js.org/
MIT License
506 stars 105 forks source link

(-bs) Request failed with status code 400( #68

Open Cadburyash opened 8 months ago

Cadburyash commented 8 months ago

While performing bulk search truecallerjs -bs +91xxxxxxxxxx,+91xxxxxxxxxx

message : Request failed with status code 400 name : AxiosError stack : AxiosError: Request failed with status code 400 at settle (file:///C:/Users/cadbu/AppData/Roaming/npm/node_modules/truecallerjs/node_modules/axios/lib/core/settle.js:19:12) at IncomingMessage.handleStreamEnd (file:///C:/Users/cadbu/AppData/Roaming/npm/node_modules/truecallerjs/node_modules/axios/lib/adapters/http.js:585:11) at IncomingMessage.emit (node:events:526:35) at endReadableNT (node:internal/streams/readable:1359:12) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) 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; charset=UTF-8 accept-encoding : gzip user-agent : Truecaller/11.75.5 (Android;10) Authorization : Bearer a1i0---k21CQBk8-rVvMODDcGJMOgSRinWBUAR25Eb8S75Aju6H241qTj75KfHP- params : countryCode : IN type : 4 locAddr : placement : SEARCHRESULTS,HISTORY,DETAILS encoding : json method : get url : https://search5-noneu.truecaller.com/v2/search code : ERR_BAD_REQUEST status : 400

image

Cadburyash commented 8 months ago

With an extra space before the second parameter it shows name of first number>>

image

abhishek03690 commented 5 months ago

Is that problem fixed? If it is then, please tell me how to solve it for single number only.

HalibHack commented 1 month ago

did u found something