Legacy Dev Forum Posts

 View Only

Sign Up

Illegal character while sending SMS in Arabic through IVR

  • 1.  Illegal character while sending SMS in Arabic through IVR

    Posted 06-05-2025 18:41

    husseinco | 2019-05-12 14:10:07 UTC | #1

    Hi All,

    I'm facing an issue with Data action in the sense when I'm trying to send an SMS in English it's sending smoothly, but when I try to send in Arabic it keep giving me the below error even though it's working on Postman

    any help on how to solve this issue would be appreciated.

    Regards,

    Hussein


    tim.smith | 2019-05-13 13:30:38 UTC | #2

    Can you provide an example of the request you're sending with the characters that are causing the problem? Also, can you provide the correlation ID as text and not a screenshot?


    husseinco | 2019-05-13 13:57:46 UTC | #3

    Here is the request I'm sending https://www.alfa-cell.com/api/msgSend.php?apiKey=XXXXXXXXXXXX&numbers=966xxxxxxxxx&sender=XXXX&msg=رسالة تجريبية&applicationType=68&lang=3&returnJson=1

    { "status": 400, "code": "bad.request", "message": "The request could not be understood by the server due to malformed syntax.", "messageParams": {}, "contextId": "142b5253-c7f2-4315-ac6e-e47f1e9b232d", "details": [ { "errorCode": "ACTION.PROCESSING" } ], "errors": [ { "status": 400, "code": "BAD_REQUEST", "message": "Failed due to malformed requestUrlTemplate. Illegal character in query at index 124: https://www.alfa-cell.com/api/msgSend.php?apiKey=XXXXXXXXXXXX&numbers=966xxxxxxxxx&sender=XXXX&msg=رسالة تجريبية&applicationType=68&lang=3&returnJson=1", "messageParams": {}, "details": [], "errors": [] } ] }

    And here is my request Config

    { "requestUrlTemplate": "https://www.alfa-cell.com/api/msgSend.php?apiKey=XXXXXXXXXXXX&numbers=966${input.PhoneNumber}&sender=Xxxx&msg=${input.Message}&applicationType=68&lang=3&returnJson=1", "requestType": "POST", "headers": { "UserAgent": "PureCloudIntegrations/1.0", "Content-Type": "application/json; charset=UTF-8" }, "requestTemplate": "${input.rawRequest}" }

    as for the Content-Type I also tried to use application/x-www-form-urlencoded, charset=iso-8859-6 but nothing worked.

    Thanks


    tim.smith | 2019-05-13 15:48:57 UTC | #4

    BPIVR-1761 has been opened for this issue. The back end isn't handling extended character sets correctly. Assuming this is a priority for you, please open a case with PureCloud Care and reference BPIVR-1761 to help with prioritization.


    husseinco | 2019-05-13 15:56:43 UTC | #5

    @tim.smith thanks for your efforts, I'll update the ticket now.


    husseinco | 2019-05-13 17:37:47 UTC | #7

    @Greg_Cunningham, Thank you very much, it's now working like a charm.


    system | 2019-06-13 17:37:49 UTC | #8

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 5133