How to fix Operation Timed out - error 28? - wordpress

I'm getting this error in the Query monitor. Because of this error, the WordPress admin panel speed has been reduced. Please tell me how to fix this?
I'm using the Google Cloud and Litespeed server. The API is working correctly but maybe it's a hosting problem.

Just tried to check several settings with woo-commerce and Query monitor, this issue is possible due to the network latency. If your server is in the Asia region, the curl timeout happens easily. If we launch the server in the US region, no timeout issue.
Since 1000 milliseconds = 1 second is quite short, you might want to try the following method that I found from the Google search to avoid such issue, hope this helps.
https://kb.mailpoet.com/article/311-curl-issue-28-timeout
https://gist.github.com/sudar/4945588

Related

Receiving error code 500: Internal Server Error on insert request

We have a script updating Domain Shared Contacts for our tenant that runs every morning. Today, the insert requests started failing. Google is returning error code 500, which according to documentation is an 'unrecognized error'.
I'm not finding anything regarding an API outage currently going on, nor am I seeing anything relating to an API change taking effect today.
I recreated the request with curl hoping to get more info, but still just receive "500 Internal Server Error".
Anyone else seeing this? Anyone aware of an internal problem at Google, or an API change which just took effect?
Thanks for any help.
EDIT:
The issue seems to be resolved. Hopefully it has for others with this problem as well. Thanks to Google for addressing this.
Yes unfortunately this problem started yesterday see
Exception while adding contact in google.Internal server Error
I urge you to raise a Case with Google Support

Checking server status?

Is there a way to check the status of the Nest servers?
They appear to be down right now. Currently I'm checking by firing a GET request to:
https://developer-api.nest.com/?auth=...
Which works fine, I can just set a timeout and check the status codes.
I'm using the Firebase API (OS X) and I'm wondering, maybe there is a better way I can check? I don't see anything in their API. observeEventType:withBlock:withCancelBlock: never gets called.
Also, will the firebase observeEventType: block automatically start being called once the servers are back?
After 2 days the block appears to be lifted. I tried contacting Nest 2 days ago and I never got a reply. Perhaps they lifted the block and didn't reply, or it happened automatically.
I believe I was blocked because I was using my real account, with a real device. And obviously because I was in development I was logging in/out and changing values a lot.
I didn't realise until after the block you can create virtual devices (on a new account). More information here: https://developer.nest.com/documentation/cloud/chrome-extension
Moral of the story: use virtual devices!

Spring Security LDAP Active Directory Connection Periodically Refused

I have set up LDAP Active Directory authentication for a Spring MVC application that I am configuring. I have been able to log in, and a majority of the time authentication occurs successfully. However, every so often, I will get a Connection Refused error. The timing for this seems to be sporadic and resolves each time within ten to fifteen minutes. I have done some research and have found that other have also had this problem. However, I have not been able to find a solution or a hint as to what may be causing it. If anyone could point me in the right direction on this, it would be greatly appreciated.
I was able to get an answer to this question from a coworker. He had me switch to another server and the problem seems to be resolved. He gave me the reason that the server I had been hitting was being overloaded.

Cloudflare wait time over 20 seconds

I have been trying to find ways to speed up the load time of my site, so I have turned to CloudFlare to see if I can improve my load time.
My site is thelocalgolfer.com and I host it with hostmonster. I took three consecutive gtMetrix tests w/o cloudflare enabled and then enabled cloudflare ran three
consecutive gtMetrix tests w/ cloudflare enabled. You will see that with
cloudflare enabled it takes on average 21 seconds of wait time on the initial load. I have spent hours on the phone with hostmonster tech support trying to troubleshoot the problem and they said they have exhausted all options on their side.
Also to note when cloudflare is enabled one of the errors I have been
getting is
Error : cURL error 6: Resolving host timed out: www.thelocalgolfer.com
in the middle of the page after the page loads. The page still takes about 21 seconds
Try it yourself I still have it enabled (for now).
Here are the gtmetrix results with CloudFlare enabled:
http://gtmetrix.com/reports/www.thelocalgolfer.com/C3Yv7xNW
http://gtmetrix.com/reports/www.thelocalgolfer.com/Y35wcjzO
http://gtmetrix.com/reports/www.thelocalgolfer.com/x82tUdhH
Without Cloudflare enabled:
http://gtmetrix.com/reports/www.thelocalgolfer.com/NevlWuVV
http://gtmetrix.com/reports/www.thelocalgolfer.com/GDiEPUnG
http://gtmetrix.com/reports/www.thelocalgolfer.com/CcuvxYdq
By the way I have gone back and forth with CloudFlare and they have been less than helpful, they tell me to tweak this option or that option, and they take 24-48 hours to respond.
I am hoping that someone has experience with this issue and can help me out!
Thanks,
Neil
I actually posted some information in your support ticket relative to the issue. Doing a curl against the www record, with no CloudFlare in the middle, is returning a very large response time.
So for anyone that runs in to a similar problem, I was running simplepie on my site which was causing a loopback situation where the page was calling an RSS feed on the same domain.

WordPress running strangely slow! 20+ seconds and hosts says it's not them

I ran this report: http://tools.pingdom.com/fpt/#!/EOYhTHcoT/http://woollymammoth.co.uk
Its the main example.com that is taking ages to load nothing else. Has anyone else had this problem before? I've tried setting up cloudflare but it didn't make much of a difference!
You have a database connect or query delay. (Guessing connect).
Raw file http://woollymammoth.co.uk/license.txt always loads < 1 second.
But anything with a database query is delayed every few requests, like the RSS feed: http://woollymammoth.co.uk/feed/
I can only guess what kind of setup you have here, but it's time to troubleshoot that. Make a simple script outside of WP that connects to the db, and time it.
Conventional troubleshooting tips:
Instead of a mysql/db hostname, change the data source to an IP address
If db is running under your control, start it with --skip-name-resolve option
Check to make sure your mysql server isn't logging queries
If this is hosted on a windows machine, make sure mysql connection isn't trying netbios name/connect first
The content to load form your site is too much probably more than 2MB. So first load time is expected to be more. But if you run your site on google page insights. It gets a pretty decent score of 93, which is actually awesome. So nothing to worry.
https://developers.google.com/speed/pagespeed/insights#url=http_3A_2F_2Fwoollymammoth.co.uk&mobile=false

Resources