Courriel d'erreur cron #7

Closed
opened 2023-10-16 15:03:35 +02:00 by neox · 0 comments
Owner

Depuis le 14/02/2023, réception quotidienne d'un courriel d'erreur cron :

De : root@gestion.a-lec.org
Pour : tresorier@gestion.a-lec.org
Date : Thu, 16 Feb 2023 06:00:12 +0100 (CET)
Sujet : Cron <tresorier@gestion> cd ~/gestion/controle_cotisation && ./main.py 1> /dev/null

Traceback (most recent call last):
  File "/home/tresorier/gestion/controle_cotisation/./main.py", line 438, in <module>
    main()
  File "/home/tresorier/gestion/controle_cotisation/./main.py", line 419, in main
    check_expired_unpaid()
  File "/home/tresorier/gestion/controle_cotisation/./main.py", line 265, in check_expired_unpaid
    expired_members = gestion_get_expired()
  File "/home/tresorier/gestion/controle_cotisation/./main.py", line 129, in gestion_get_expired
    [ str(x["id_user"]) for x in gestion_read(request_expired)["results"]]
  File "/home/tresorier/gestion/controle_cotisation/./main.py", line 68, in gestion_read
    return response.json()
  File "/usr/lib/python3/dist-packages/requests/models.py", line 900, in json
    return complexjson.loads(self.text, **kwargs)
  File "/usr/lib/python3.9/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.9/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.9/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0
```)
Depuis le 14/02/2023, réception quotidienne d'un courriel d'erreur cron : ``` De : root@gestion.a-lec.org Pour : tresorier@gestion.a-lec.org Date : Thu, 16 Feb 2023 06:00:12 +0100 (CET) Sujet : Cron <tresorier@gestion> cd ~/gestion/controle_cotisation && ./main.py 1> /dev/null Traceback (most recent call last): File "/home/tresorier/gestion/controle_cotisation/./main.py", line 438, in <module> main() File "/home/tresorier/gestion/controle_cotisation/./main.py", line 419, in main check_expired_unpaid() File "/home/tresorier/gestion/controle_cotisation/./main.py", line 265, in check_expired_unpaid expired_members = gestion_get_expired() File "/home/tresorier/gestion/controle_cotisation/./main.py", line 129, in gestion_get_expired [ str(x["id_user"]) for x in gestion_read(request_expired)["results"]] File "/home/tresorier/gestion/controle_cotisation/./main.py", line 68, in gestion_read return response.json() File "/usr/lib/python3/dist-packages/requests/models.py", line 900, in json return complexjson.loads(self.text, **kwargs) File "/usr/lib/python3.9/json/__init__.py", line 346, in loads return _default_decoder.decode(s) File "/usr/lib/python3.9/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib/python3.9/json/decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0 ```)
neox self-assigned this 2023-10-16 15:03:35 +02:00
neox closed this issue 2023-10-16 15:03:35 +02:00
Sign in to join this conversation.
No description provided.