Configured for but not sending in JSON
-
My webhooks are configured to send JSON but are only sending text
-
Hi Kuba. I did that as youasked before, but I will do it now since you are active right now. Give me a second. I will send it to https://bracketspace.com/extras/webhook/sabi.php
So I should have just triggered 6 notification webhooks.
1) Update WITH explicit Content-Type: application/json in header
2) Draft WITHOUT explicit Content-Type: application/json in header
3) Publish WITHOUT explicit Content-Type: application/json in header
4) Update WITH explicit Content-Type: application/json in header
5) Draft WITH explicit Content-Type: application/json in header
6) Publish WITH explicit Content-Type: application/json in headerThanks, this is what I got:
Array ( [date] => 2018-09-01 14:47:14 [headers] => Array ( [X-Forwarded-Proto] => https [X-Forwarded-Protocol] => https [X-Real-IP] => 35.193.95.153 [X-Forwarded-For] => 35.193.95.153 [X-Client-Ip] => 35.193.95.153 [Host] => bracketspace.com [Connection] => close [Content-Length] => 259 [User-Agent] => WordPress/4.9.8; https://halfgenius.wpengine.com [Accept] => */* [Accept-Encoding] => deflate, gzip [Referer] => https://bracketspace.com/extras/webhook/sabi.php [Content-Type] => application/json ) [request] => Array ( ) [post] => Array ( ) [get] => Array ( ) ) Array ( [date] => 2018-09-01 14:47:24 [headers] => Array ( [X-Forwarded-Proto] => https [X-Forwarded-Protocol] => https [X-Real-IP] => 35.193.95.153 [X-Forwarded-For] => 35.193.95.153 [X-Client-Ip] => 35.193.95.153 [Host] => bracketspace.com [Connection] => close [Content-Length] => 249 [User-Agent] => WordPress/4.9.8; https://halfgenius.wpengine.com [Accept] => */* [Accept-Encoding] => deflate, gzip [Referer] => https://bracketspace.com/extras/webhook/sabi.php [Content-Type] => application/x-www-form-urlencoded ) [request] => Array ( [{"cid":"25640","permalink":"https:\/\/halfgenius_wpengine_com\/?page_id] => 25640","slug":"referral-agent-library","title":"AGENT \u2013 Referral Agent Library","excerpt":"","modified":"September 1, 2018 8:47 am","source_type":"page","source":"wp_putp"} ) [post] => Array ( [{"cid":"25640","permalink":"https:\/\/halfgenius_wpengine_com\/?page_id] => 25640","slug":"referral-agent-library","title":"AGENT \u2013 Referral Agent Library","excerpt":"","modified":"September 1, 2018 8:47 am","source_type":"page","source":"wp_putp"} ) [get] => Array ( ) ) Array ( [date] => 2018-09-01 14:47:25 [headers] => Array ( [X-Forwarded-Proto] => https [X-Forwarded-Protocol] => https [X-Real-IP] => 35.193.95.153 [X-Forwarded-For] => 35.193.95.153 [X-Client-Ip] => 35.193.95.153 [Host] => bracketspace.com [Connection] => close [Content-Length] => 249 [User-Agent] => WordPress/4.9.8; https://halfgenius.wpengine.com [Accept] => */* [Accept-Encoding] => deflate, gzip [Referer] => https://bracketspace.com/extras/webhook/sabi.php [Content-Type] => application/json ) [request] => Array ( ) [post] => Array ( ) [get] => Array ( ) ) Array ( [date] => 2018-09-01 14:47:36 [headers] => Array ( [X-Forwarded-Proto] => https [X-Forwarded-Protocol] => https [X-Real-IP] => 35.193.95.153 [X-Forwarded-For] => 35.193.95.153 [X-Client-Ip] => 35.193.95.153 [Host] => bracketspace.com [Connection] => close [Content-Length] => 259 [User-Agent] => WordPress/4.9.8; https://halfgenius.wpengine.com [Accept] => */* [Accept-Encoding] => deflate, gzip [Referer] => https://bracketspace.com/extras/webhook/sabi.php [Content-Type] => application/x-www-form-urlencoded ) [request] => Array ( [{"cid":"25640","permalink":"https:\/\/halfgenius_wpengine_com\/referral-agent-library\/","slug":"referral-agent-library","title":"AGENT_\u2013_Referral_Agent_Library","excerpt":"","modified":"September_1,_2018_8:47_am","source_type":"page","source":"wp_putp"}] => ) [post] => Array ( [{"cid":"25640","permalink":"https:\/\/halfgenius_wpengine_com\/referral-agent-library\/","slug":"referral-agent-library","title":"AGENT_\u2013_Referral_Agent_Library","excerpt":"","modified":"September_1,_2018_8:47_am","source_type":"page","source":"wp_putp"}] => ) [get] => Array ( ) ) Array ( [date] => 2018-09-01 14:49:19 [headers] => Array ( [X-Forwarded-Proto] => https [X-Forwarded-Protocol] => https [X-Real-IP] => 35.193.95.153 [X-Forwarded-For] => 35.193.95.153 [X-Client-Ip] => 35.193.95.153 [Host] => bracketspace.com [Connection] => close [Content-Length] => 259 [User-Agent] => WordPress/4.9.8; https://halfgenius.wpengine.com [Accept] => */* [Accept-Encoding] => deflate, gzip [Referer] => https://bracketspace.com/extras/webhook/sabi.php [Content-Type] => application/json ) [request] => Array ( ) [post] => Array ( ) [get] => Array ( ) ) Array ( [date] => 2018-09-01 14:49:27 [headers] => Array ( [X-Forwarded-Proto] => https [X-Forwarded-Protocol] => https [X-Real-IP] => 35.193.95.153 [X-Forwarded-For] => 35.193.95.153 [X-Client-Ip] => 35.193.95.153 [Host] => bracketspace.com [Connection] => close [Content-Length] => 249 [User-Agent] => WordPress/4.9.8; https://halfgenius.wpengine.com [Accept] => */* [Accept-Encoding] => deflate, gzip [Referer] => https://bracketspace.com/extras/webhook/sabi.php [Content-Type] => application/json ) [request] => Array ( ) [post] => Array ( ) [get] => Array ( ) ) Array ( [date] => 2018-09-01 14:49:28 [headers] => Array ( [X-Forwarded-Proto] => https [X-Forwarded-Protocol] => https [X-Real-IP] => 35.193.95.153 [X-Forwarded-For] => 35.193.95.153 [X-Client-Ip] => 35.193.95.153 [Host] => bracketspace.com [Connection] => close [Content-Length] => 249 [User-Agent] => WordPress/4.9.8; https://halfgenius.wpengine.com [Accept] => */* [Accept-Encoding] => deflate, gzip [Referer] => https://bracketspace.com/extras/webhook/sabi.php [Content-Type] => application/json ) [request] => Array ( ) [post] => Array ( ) [get] => Array ( ) ) Array ( [date] => 2018-09-01 14:49:35 [headers] => Array ( [X-Forwarded-Proto] => https [X-Forwarded-Protocol] => https [X-Real-IP] => 35.193.95.153 [X-Forwarded-For] => 35.193.95.153 [X-Client-Ip] => 35.193.95.153 [Host] => bracketspace.com [Connection] => close [Content-Length] => 259 [User-Agent] => WordPress/4.9.8; https://halfgenius.wpengine.com [Accept] => */* [Accept-Encoding] => deflate, gzip [Referer] => https://bracketspace.com/extras/webhook/sabi.php [Content-Type] => application/json ) [request] => Array ( ) [post] => Array ( ) [get] => Array ( ) )
As you can see it’s valid JSON and correct header is present
- This reply was modified 6 years, 2 months ago by Steven Stern (sterndata).
- This reply was modified 6 years, 2 months ago by Kuba Mikita. Reason: Changed bitly link to direct one
- The topic ‘Configured for but not sending in JSON’ is closed to new replies.