Viewing 15 replies - 1 through 15 (of 18 total)
  • Plugin Author Kuba Mikita

    (@kubitomakita)

    Can you share the configuration and describe desired effect?

    Thread Starter asbell

    (@asbell)

    I have your notification plugin triggering and then sending to another application using Json. I will post snapshots of the configuration. the support people at the other application are telling me that it’s only coming in as text

    Plugin Author Kuba Mikita

    (@kubitomakita)

    Hmm, it may missing the content type header.

    Please can you define a header: Content-Type: application/json and see?

    Thread Starter asbell

    (@asbell)

    Payload
    {“cid”:”25640″,”permalink”:”https:\/\/halfgenius.wpengine.com\/referral-agent-library\/”,”slug”:”referral-agent-library”,”title”:”AGENT \u2013 Referral Agent Library”,”excerpt”:””,”modified”:”August 26, 2018 6:01 pm”,”source_type”:”page”,”source”:”wp_putp”}

    See request detail here

    Thread Starter asbell

    (@asbell)

    Here is what the support people at the receiving app side said about the request
    _____________

    Checked by details your workflows, and found some different issues in different parts as following:

    Please check the payload, as the payload is not json, I pushed a json payload as following in order for you to have a working example:

    {

    ‘cid’: ‘25640’,

    ‘permalink’: ‘https:\/\/halfgenius.wpengine.com\/referral-agent-library\/’,

    ‘slug’: ‘referral-agent-library’,

    ‘title’: ‘AGENT \u2013 Referral Agent Library’,

    ‘excerpt’: ‘short’,

    ‘modified’: ‘August 26, 2018 6:01 pm’,

    ‘source_type’: ‘page’,

    ‘source’: ‘wp_putp’

    }

    And The excerpt field was empty

    Thread Starter asbell

    (@asbell)

    Here is what I copied from the receiving app

    THIS WAS IN THE HEADER
    ———————-
    {
    ‘content-type’: [
    ‘application\/x-www-form-urlencoded’
    ],
    ‘content-length’: [
    ‘391’
    ],
    ‘connection’: [
    ‘close’
    ],
    ‘referer’: [
    ‘https:\/\/putp.flexie.io\/listener\/f719b3e223c19a79954a540742605fb2\/5027ca5a586ae33703becf03d4beb5e9’
    ],
    ‘accept-encoding’: [
    ‘deflate, gzip’
    ],
    ‘accept’: [
    ‘*\/*’
    ],
    ‘user-agent’: [
    ‘WordPress\/4.9.8; https:\/\/halfgenius.wpengine.com’
    ],
    ‘host’: [
    ‘putp.flexie.io’
    ]
    }

    THIS WAS IN THE PAYLOAD
    ———————-
    {
    ‘{\’cid\’:\’28882\’,\’permalink\’:\’https:\\\/\\\/halfgenius_wpengine_com\\\/?post_type’: ‘topics’,
    ‘#038;p’: ‘28882\’,\’slug\’:\’future-what-if-i-dont-want-to-fix-everything-before-selling-do-i-have-to-fix-everything\’,\’title\’:\’FUTURE: What if I don\\u2019t want to fix everything before selling? Do I have to fix everything?\’,\’excerpt\’:\’\’,\’modified\’:\’August 25, 2018 9:07 am\’,\’source_type\’:\’topics\’,\’source\’:\’wp_putp\’}’
    }

    Plugin Author Kuba Mikita

    (@kubitomakita)

    Thread Starter asbell

    (@asbell)

    I added the header in my first example.

    Plugin Author Kuba Mikita

    (@kubitomakita)

    Then I don’t see the problem. You are sending encoded, escaped json in the payload as well as the content header.

    Why they cannot receive it?

    Thread Starter asbell

    (@asbell)

    They do receive it it’s just received in a format that is not Json

    Plugin Author Kuba Mikita

    (@kubitomakita)

    Can you paste the payload in the code tags, please?

    Or send it to https://bracketspace.com/extras/webhook/sabi.php so I could see by myself

    Thread Starter asbell

    (@asbell)

    Thread Starter asbell

    (@asbell)

    Ok I just submitted a notification update, and
    here is the video of me doing that

    Thread Starter asbell

    (@asbell)

    Here is a link to the video of the shortcode not working

    Plugin Author Kuba Mikita

    (@kubitomakita)

    Please paste the static URL and then send the Webhook. Because shortcodes are not rendering in this field, it hasn’t been sent.

    Also please keep the content in related threads. Shortcode issue has been acknowledged and will be fixed.

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘Configured for but not sending in JSON’ is closed to new replies.