"is-contact" returning "" when getting user via utk
Hi,
I have a custom form which makes a POST request to HubSpot’s form submission endpoint. The request is successful per a 204 status code returned.
Directly after the post request is made, the page makes a GET request to HubSpot’s contact retrieval endpoint via utk. The FIRST time that request is made, “is-contact” is empty. If I make the same request AGAIN then “is-contact” is 1.
I tried setting a sleep() in my script to see if HubSpot had some sort of delay, but this does not fix the problem.
Does anyone know why I would be getting “is-contact” as NULL for the first request, and then TRUE directly after it if I make an identical request?
"is-contact" returning "" when getting user via utk
@pmanca It’s odd though, if I make the same request consecutively it always works properly the second time even if there’s not a significant time in between the two requests.