Open soulhd opened 1 month ago
Hi soulhd, thanks for taking the time to report this issue and helping improve the project!
Could I confirm that you’ve followed the documentation to provide the full phone number, including the country code, as shown in the example?
const chiwa = require('@akane_chiwa/getcontact-web-js');
(async () => {
try {
// You MUST provide the complete number along with the country code.
const phoneNumber = '+6285701203115';
const tags = await chiwa.getAllTags(phoneNumber);
console.log(tags);
} catch (error) {
console.error('Error fetching tags:', error);
}
})();
If you’ve already done this and are still experiencing the error, it could be due to our limit on GetContact searches being reached. Please let me know if this helps or if you’re seeing something different on your end. Thanks again for bringing this up!
Ok, I did anything right and I just double checked. I'll restart my project from beginning maybe tonight.
Oh and I even studied your module briefly, the getAllTags
seems to be posting request using header like you'd have when you call it from the web app by chrome browser, right? I did copying the request as curl from chrome's inspect panel and pasted it into terminal changing phoneNumber data, turned out that if you never query any phone number through the web app before, you'll never get the tags from requesting that way. CMIIW. I don't know how, IMHO I think the code should use selenium or anything to mimick real chrome browser
I installed your module and succeeded running ypur example:
chiwa.authenticateWithToken(token)
andchiwa.getNumberTag(phoneNumber, countryCode)
, but when I ranchiwa.getAllTags(phoneNumber)
it returned:Please help.