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?