Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Egorkin Posted November 6, 2022 Posted November 6, 2022 (edited) When I try to update, I get a timeout from the server: Quote IPS\Http\Request\CurlException::28: https://remoteservices.invisionpower.com/upgrade/107034-107404/emailTemplates/?version=107034&apps=core,forums,calendar&alpha= Connection timed out after 10001 milliseconds From the browser, this URL gives JSON normally. Why? I can upgrade via SSH from the distribution, if anything... 🙄 Edited November 6, 2022 by Egorkin
Randy Calvert Posted November 7, 2022 Posted November 7, 2022 You would need to troubleshoot this with your host as it’s a problem with your server directly communicating with IPS servers. Your computer is using different networks and most likely different firewalls.
Egorkin Posted November 27, 2022 Author Posted November 27, 2022 (edited) <?php error_reporting(E_ALL); $url = "https://remoteservices.invisionpower.com/connectionCheck/?version=107404"; //$user_agent = 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); //curl_setopt($ch, CURLOPT_USERAGENT, $user_agent); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_NOBODY, 0); curl_setopt($ch, CURLOPT_TIMEOUT, 30); $res = curl_exec($ch); curl_close($ch); var_dump ($res); /* string(919) " 403 ERROR The request could not be satisfied. Request blocked. We can't connect to the server for this app or website at this time. There might be too much traffic or a configuration error. Try again later, or contact the app or website owner. If you provide content to customers through CloudFront, you can find steps to troubleshoot and help prevent this error by reviewing the CloudFront documentation. Generated by cloudfront (CloudFront) Request ID: 7JVC__LseKvtRPzSm0JN3LVG1JdtUxwrXQS1h0-8bFTQJc9Po93dFw== " */ But if I enable $user-agent, I immediately get the correct answer. Edited November 27, 2022 by Egorkin
Marc Posted November 29, 2022 Posted November 29, 2022 User agent must indeed be included with any request to our servers
Recommended Posts