Q: Error in a specific token FCM Notification Python I have a program that sends notifications to an Android application where the FCM Notifications service is running.
Everything works fine with the 30 tokens that I have except with a specific token that the program throws the error shown below.
The program is make in Python 3.9.
The only thing I see is that the target cell phone has an old version (Android 6.0), but I don't know if it is responsible for the error.
Test Program:
from pyfcm import FCMNotification

def enviar_notificacion():
    push_service = FCMNotification(api_key="********************************")
    registration_id = "token-id*****"
  
    # Envia notificacion
    return push_service.notify_single_device(registration_id=registration_id, message_title="Test Notification", message_body="This is a notification for testing")

enviar_notificacion()

Error:
Traceback (most recent call last):
  File "C:\Users\***\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Users\***\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "c:\Users\***\.vscode\extensions\ms-python.python-2022.6.2\pythonFiles\lib\python\debugpy\launcher\__main__.py", line 97, in <module>
    main()
  File "c:\Users\***\.vscode\extensions\ms-python.python-2022.6.2\pythonFiles\lib\python\debugpy\launcher\__main__.py", line 53, in main
    launcher.connect(host, port)
  File "c:\Users\***\.vscode\extensions\ms-python.python-2022.6.2\pythonFiles\lib\python\debugpy\launcher/../..\debugpy\launcher\__init__.py", line 34, in connect
    sock.connect((host, port))
ConnectionRefusedError: [WinError 10061] No se puede establecer una conexión ya que el equipo de destino denegó expresamente dicha conexión

