Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved API request to Wordpress (unmanaged) app received through the browser but not through our warehouse system(program)

    Support
    wordpress networking
    2
    8
    295
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • V
      vova last edited by girish

      Hello,

      Yesterday I have migrated a WordPress site (Woocommerce) from testing shared hosting to my VPS with Cloudron. The migration was smooth, with a plugin suggested by some members in the forum. However, the requests that update product data from our warehouse system to the Wordpress site doesn't work anymore. The request still pass when sent through the browser.

      Maybe you will have some info that might help me solve this, because I can't really find the problem.

      1 Reply Last reply Reply Quote 0
      • girish
        girish Staff last edited by

        @vova Does your WP instance get the request at all? If it doesn't then, a start would be to check what error you are getting in the code where you are making the request. For example, is it a HTTP error (then it's cloudron related) or a network error (then it's related to networking or maybe DNS is taking it's time to propagate).

        1 Reply Last reply Reply Quote 0
        • V
          vova last edited by vova

          The request goes through Talend HTTP API tester (the Chrome plugin) without any problems.

          But through the .net app it shows this error on the screen, like 1-2 sec after I click the start button.

          However, it works on the shared host, before the migration - we have tested it many times there.

          2020-05-20_20-10-28.jpg

          1 Reply Last reply Reply Quote 0
          • girish
            girish Staff last edited by

            @vova This does look like some networking issue between the Cloudron installation and the .net app.

            In the .net app machine, can you check if you can visit your WP install via the browser? Assuming you can, this is probably a TLS related issue . Can you try the solution in https://stackoverflow.com/questions/22627977/the-underlying-connection-was-closed-an-unexpected-error-occurred-on-a-send ? Cloudron does not support SSL3/TLS1/TLS1.1 since they are insecure. You have to use TLS1.2 atleast. Most likely your old shared hosting was using old TLS versions.

            1 Reply Last reply Reply Quote 1
            • girish
              girish Staff last edited by

              Maybe https://blog.darrenjrobinson.com/powershell-the-underlying-connection-was-closed-an-unexpected-error-occurred-on-a-send/ also helps

              1 Reply Last reply Reply Quote 1
              • V
                vova last edited by

                @girish said in API request to Wordpress (unmanaged) app received through the browser but not through our warehouse system(program):

                SSL3/TLS1/TLS1.1

                Thanks, I will check this because the active protocols for the shared host are: tcp, udp, unix, udg, ssl, tls, tlsv1.0, tlsv1.1, tlsv1.2.

                Probably the connection between the net app and the site was < tls1.2 and it was still supported by the shared host.

                girish 1 Reply Last reply Reply Quote 0
                • girish
                  girish Staff @vova last edited by

                  @vova said in API request to Wordpress (unmanaged) app received through the browser but not through our warehouse system(program):

                  Probably the connection between the net app and the site was < tls1.2 and it was still supported by the shared host.

                  Yes, please let me know if your suspicion is correct.

                  V 1 Reply Last reply Reply Quote 0
                  • V
                    vova @girish last edited by

                    @girish So, it was the TLS. Changed it to 1.2 and the requests went smooth and fast. Thanks for the tips 🙂

                    1 Reply Last reply Reply Quote 2
                    • First post
                      Last post
                    Powered by NodeBB