• Resolved aguadap

    (@aguadap)


    Hi Ironikus, thank you very much for this great plugin.
    I am having problems connecting the plugin to an external email marketing application (https://encharge.io/).
    When I try to map the data and save it, I get the message “error while saving. Unsupported Unicode escape sequence”.
    I contacted the application’s customer service and they tell me that the problem is caused by a specific field.
    They ask me if the WP Webhooks plugin allows me to change the name of the field.
    Is that possible?
    Do you know how I could solve this problem?
    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Ironikus

    (@ironikus)

    Hey @aguadap – Thank you very much for your message.
    It’s surely solvable, the only question is how. ??

    To help you further, it’ll be great if you can let me know if the field is a subfield, on the first layer, or somewhere else.
    Depending on where it is located and how it looks like, I’ll be able to share more details.
    Thank you already very much.

    Thread Starter aguadap

    (@aguadap)

    Hi @ironikus ,
    sorry for not responding sooner, I didn’t get the reply notification.
    I really don’t know how to answer your question, sorry :/
    What I can do is show you what WP webhooks generates and the line that Encharge say is causing problems.
    This is what WP Webhooks shows me:

    {
      "data": {
        "ID": "2721",
        "user_login": "usertest",
        "user_pass": "$P$xxxxxxxx",
        "user_nicename": "usertest",
        "user_email": "[email protected]",
        "user_url": "",
        "user_registered": "2021-06-11 19:52:11",
        "user_activation_key": "",
        "user_status": "0",
        "display_name": "User Test"
      },
      "ID": 2721,
      "caps": {
        "candidate": true
      },
      "cap_key": "wpnw_capabilities",
      "roles": [
        "candidate"
      ],
      "allcaps": {
        "read": true,
        "edit_posts": false,
        "delete_posts": false,
        "candidate": true
      },
      "filter": null,
      "\u0000WP_User\u0000site_id": 1,
      "user_meta": {
        "nickname": [
          "User"
        ],
        "first_name": [
          "User"
        ],
        "last_name": [
          "Test"
        ],
        "description": [
          ""
        ],
        "rich_editing": [
          "true"
        ],
        "syntax_highlighting": [
          "true"
        ],
        "comment_shortcuts": [
          "false"
        ],
        "admin_color": [
          "fresh"
        ],
        "use_ssl": [
          "0"
        ],
        "show_admin_bar_front": [
          "true"
        ],
        "locale": [
          ""
        ],
        "wpnw_capabilities": [
          "a:1:{s:9:\"candidate\";b:1;}"
        ],
        "wpnw_user_level": [
          "0"
        ],
        "_yoast_wpseo_profile_updated": [
          "1623441131"
        ],
        "phone": [
          ""
        ],
        "twitter": [
          ""
        ],
        "facebook": [
          ""
        ],
        "linkedin": [
          ""
        ],
        "instagram": [
          ""
        ],
        "youtube": [
          ""
        ],
        "skype": [
          ""
        ],
        "whatsapp": [
          ""
        ],
        "last_update": [
          "1623441131"
        ],
        "dismissed_wp_pointers": [
          ""
        ],
        "session_tokens": [
          "a:1:{s:64:\"xxxxxxxxx\";a:4:{s:10:\"expiration\";i:1623613931;s:2:\"ip\";s:13:\"84.127.162.30\";s:2:\"ua\";s:114:\"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36\";s:5:\"login\";i:1623441131;}}"
        ]
      }
    }

    And the Encharge people told me:
    “It seems the issue is coming from this field:
    “\u0000WP_User\u0000site_id”
    Would you check if the WP Webhooks plugin allows you to change the name of this field?”

    I don’t know if this information is enough for you to help me. If you need more information, please, let me know.
    Thanks!

    Plugin Contributor Ironikus

    (@ironikus)

    Hey @aguadap – Thanks for the update. Can you please let me know if you use the latest version of our plugin?

    If you want to alter that specific value, you can write some lines of code for re-formatting the data using the following filter: https://wp-webhooks.com/docs/knowledge-base/filter-webhook-trigger-data/

    Within the pro version of our plugin, we also offer a data mapping template that you can use to alter and/or remove specific fields from the response. This could also solve the problem.

    Do let me know in case you have any further questions.

    Thread Starter aguadap

    (@aguadap)

    Thanks @ironikus

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘error while saving. Unsupported Unicode escape sequence’ is closed to new replies.