• Resolved justina93

    (@justina93)


    Hi,
    Im trying to enable QUIC.cloud services on my new website but when I click on “Enable QUIC.cloud services”, I receive the error:

    Failed to communicate with QUIC.cloud server: Unknown error: unknown [server] https://wpapi.quic.cloud [service] tool/wp_rest_echo

    Your WP REST API seems blocked our QUIC.cloud server calls.

    I would greatly appreciate your help.

    WP Version: 6.7.2 version

    LiteSpeed Cache Version: 7.0.0.1 

    Thank you!

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 18 total)
  • Plugin Support qtwrk

    (@qtwrk)

    please add this code to your theme’s functions.php

    function ip_check_callback() {
    $data = array(
    'remote_ip' => $_SERVER['REMOTE_ADDR'] ?? 'Null',
    'x_forwarded_for' => $_SERVER['HTTP_X_FORWARDED_FOR'] ?? 'Null',
    'proxy_remote_addr' => $_SERVER['PROXY_REMOTE_ADDR'] ?? 'Null'
    );

    return rest_ensure_response($data);
    }

    function register_ip_check_route() {
    register_rest_route('lscwp', '/ip-check', array(
    'methods' => 'GET',
    'callback' => 'ip_check_callback'
    ));
    }

    add_action('rest_api_init', 'register_ip_check_route');

    this code will create an API endpoint for us to check

    please let us know when you have done it

    Thread Starter justina93

    (@justina93)

    Added.

    Plugin Support qtwrk

    (@qtwrk)

    your domain is giving me 500 error ? please verify

    Thread Starter justina93

    (@justina93)

    Try again please.

    Plugin Support qtwrk

    (@qtwrk)

    please remove above code

    then go to LiteSpeed Cache -> toolbox -> debug setting, set debug log to ON, debug level to adanvce , debug include URI, put rest_route=/litespeed

    then go to toolbox -> log view -> clean up existing log if any

    then try to connect again

    if it still fails, go to log view again , copy paste and share log via https://pastebin.ubuntu.com/

    Thread Starter justina93

    (@justina93)

    Done.

    Plugin Support qtwrk

    (@qtwrk)

    log please?

    Thread Starter justina93

    (@justina93)

    There is no log in Log View. I changed all settings as you said:
    https://i.ibb.co/F4NgmKqX/error1.jpg

    • This reply was modified 1 month ago by justina93.
    • This reply was modified 1 month ago by justina93.
    Plugin Support qtwrk

    (@qtwrk)

    I just send a request to it , do you see the log ?

    Thread Starter justina93

    (@justina93)

    Plugin Support qtwrk

    (@qtwrk)

    add litespeed_type=activate into the debug include URI, alone with previous URL

    and try activate QC service again , see if it generates any log

    and please clean up existing log

    Thread Starter justina93

    (@justina93)

    Ready.

    Plugin Support qtwrk

    (@qtwrk)

    no , i mean , try to enable the qc service again , in litespeed cache -> general page

    Thread Starter justina93

    (@justina93)

    Failed to communicate with QUIC.cloud server: Unknown error: unknown [server] https://wpapi.quic.cloud [service] tool/wp_rest_echo

    Your WP REST API seems blocked our QUIC.cloud server calls.

    No log in Log View.

    • This reply was modified 1 month ago by justina93.
    • This reply was modified 1 month ago by justina93.
    Plugin Support qtwrk

    (@qtwrk)

    you have weird case

    please create a ticket by mail to support at litespeedtech.com with reference link to this topic , we will investigate further

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘Failed to communicate with QUIC.cloud server WP REST API’ is closed to new replies.