GET request http action workflow issue

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • 3rdtec
    Junior Member
    • Sep 2020
    • 10

    GET request http action workflow issue

    Hi, I have an issue with a GET request sent as http action via espocrm workflow.

    In Espo log I get the following error:

    ERROR: Workflow[603001599ded29982]: Action failed [sendRequest] with cid [0], details: Workflow: Send Request action: 0 response.. [] []

    but if I send the request via any web browser it works, as you can see in the screenshot attached.

    The url contains 2 parameters: "user_api_hash" and "lang"

    Can anyone help me understand what is the problem and how I can solve it?

    Thank you
    Attached Files
  • Maximus
    Senior Member
    • Nov 2018
    • 2731

    #2
    Hello,
    Please provide more info:
    1. What is your Advanced Pack version?
    2. Screenshots with the Workflow configurations (Send Request action).

    Comment

    • yuri
      Member
      • Mar 2014
      • 8484

      #3
      You can try to debug in application/Espo/Modules/Advanced/Core/Workflow/Actions/SendRequest.php.
      If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

      Comment

      • 3rdtec
        Junior Member
        • Sep 2020
        • 10

        #4
        The Advanced Pack version is 2.7.0
        Attached Files

        Comment

        • yuri
          Member
          • Mar 2014
          • 8484

          #5
          Make sure you have curl extension installed.
          If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

          Comment

          • 3rdtec
            Junior Member
            • Sep 2020
            • 10

            #6
            Curl is installed
            Attached Files

            Comment

            • 3rdtec
              Junior Member
              • Sep 2020
              • 10

              #7
              Hello, the problem has been bypassed adding "curl_setopt($ch, \CURLOPT_SSL_VERIFYPEER, false);" into SendRequest.php file. Thank you for your help.

              Comment

              Working...