La fonction de suggestion automatique permet d'affiner rapidement votre recherche en suggérant des correspondances possibles au fur et à mesure de la frappe.
Looking at the apache access log on my server no request is ever received via my target url https://test.yourdolphin.com/unsubscribe/fromhs.php yet if you go directly to that url in a browser it's just fine. The SSL vertificate on the server is valid and in date.
// use key 'http' even if you send the request to https://... $options = array( 'http' => array( 'header' => "Content-type: application/x-www-form-urlencoded\r\n", 'method' => 'POST', 'content' => http_build_query($data) ), "ssl"=>array( "verify_peer"=>false, "verify_peer_name"=>false ) ); $context = stream_context_create($options); $result = file_get_contents($url, false, $context);
var_dump($result); ?>
I modified my endpoint script for the webhook to echo "OK!", it also writes the result of print_r($_POST) into a log file.
Running the test script above the var_dump($result) prints ' string(3) "OK!"' so its getting that response. The print_r($_POST) in my enpoint script is correctly showing:-
@NFortin You could also use Postman to test what happens when you send a POST request. You could temporarily set the webhook to point to https://webhook.site/ where you can get a unique URL to send the POST request to. In Postman, you could than simulate the POST request to your endpoint to analyze the response.
Learn more about HubSpot by following me on LinkedIn or YouTube
✅ Did my answer solve your issue? Help the community by marking it as the solution.
Hi @NFortin , Any HTTP response should work. Best to send just a default HTTP response with a success or error message. Remember, when you open the URL through your browser, it is a GET request. A HubSpot webhook sends a POST request with an object attached. My best guess is to set a HTTP response and check if your file handles the POST requests correctly.
Learn more about HubSpot by following me on LinkedIn or YouTube
✅ Did my answer solve your issue? Help the community by marking it as the solution.
My endpoint script does not send a response, what response is required? However the endpoint is never reached, no incoming requests from Hubspot are present in the apache2 log file.
A webhook shows that result in the history page of the workflow when it has not received a valid response. In my case I had to set a valid HTTP response in order to debug the issue a bit further. In your case, it seems as if the URL is never reached, but just to be sure, could you check if you send a response when a 'POST' is made to the file?
Learn more about HubSpot by following me on LinkedIn or YouTube
✅ Did my answer solve your issue? Help the community by marking it as the solution.