• Dear Pleskians! The Plesk Forum will be undergoing scheduled maintenance on Monday, 7th of July, at 9:00 AM UTC. The expected maintenance window is 2 hours.
    Thank you in advance for your patience and understanding on the matter.

Question Scheduler giving error - WARNING: Unable to fetch url:(API URL) WARNING: Exception calling "GetResponse" with "0" argument(s): "The remote server ret

naimisar

New Pleskian
Server operating system version
Microsoft Windows Server 2022
Plesk version and microupdate number
Plesk Obsidian 18.0.65 Update #2
Hi Team,
I am getting following error while my scheduler run. Same setup was working fine previously but now giving error.

WARNING: Unable to fetch url: (API URL)
WARNING: Exception calling "GetResponse" with "0" argument(s): "The remote server returned an error: (500) Internal

API working fine while i am execute individual.

Thanks and regards,
naimisar
 
Hello, @naimisar. What you can try is increasing the execution time by navigating to the %plesk_dir%Additional\Scheduler folder and opening fetch_url.ps1. Add webRequest.timeout variable with value of 60000 in the Try block to the script:

...
Try {
[System.Net.ServicePointManager]::ServerCertificateValidationCallback = {$true}
$webRequest = [net.WebRequest]::Create($url)
$webRequest.timeout = 60000;
...

I hope that helps.
 
Back
Top