Getting "Connection refused". How can I fix this?

I am getting blocked by this and can’t seem to find a resolution anywhere.

Hey Yuriy,

It looks then that your root certificates that validate our SSL certificates are expired on your computer.
They should normally be updated well before they expire through the OS updates.

To try and update the certificates manually, please follow these steps:

  • For Windows 10, please check that you are on 19044 (21H2).
    • To find out which version of Windows your device is running, press the Windows logo key + R, type winver in the Open box, and then select OK.
    • If it is lower than 19044, please run Windows Update to manually force any pending update
  • If using Mac, run the script Install Certificates.command
    • You will find this script in the Applications folder, inside the Python 3.X folder
  • For Windows/Mac/Linux
  • Reboot and try your code again