• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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