Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

6.2 Rest API 401 #652

Open
xyzulu opened this issue Apr 24, 2024 · 15 comments
Open

6.2 Rest API 401 #652

xyzulu opened this issue Apr 24, 2024 · 15 comments

Comments

@xyzulu
Copy link

xyzulu commented Apr 24, 2024

I have resolved this by rolling back to v6.1, but v6.2 (clean install) gives me a 401 error hitting this page: /wp-json/litespeed/v1/token

I'm on OLS, but this appears all plugin related.

@qtwrk
Copy link
Contributor

qtwrk commented Apr 24, 2024

changelog:

Cloud REST callback used ACL for QC ips validation.

@xyzulu
Copy link
Author

xyzulu commented Apr 24, 2024

I understand your words, but not how they help to resolve the issue on 6.2

I’m not able to have a new api key generated if I use 6.2

@hi-hai
Copy link
Collaborator

hi-hai commented Apr 24, 2024

It is caused by IPv6 issue. We have updated the QC side to v4 to fix this issue. Please try it again. Thanks

@xyzulu
Copy link
Author

xyzulu commented Apr 24, 2024

Thank you, I will report back if there are an further issues.

@xyzulu xyzulu changed the title 6.2 Reset API 401 6.2 Rest API 401 Apr 24, 2024
@xyzulu
Copy link
Author

xyzulu commented Apr 25, 2024

I've tried this again on a new site.. using 6.2.1 and I see the same behaviour as before.. (can't reach callback url.. check firewall etc). Rolled back to 6.1, requested domain key.. all good.

Am I missing something here?

PS This was a completely different site I tried this time.

@tjwebmaster
Copy link

I got the same problem. Disabled all plugins and checked if REST API is enabled. Rolled back to 6.1 and now it is working again.

@xyzulu
Copy link
Author

xyzulu commented May 22, 2024

Yes, this behaviour still persists on 6.2 (fails). There is a discussion here on the issue too: https://wordpress.org/support/topic/cant-generate-quic-cloud-key-with-litespeed-6-2/

(up to 3 pages now)

@qtwrk
Copy link
Contributor

qtwrk commented May 22, 2024

if your site is behind proxy ,like a CDN service , and server didn't configure properly to forward the IP , like PHP only sees proxy server IP , instead of true client IP , it could also lead to IP verification failed

@xyzulu
Copy link
Author

xyzulu commented May 22, 2024

@qtwrk my sites are.. as are most people's. What options do we have to work around this change that was made in 6.2 (things worked fine before).

I run sites behind Cloudflare in docker containers. Visitor IP can be correctly retrieved from the X-Forwarded-For header. Shouldn't Litespeed WP cache be using this? Something has changed in 6.2.. but I'm not a developer.. only a systems admin.

@qtwrk
Copy link
Contributor

qtwrk commented May 22, 2024

please go to LiteSpeed WebAdmin Console > Configuration > General Settings and set Use Client IP in Header to Trusted IP Only

@tjwebmaster
Copy link

I think a lot of people don't have access to the WebAdmin console (including me) so that cant be the solution right?

@jstubbs34
Copy link

Ok, so we are having the same issue. Before 6.2 everything was working fine but now none of our customers can get domain keys and even rolling back the plugin to 6.1 doesn't get the domain key. I'm not sure what you guys did but it worked now it doesn't and yes our LiteSpeed has Use Client IP in Header set to Trusted IP Only. This is pretty frustrating because nothing we have tried is working and our customers are getting pissed which is totally understandable considering things were working fine until whatever you changed broke everything. It's almost worth dropping LiteSpeed and just rolling out nginx with Bunny CDN because this is just crazy to break so many servers and to piss off so many customers over some change concerning IP's. Like the saying goes if it isn't broken don't try to fix it. LiteSpeed ran fine now it's just an expensive software that does nothing I can use a free software like nginx and get the same result and pocket the cash we are spending on LSWS.

@qtwrk
Copy link
Contributor

qtwrk commented Jun 7, 2024

if you still have issue on v6.1 , then it must be something else gets the way

please create a ticket , we will check further

@jstubbs34
Copy link

if you still have issue on v6.1 , then it must be something else gets the way

please create a ticket , we will check further

Not sure how that could be considering the accounts on that server we all connected to QUIC.cloud until version 6.2 now none connect rolling back. Nothing about the server was changed so if nothing about the server has changed and everything worked fine until 6.2 then not sure what else could get in the way. Also the plugin seems to me malfunctioning because even the debug logs don't appear when enabled.

@leandrocastro
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants