var chkFindVid = await getVidByemail(email); async function getVidByemail(email) { try { let users = await hubspot.contacts.getByEmail(email); return users.vid; } catch (err) { return 0; } }
Above is functio to find VID base on Email
Now our functionalyu Like Our Customer Fill Form in HS landing page after submit redirect another page and another page we display new form that form is our 3rd party site, so, that page use fill and submit we call above fucntion and pass that email and find base on that Email VID and VID find then we store in our DB
But some time VID Blank retrun
This happen only some time
That function Daily Approx 3k+ time call but that happen approx daily 8-10 customer
So, can you look like your API in daily some second stop or crash.
OR can you check like some time After fill form and submit HS take some mnt to add customer in HS system.
WHen email : testödemo@icloud.com , so this case also error like StatusCodeError: 400 - <h1>Bad Message 400</h1><pre>reason: Bad Request</pre>