• Resolved hoakinn25

    (@hoakinn25)


    Hello.
    Please tell me what could be the problem.
    On 4 sites at once, the plugin stopped working with an error message:

    EMPTY api-answer: No JSON received – is the API down? Check the URL you use in the shortcode!
    Debug info:
    DEBUG:Cache is NOT active
    DEBUG:try to retieve this url: my-url
    DEBUG: wp_remote_get to my-url
    DEBUG: arguments: Array ( [timeout] => 5 )
    DEBUG: error getting URL:cURL error 60: SSL certificate problem: certificate has expired
    DEBUG: use fallback2cache: 3
    DEBUG: fallback2cache failed: no cached JSON found
    DEBUG: no data received: check url of json-feed`
    EMPTY api-answer: No JSON received – is the API down? Check the URL you use in the shortcode!

    The message says there is a problem with the certificate.
    I have verified the certificate at https://www.sslshopper.com. Things are good.
    I wrote to the hosting technical support. They said there were no problems with the certificate.

    NOTE. I replaced the URL strings in DEBUG info with my-url for security reasons.

    • This topic was modified 2 years, 6 months ago by hoakinn25.
Viewing 10 replies - 1 through 10 (of 10 total)
  • I have the same problem. The plugin is no longer working. The error message is: “The API response is empty: No JSON received – is the API interface available? Please check the URL in the shortcode!”

    However, I can retrieve and process data if I specify only http instead of https in the URL of the data page. In this case, the data will be displayed.

    What I was able to determine is that the data-supplying page uses a certificate from Let’s Encrypt. Perhaps this information will help to solve the problem: https://medstack.zendesk.com/hc/en-us/articles/4407795913620-2021-09-30-Let-s-Encrypt-CA-Certificate-Expiry

    Is an update of the plugin necessary?

    Thread Starter hoakinn25

    (@hoakinn25)

    Thanks for the information.
    As I understand it, this problem only affects users using outdated operating systems who access the site with SSL Let’s Encrypt installed.
    More specifically, the problem concerns older devices that use:
    – Android <2.3.6
    – iOS <10
    – Windows <XP SP3

    But at the moment, the plugin throws an error on the newest devices.

    I can call up the data directly via the Firefox browser and also display it there if I enter the URL directly. Only when I retrieve the data via the plugin do I get an empty file.
    My current OS is Linux with kernel 5.14. I also get no data under Android 11.

    Thread Starter hoakinn25

    (@hoakinn25)

    Have you tried replacing the SSL certificate? For example Positive SSL.
    I don’t know if this will help or does the plugin still need to be updated? Waiting for the author’s answer.

    Same in my case, when I replace “https” to “http” the plugin works fine.

    Thread Starter hoakinn25

    (@hoakinn25)

    Yes, this is a temporary solution. I also replaced direct links from https to http in shortcode. At least it will be possible to save the network of sites from decreasing traffic. But the problem is that with such a solution, some browsers swear at sites with an insecure connection.

    Thread Starter hoakinn25

    (@hoakinn25)

    Hello everyone again. The hosting tech support solved the problem as follows.
    !!! Make a copy of the file just in case

    STEP 1. Open file

    wp-includes/certificates/ca-bundle.crt

    STEP 2. Remove the problematic certificate, namely (that’s an example. content is more. I deleted some of the text)

    +DST Root CA X3
    +==============
    +-----BEGIN CERTIFICATE-----
    +MIIDSjCCAjKgAwIBAgIQRK+wgNajJ7qJMDmGLvhAazANBgkqhkiG9w0BAQUFADA/MSQwIgYDVQQK
    +ExtEaWdpdGFsIFNpZ25hdHVyZSBUcnVzdCBDby4xFzAVBgNVBAMTDkRTVCBSb290IENBIFgzMB4X
    +DTAwMDkzMDIxMTIxOVoXDTIxMDkzMDE0MDExNVowPzEkMCIGA1UEChMbRGlnaXRhbCBTaWduYXR1
    +cmUgVHJ1c3QgQ28uMRcwFQYDVQQDEw5EU1QgUm9vdCBDQSBYMzCCASIwDQYJKoZIhvcNAQEBBQAD
    +-----END CERTIFICATE-----
    Plugin Author berkux

    (@berkux)

    Hi,

    sorry for the this time not that fast reply.
    The plugin uses the WordPress-function wp_remote_get to get the JSON from the URL. This WordPress-function is the PHP function which checks the validity of the https-TLS-certificate by default, see
    https://developer.wordpress.org/reference/functions/wp_remote_get/
    There sslverify is switched on by default.
    So if an error like “SSL certificate problem: certificate has expired” shows, either the PHP or the SSL do not match to get a successful verification.
    The solution here is to check the Certificates and the PHP-install.

    In the next free pluginversion I’ll add a way to switch off sslverify. If you able to edit the sourcecode you might search for wp_remote_get in the pluginsource and add the switch off of sslverify in the options there.

    Bernhard

    Hello,

    I saw the that the WordPress Team is aware of the problem. See here:
    https://core.trac.wordpress.org/ticket/54207

    Maybe they will fix it with the upcoming version 5.8.2

    Plugin Author berkux

    (@berkux)

    Hello,

    the new version 1.3.13 has a switch in it’s options to switch off the sslverify in case of need…

    Bernhard

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘EMPTY api-answer: No JSON received – is the API down? Check the URL you use in t’ is closed to new replies.