• Resolved fun0

    (@fun0)


    When enable Cache REST API option.
    Reset Api will return 500. but response looks like well
    If I disable this option. everything working fine!

    LiteSpeed Cache
    Version 2.9.9.2

    Wordpress
    Version 5.3.2

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

    (@qtwrk)

    Hi,

    Could you please check PHP error log and see if there is anything ?

    Best regards,

    I am having the exact same problem, cannot run my app with the Cache REST API option switched on.

    GET https://www.domain.org/wp-json/wp/v2/cpt/?per_page=100 is passing 500 error
    to the browser, and the error.log is saying:

    WARN lsapi Module:Cache vary request header "Origin" not defined!

    Just loading the URL in browser window works..

    App is running off same domain, so cannot see how it could be CORs?

    How was this resolved? Any help appreciated.

    Thanks

    Hello,

    Same issue here. The API request works fine it’s just the status throws 500.
    Why is this happening?

    Thanks!
    Istvan

    Updating openlitespeed web server fixed this for me. If I remember correctly, the shell command was something like lsup.sh

    Hi @twobyte, thanks for your response.
    I updated LS but the issue still persists for me.

    Error.log & Access.log don’t show any signs of errors dough.
    @qtwrk Can you please let me know what direction to proceed in detecting where the issue is.

    Thanks!
    Istvan

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    sorry , kind of forget what was the issue.

    I think it was openlitespeed issue and update to latest should fix it

    /usr/local/lsws/admin/misc/lsup.sh -e 1.7.7

    Best regards,

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Cache REST API enable returned 500 error’ is closed to new replies.