SMS sending entering in loop

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • muulox
    Member
    • Jan 2022
    • 59

    #1

    SMS sending entering in loop

    Hello,
    I’ve been experiencing a very strange issue for 5 days with sending SMS messages through RDS-RCS. I don’t know where the problem could be coming from—possibly from an update (I updated EspoCRM and all modules) or something else. I should mention that I haven’t modified the SMS code.
    WHAT I TRIED:
    1. I disabled the cron job.
    2. I disabled all workflows.
    3. I performed a restore from 4 days ago when everything was working perfectly on the entire VM.
    4. I asked RDS-RCS if they had modified the API, but their answer was negative—they didn’t change anything.

    What I observed:
    When an SMS is sent for 2FA authentication, it sends only one SMS. But when I try to send an SMS from a workflow, it sends n SMS messages —continuously—until RDS-RCS cuts off the sending after 20 messages, because it goes into a loop.

    Simple buton sms sending, I integrated a simple code to check if the variables were to blame, but even with this code, the SMS is sent in a loop to a single phone number.

    PHP Code:
    $body 'test sms2';
    $phoneNumber '+40747995968';

    $smsId record\create(
        
    'Sms',
        
    'to'$phoneNumber,
        
    'body'$body
    );

    ext\sms\send($smsId);​ 
    After i press the send sms button i recive an error500, and in the log dosent recive any specific error for the error 500, only the sms was sent 20 times, this log x20.
    See the log:
    Error "{"jsonrpc":"2.0","id":1,"result":{"messageId" :"10 42a79566f","operator":"Orange","errorCode":0,"erro rMessage":""}}\n" Astăzi 18:59
    Error "HTTP/1.1 200 \r\nX-Content-Type-Options: nosniff\r\nX-XSS-Protection: 1; mode=block\r\nCache-Control: no-cache, no-store, max-age=0, must-revalidate\r\nPragma: no-cache\r\nExpires: 0\r\nStrict-Transport-Security: max-age=31536000 ; includeSubDomains\r\nX-Frame-Options: DENY\r\nContent-Type: application/json-rpc\r\nContent-Length: 114\r\nDate: Tue, 08 Jul 2025 15:59:42 GMT\r\n\r\n{"jsonrpc":"2.0","id":1,"result":{"mess ageId":"1042a79566f","operator":"Orange","errorCod e":0,"errorMessage":""}}\n"
    What could be the cause of the SMS sending process entering a loop?
    I also have other workflow buttons, such as sending emails or generating PDFs, but none of them go into a loop—only the SMS sending does.

    Thank you!
    Attached Files
  • muulox
    Member
    • Jan 2022
    • 59

    #2
    debug error log:
    PHP Code:
    E_DEPRECATEDEspo\Modules\Voip\Bases\Base::__construct(): Implicitly marking parameter $container as nullable is deprecatedthe explicit nullable type must be used instead Astăzi 19:33 Notice E_DEPRECATEDEspo\Modules\Voip\Tools\PhoneNumber\Formatter\Util::parse(): Implicitly marking parameter $phoneNumber as nullable is deprecatedthe explicit nullable type must be used instead Astăzi 19:33 Notice E_DEPRECATEDEspo\Modules\Voip\Bases\IManager::sendMessage(): Implicitly marking parameter $options as nullable is deprecatedthe explicit nullable type must be used instead Astăzi 19:33 Notice E_DEPRECATEDEspo\Modules\Voip\Bases\IManager::handleMessage(): Implicitly marking parameter $messageData as nullable is deprecatedthe explicit nullable type must be used instead Astăzi 19:33 Notice E_DEPRECATEDEspo\Modules\Voip\Bases\IManager::handleEvent(): Implicitly marking parameter $eventData as nullable is deprecatedthe explicit nullable type must be used instead Astăzi 19:33 Notice E_DEPRECATEDEspo\Modules\Voip\Bases\Manager::handleMessage(): Implicitly marking parameter $messageData as nullable is deprecatedthe explicit nullable type must be used instead Astăzi 19:33 Notice E_DEPRECATEDEspo\Modules\Voip\Bases\Manager::handleEvent(): Implicitly marking parameter $eventData as nullable is deprecatedthe explicit nullable type must be used instead Astăzi 19:33 Notice E_DEPRECATEDEspo\Modules\Voip\Bases\Manager::sendMessage(): Implicitly marking parameter $options as nullable is deprecatedthe explicit nullable type must be used instead   Error   "{"jsonrpc":"2.0","id":1,"result":{"messageId":"1041cfbc142","operator":"Orange","errorCode":0,"errorMessage":""}}\n" Astăzi 19:33   Error   "HTTP/1.1 200 \r\nX-Content-Type-Options: nosniff\r\nX-XSS-Protection: 1; mode=block\r\nCache-Control: no-cache, no-store, max-age=0, must-revalidate\r\nPragma: no-cache\r\nExpires: 0\r\nStrict-Transport-Security: max-age=31536000 ; includeSubDomains\r\nX-Frame-Options: DENY\r\nContent-Type: application/json-rpc\r\nContent-Length: 114\r\nDate: Tue, 08 Jul 2025 16:33:22 GMT\r\n\r\n{"jsonrpc":"2.0","id":1,"result":{"messageId":"1041cfbc142","operator":"Orange","errorCode":0,"errorMessage":""}}\n" Astăzi 19:33   Debug   Workflow 68666c6907e9f0f10executeFormulaStartcid 0CInterventie 6787976a5d3bea8d0 Astăzi 19:33   Debug   Workflow 68666c6907e9f0f10Start actionsAstăzi 19:33 

    Comment

    Working...