diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 29b2dcc..aa7ee03 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -1,12 +1,14 @@ - + + + + - - - + + @@ -429,7 +431,6 @@ - @@ -454,6 +455,7 @@ - \ No newline at end of file diff --git a/Activite.py b/Activite.py index 2af8997..dac5f6c 100644 --- a/Activite.py +++ b/Activite.py @@ -2,7 +2,7 @@ Ce fichier defini les comment les activités sont gérées Par principe, une activié peut etre faite par plusieurs entités (client, partner, user, etc). Donc à l'image des contact, on va gerer la notion de : -- relected_collection +- related_collection - relected_recid - type (email, call, meeting, cmd, devis, autre), - Description @@ -45,7 +45,7 @@ def Add_activite(diction): Verification des input acceptés """ field_list = ['token', "description", "detail", "deadline", "type", - "status", 'related_collection_recid', 'related_collection_recid', ] + "status", 'related_collection', 'related_collection_owner_email', ] incom_keys = diction.keys() for val in incom_keys: @@ -57,7 +57,7 @@ def Add_activite(diction): """ Verification des champs obligatoires """ - field_list_obligatoire = ['token', "email", 'related_collection', 'related_collection_recid',] + field_list_obligatoire = ['token', 'related_collection', 'related_collection_owner_email',] for val in field_list_obligatoire: if val not in diction: @@ -106,12 +106,25 @@ def Add_activite(diction): description = diction['description'] data['description'] = diction['description'] + if(len(str(description)) > 255 ): + mycommon.myprint( + str(inspect.stack()[0][3]) + " - Le champ 'description' doit faire moins de 255 caractères ") + + return False, " - Le champ 'description' doit faire moins de 255 caractères " + + detail = "" if ("detail" in diction.keys()): if diction['detail']: detail = diction['detail'] data['detail'] = diction['detail'] + if (len(str(detail)) > 500): + mycommon.myprint( + str(inspect.stack()[0][3]) + " - Le champ 'detail' doit faire moins de 500 caractères ") + + return False, " - Le champ 'detail' doit faire moins de 500 caractères " + deadline = "" if ("deadline" in diction.keys()): if diction['deadline']: @@ -126,12 +139,15 @@ def Add_activite(diction): return False, " - La date deadline n'est pas au format jj/mm/aaaa " - adr_adresse = "" - if ("adr_adresse" in diction.keys()): - if diction['adr_adresse']: - adr_adresse = diction['adr_adresse'] - data['adr_adresse'] = diction['adr_adresse'] + status = "" + if ("status" in diction.keys()): + status = diction['status'] + data['status'] = diction['status'] + if (status not in MYSY_GV.ACTIVITE_STATUS): + mycommon.myprint( + "- Le statut " + str(status) + " n'est pas autorisé ") + return False, "- Le statut " + str(status) + " n'est pas autorisé " type = "" if ("type" in diction.keys()): @@ -153,13 +169,23 @@ def Add_activite(diction): "- La collection " + str(related_collection) + " n'accepte pas d' activite ") return False, "- La collection " + str(related_collection) + " n'accepte pas d' activite " + if ("related_collection_owner_email" in diction.keys()): + related_collection_owner_email = str(diction['related_collection_owner_email']) + """ + Recuperation du recid associé au related_collection_owner_email dans la collection : related_collection + """ + # print(" #### on cherche le recid du mail "+ str(related_collection_owner_email)+" dans la collection "+str(diction['related_collection'])+" ." ) + local_tmp_val = MYSY_GV.dbname[str(diction['related_collection'])].find_one( + {'email': related_collection_owner_email}) + if (local_tmp_val is None or "recid" not in local_tmp_val.keys()): + mycommon.myprint( + str(inspect.stack()[0][3]) + " - impossible de recuperer les données de " + str( + related_collection_owner_email) + " dans la collection " + str(diction['related_collection'])) + return False, str(inspect.stack()[0][3]) + " - impossible de recuperer les données de " + str( + related_collection_owner_email) + " dans la collection " + str( + diction['related_collection']) + " . " - related_collection_recid = "" - if ("related_collection_recid" in diction.keys()): - if diction['related_collection_recid']: - related_collection_recid = diction['related_collection_recid'] - data['related_collection_recid'] = diction['related_collection_recid'] - + data['related_collection_recid'] = str(local_tmp_val['recid']) data['valide'] = '1' data['locked'] = '0' @@ -177,7 +203,7 @@ def Add_activite(diction): return False, " Impossible de créer l'activité " - return True, " L'activité a été correctement créé" + return True, " L'activité a été correctement créée" except Exception as e: exc_type, exc_obj, exc_tb = sys.exc_info() @@ -200,7 +226,7 @@ def Update_activite(diction): Verification des input acceptés """ field_list = ['token', "description", "detail", "deadline", "type", - "status",'related_collection_recid', 'related_collection_recid', ] + "status",'activite_recid' ] incom_keys = diction.keys() @@ -213,7 +239,7 @@ def Update_activite(diction): """ Verification des champs obligatoires """ - field_list_obligatoire = ['token', 'related_collection', 'related_collection_recid' ] + field_list_obligatoire = ['token', 'activite_recid' ] for val in field_list_obligatoire: if val not in diction: @@ -253,9 +279,8 @@ def Update_activite(diction): nom, ou la meme adresse email """ - qry_update = {'valide': '1', 'partner_recid': str(my_partner['recid']), - 'related_collection':str(diction['related_collection']), - 'related_collection_recid':str(diction['related_collection_recid'])} + qry_update = {'valide': '1', 'locked':'0', 'partner_recid': str(my_partner['recid']), + 'recid':str(diction['activite_recid']),} @@ -285,15 +310,46 @@ def Update_activite(diction): description = diction['description'] data_update['description'] = diction['description'] + if (len(str(description)) > 255): + mycommon.myprint( + str(inspect.stack()[0][3]) + " - Le champ 'description' doit faire moins de 255 caractères ") + + return False, " - Le champ 'description' doit faire moins de 255 caractères " + detail = "" if ("detail" in diction.keys()): detail = diction['detail'] data_update['detail'] = diction['detail'] + if (len(str(detail)) > 500): + mycommon.myprint( + str(inspect.stack()[0][3]) + " - Le champ 'detail' doit faire moins de 500 caractères ") + + return False, " - Le champ 'detail' doit faire moins de 500 caractères " + + deadline = "" + if ("deadline" in diction.keys()): + if diction['deadline']: + deadline = diction['deadline'] + data_update['deadline'] = diction['deadline'] + + local_status = mycommon.CheckisDate(deadline) + if (local_status is False): + mycommon.myprint( + str(inspect.stack()[0][3]) + " - La date deadline n'est pas au format jj/mm/aaaa ") + + return False, " - La date deadline n'est pas au format jj/mm/aaaa " + + + status = "" if ("status" in diction.keys()): status = diction['status'] data_update['status'] = diction['status'] + if (status not in MYSY_GV.ACTIVITE_STATUS): + mycommon.myprint( + "- Le statut " + str(status) + " n'est pas autorisé ") + return False, "- Le statut " + str(status) + " n'est pas autorisé " type = "" if ("type" in diction.keys()): @@ -304,24 +360,6 @@ def Update_activite(diction): "- Le type d' activite " + str(type) + " n'est pas autorisé") return False, "- Le type d' activite " + str(type) + " n'est pas autorisé" - related_collection = "" - if ("related_collection" in diction.keys()): - related_collection = diction['related_collection'] - data_update['related_collection'] = diction['related_collection'] - if (related_collection not in MYSY_GV.ACTIVITE_COLLECTION): - mycommon.myprint( - "- La collection " + str(related_collection) + " n'accepte pas d' activite ") - return False, "- La collection " + str(related_collection) + " n'accepte pas d' activite " - - status = "" - if ("status" in diction.keys()): - status = diction['status'] - data_update['status'] = diction['status'] - if (type not in MYSY_GV.ACTIVITE_STATUS): - mycommon.myprint( - "- Le statut "+str(status)+" n'est pas autorisé ") - return False, "- Le statut "+str(status)+" n'est pas autorisé " - data_update['valide'] = '1' data_update['locked'] = '0' @@ -332,8 +370,7 @@ def Update_activite(diction): """ data_cle = {} data_cle['partner_recid'] = str(my_partner['recid']) - data_cle['related_collection'] = str(diction['related_collection']) - data_cle['related_collection_recid'] = str(diction['related_collection_recid']) + data_cle['recid'] = str(diction['activite_recid']) data_cle['valide'] = "1" data_cle['locked'] = "0" @@ -359,7 +396,7 @@ def Update_activite(diction): """ Recuperation de la liste des activité d'une entité en se basant sur -- relected_collection +- related_collection - token (partner_recid) - related_collection_recid (s'il est fourni) """ @@ -370,7 +407,7 @@ def Get_List_Entity_Activite(diction): """ Verification des input acceptés """ - field_list = ['token', 'relected_collection', 'related_collection_recid'] + field_list = ['token', 'related_collection', 'related_collection_owner_email'] incom_keys = diction.keys() for val in incom_keys: @@ -382,7 +419,7 @@ def Get_List_Entity_Activite(diction): """ Verification des champs obligatoires """ - field_list_obligatoire = ['token', 'relected_collection'] + field_list_obligatoire = ['token', 'related_collection'] for val in field_list_obligatoire: if val not in diction: mycommon.myprint( @@ -415,11 +452,26 @@ def Get_List_Entity_Activite(diction): """ data_cle = {} data_cle['partner_recid'] = str(my_partner['recid']) - data_cle['relected_collection'] = str(diction['relected_collection']) + data_cle['related_collection'] = str(diction['related_collection']) - if ("related_collection_recid" in diction.keys()): - data_cle['related_collection_recid'] = str(diction['related_collection_recid']) + if ("related_collection_owner_email" in diction.keys()): + related_collection_owner_email = str(diction['related_collection_owner_email']) + """ + Recuperation du recid associé au related_collection_owner_email dans la collection : related_collection + """ + local_tmp_val = MYSY_GV.dbname[str(diction['related_collection'])].find_one( + {'email': related_collection_owner_email}) + + if (local_tmp_val is None or "recid" not in local_tmp_val.keys()): + mycommon.myprint( + str(inspect.stack()[0][3]) + " - impossible de recuperer les données de " + str( + related_collection_owner_email) + " dans la collection " + str(diction['related_collection'])) + return False, str(inspect.stack()[0][3]) + " - impossible de recuperer les données de " + str( + related_collection_owner_email) + " dans la collection " + str( + diction['related_collection']) + " . " + + data_cle['related_collection_recid'] = str(local_tmp_val['recid']) data_cle['locked'] = "0" @@ -496,7 +548,7 @@ def Get_Given_Activite(diction): """ data_cle = {} data_cle['partner_recid'] = str(my_partner['recid']) - data_cle['activite_recid'] = str(diction['activite_recid']) + data_cle['recid'] = str(diction['activite_recid']) data_cle['valide'] = "1" data_cle['locked'] = "0" diff --git a/Contact.py b/Contact.py index c3e1edd..96b4ff4 100644 --- a/Contact.py +++ b/Contact.py @@ -54,7 +54,7 @@ def Add_Contact(diction): "telephone", "website", "comment",'adr_adresse', 'adr_code_postal', 'adr_ville', 'adr_pays', 'type', 'telephone_mobile', 'linkedin', 'facebook', 'twitter', 'related_collection', 'related_collection_owner_email', - 'prenom'] + 'prenom', 'fonction', 'civilite'] incom_keys = diction.keys() for val in incom_keys: @@ -148,6 +148,20 @@ def Add_Contact(diction): prenom = diction['prenom'] data['prenom'] = diction['prenom'] + fonction = "" + if ("fonction" in diction.keys()): + if diction['fonction']: + fonction = diction['fonction'] + data['fonction'] = diction['fonction'] + + civilite = "" + if ("civilite" in diction.keys()): + if diction['civilite']: + civilite = diction['civilite'] + data['civilite'] = diction['civilite'] + + + adr_adresse = "" if ("adr_adresse" in diction.keys()): if diction['adr_adresse']: @@ -309,10 +323,10 @@ def Update_Contact(diction): """ Verification des input acceptés """ - field_list = ['token', "raison_sociale", "nom", "siret", "tva", "email", + field_list = ['token', "raison_sociale", "nom", "prenom", "siret", "tva", "email", "telephone", "website", "comment",'adr_adresse', 'adr_code_postal', 'adr_ville', 'adr_pays', 'type', 'telephone_mobile', 'linkedin', - 'facebook', 'twitter', 'related_collection_recid', 'related_collection_recid', ] + 'facebook', 'twitter', 'contact_recid', 'prenom', 'fonction', 'civilite'] incom_keys = diction.keys() @@ -325,7 +339,7 @@ def Update_Contact(diction): """ Verification des champs obligatoires """ - field_list_obligatoire = ['token', "email", 'related_collection', ] + field_list_obligatoire = ['token', "email", 'contact_recid', ] for val in field_list_obligatoire: if val not in diction: @@ -366,8 +380,8 @@ def Update_Contact(diction): """ qry_update = {'email': str(diction['email']), - 'valide': '1', 'partner_recid': str(my_partner['recid']), - 'related_collection':str(diction['related_collection'])} + 'valide': '1', 'locked':'0', 'partner_recid': str(my_partner['recid']), + 'recid':str(diction['contact_recid'])} @@ -400,13 +414,38 @@ def Update_Contact(diction): nom = "" if ("nom" in diction.keys()): nom = diction['nom'] - # data_update['nom'] = diction['nom'] - on ne modifie pas le nom + data_update['nom'] = diction['nom'] + + fonction = "" + if ("fonction" in diction.keys()): + fonction = diction['fonction'] + data_update['fonction'] = diction['fonction'] + + civilite = "" + if ("civilite" in diction.keys()): + civilite = diction['civilite'] + data_update['civilite'] = diction['civilite'] + + prenom = "" + if ("prenom" in diction.keys()): + prenom = diction['prenom'] + data_update['prenom'] = diction['prenom'] siret = "" if ("siret" in diction.keys()): siret = diction['siret'] data_update['siret'] = diction['siret'] + fonction = "" + if ("fonction" in diction.keys()): + fonction = diction['fonction'] + data_update['fonction'] = diction['fonction'] + + civilite = "" + if ("civilite" in diction.keys()): + civilite = diction['civilite'] + data_update['civilite'] = diction['civilite'] + adr_adresse = "" if ("adr_adresse" in diction.keys()): adr_adresse = diction['adr_adresse'] @@ -494,12 +533,10 @@ def Update_Contact(diction): """ Clés de mise à jour """ - data_cle = {} - data_cle['partner_recid'] = str(my_partner['recid']) - data_cle['email'] = str(diction['email']) - data_cle['nom'] = str(diction['nom']) - data_cle['valide'] = "1" - data_cle['locked'] = "0" + data_cle = {'email': str(diction['email']), + 'valide': '1', 'locked': '0', 'partner_recid': str(my_partner['recid']), + 'recid': str(diction['contact_recid'])} + inserted_id = "" result = MYSY_GV.dbname['contact'].find_one_and_update( @@ -508,7 +545,7 @@ def Update_Contact(diction): upsert=False, return_document=ReturnDocument.AFTER ) - if ("_id" not in result.keys()): + if (result is None or "_id" not in result.keys()): mycommon.myprint( " Impossible de mettre à jour le contact : email = " + str(diction['email'])) return False, " Impossible de mettre à jour le client " @@ -588,9 +625,7 @@ def Get_List_Entity_Contact(diction): """ Recuperation du recid associé au related_collection_owner_email dans la collection : related_collection """ - print(" #### on cherche le recid du mail "+ str(related_collection_owner_email)+" dans la collection "+str(diction['related_collection'])+" ." ) local_tmp_val = MYSY_GV.dbname[str(diction['related_collection'])].find_one({'email':related_collection_owner_email}) - print(" #### local_tmp_val = ", local_tmp_val) if (local_tmp_val is None or "recid" not in local_tmp_val.keys()): mycommon.myprint( str(inspect.stack()[0][3]) + " - impossible de recuperer les données de "+ str(related_collection_owner_email)+" dans la collection "+str(diction['related_collection']) ) diff --git a/GlobalVariable.py b/GlobalVariable.py index 526ee3b..8e122a3 100644 --- a/GlobalVariable.py +++ b/GlobalVariable.py @@ -441,5 +441,7 @@ fait : 1 annulé : -1 """ -ACTIVITE_COLLECTION = ['0', '-1', '1'] +ACTIVITE_STATUS = ['0', '-1', '1'] + + diff --git a/Log/log_file.log b/Log/log_file.log index 91931d4..8b1cba8 100644 --- a/Log/log_file.log +++ b/Log/log_file.log @@ -1685807,3 +1685807,4255 @@ DEBUG:apscheduler.scheduler:Looking for jobs to run DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-29 22:21:20.084495+02:00 (in 299.991958 seconds) WARNING:werkzeug: * Debugger is active! INFO:werkzeug: * Debugger PIN: 101-758-117 +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-29 22:23:00.883982+02:00 (in 299.995355 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-29 22:23:00 CEST)" (scheduled at 2023-07-29 22:18:00.883982+02:00) +INFO:root:2023-07-29 22:18:00.890314 : samedi, 29. juillet 2023 10:18:00 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-29 22:23:00 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:root:2023-07-30 12:19:11.277877 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-07-30 12:19:11.278878 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-07-30 12:19:11.278878 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-07-30 12:19:11.278878 : ++ FLASK PORT 5001 ++ +INFO:root:2023-07-30 12:19:11.279877 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 12:24:11.345433+02:00 (in 299.996003 seconds) +INFO:werkzeug:WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead. + * Running on http://localhost:5001 +INFO:werkzeug:Press CTRL+C to quit +INFO:werkzeug: * Restarting with stat +INFO:root:2023-07-30 12:19:20.201765 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-07-30 12:19:20.201765 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-07-30 12:19:20.201765 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-07-30 12:19:20.201765 : ++ FLASK PORT 5001 ++ +INFO:root:2023-07-30 12:19:20.201765 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 12:24:20.255720+02:00 (in 299.997537 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 101-758-117 +DEBUG:apscheduler.scheduler:Looking for jobs to run +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 12:24:11 CEST)" (scheduled at 2023-07-30 12:24:11.345433+02:00) +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 12:29:11.345433+02:00 (in 299.992093 seconds) +INFO:root:2023-07-30 12:24:11.370164 : dimanche, 30. juillet 2023 12:24:11 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 12:29:11 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 12:24:20 CEST)" (scheduled at 2023-07-30 12:24:20.255720+02:00) +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 12:29:20.255720+02:00 (in 299.984688 seconds) +INFO:root:2023-07-30 12:24:20.288716 : dimanche, 30. juillet 2023 12:24:20 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 12:29:20 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\prj_common.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +INFO:root:2023-07-30 12:28:55.983492 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-07-30 12:28:55.983492 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-07-30 12:28:55.983492 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-07-30 12:28:55.983492 : ++ FLASK PORT 5001 ++ +INFO:root:2023-07-30 12:28:55.983492 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 12:33:56.046768+02:00 (in 299.997159 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 101-758-117 +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 12:34:11.345433+02:00 (in 299.997818 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 12:34:11 CEST)" (scheduled at 2023-07-30 12:29:11.345433+02:00) +INFO:root:2023-07-30 12:29:11.349884 : dimanche, 30. juillet 2023 12:29:11 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 12:34:11 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2023-07-30 12:32:58.956888 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 12:32:58.959368 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 12:32:58.961378 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:32:58] "POST /myclass/api/get_List_domaine_formation/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:32:59] "POST /myclass/api/Get_Suggested_Fr_Cities/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:32:59] "POST /myclass/api/Get_Suggested_Word/ HTTP/1.1" 200 - +INFO:root:2023-07-30 12:33:00.034594 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 12:33:00.037628 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:33:00] "POST /myclass/api/get_all_class/ HTTP/1.1" 200 - +INFO:root:2023-07-30 12:33:00.403023 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 12:33:00.406548 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 12:33:00.409600 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:33:00] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:33:00] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-07-30 12:33:00.413355 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 12:33:00.417657 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:33:00] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-07-30 12:33:00.423106 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:33:00] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:33:00] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-07-30 12:33:00.428451 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 12:33:00.430910 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:33:00] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-07-30 12:33:00.435857 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:33:00] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-07-30 12:33:00.440563 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:33:00] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:33:00] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-07-30 12:33:00.447498 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 12:33:00.450767 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:33:00] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:33:00] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-07-30 12:33:00.455051 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:33:00] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-07-30 12:33:00.460645 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 12:33:00.463906 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:33:00] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:33:00] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-07-30 12:33:00.470167 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:33:00] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-07-30 12:33:00.475858 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 12:33:00.479895 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:33:00] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:33:00] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-07-30 12:33:00.483969 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:33:00] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-07-30 12:33:00.491372 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:33:00] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:33:00] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 12:33:56 CEST)" (scheduled at 2023-07-30 12:33:56.046768+02:00) +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 12:38:56.046768+02:00 (in 299.982705 seconds) +INFO:root:2023-07-30 12:33:56.066580 : dimanche, 30. juillet 2023 12:33:56 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 12:38:56 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 12:39:11.345433+02:00 (in 299.998090 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 12:39:11 CEST)" (scheduled at 2023-07-30 12:34:11.345433+02:00) +INFO:root:2023-07-30 12:34:11.348970 : dimanche, 30. juillet 2023 12:34:11 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 12:39:11 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2023-07-30 12:35:23.032383 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:35:23] "POST /myclass/api/partner_login/ HTTP/1.1" 200 - +INFO:root:2023-07-30 12:35:23.183287 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 12:35:23.186004 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 12:35:23.189896 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:35:23] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-07-30 12:35:23.195608 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:35:23] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:root:2023-07-30 12:35:23.203415 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:35:23] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:35:23] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-07-30 12:35:23.327738 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:35:23] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-07-30 12:35:28.094647 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:35:29] "POST /myclass/api/Push_Class_To_MySy_LMS/ HTTP/1.1" 200 - +INFO:root:2023-07-30 12:37:13.894453 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 12:37:13.897225 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 12:37:13.901229 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:37:13] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/customers/cus_OL95ZkVJlbwWyw/payment_methods?type=card +DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=type=card +INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/customers/cus_OL95ZkVJlbwWyw/payment_methods?type=card response_code=200 +DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "pm_1NYSorAbmaEugrFTuc8nPCVA",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": "cherif DEV",\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": "pass"\n },\n "country": "US",\n "exp_month": 12,\n "exp_year": 2023,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1690459045,\n "customer": "cus_OL95ZkVJlbwWyw",\n "livemode": false,\n "metadata": {},\n "type": "card"\n }\n ],\n "has_more": false,\n "url": "/v1/customers/cus_OL95ZkVJlbwWyw/payment_methods"\n}' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_gzg4dyaFkvKNUO message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:37:14] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 12:43:56.046768+02:00 (in 299.985551 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 12:43:56 CEST)" (scheduled at 2023-07-30 12:38:56.046768+02:00) +INFO:root:2023-07-30 12:38:56.063207 : dimanche, 30. juillet 2023 12:38:56 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 12:43:56 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 12:44:11.345433+02:00 (in 299.993178 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 12:44:11 CEST)" (scheduled at 2023-07-30 12:39:11.345433+02:00) +INFO:root:2023-07-30 12:39:11.354933 : dimanche, 30. juillet 2023 12:39:11 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 12:44:11 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2023-07-30 12:39:26.953104 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 12:39:26.955246 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 12:39:26.958672 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 12:39:26.961693 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:39:26] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:39:26] "POST /myclass/api/get_product_service/ HTTP/1.1" 200 - +INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/customers/cus_OL95ZkVJlbwWyw/payment_methods?type=card +DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=type=card +INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/customers/cus_OL95ZkVJlbwWyw/payment_methods?type=card response_code=200 +DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "pm_1NYSorAbmaEugrFTuc8nPCVA",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": "cherif DEV",\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": "pass"\n },\n "country": "US",\n "exp_month": 12,\n "exp_year": 2023,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1690459045,\n "customer": "cus_OL95ZkVJlbwWyw",\n "livemode": false,\n "metadata": {},\n "type": "card"\n }\n ],\n "has_more": false,\n "url": "/v1/customers/cus_OL95ZkVJlbwWyw/payment_methods"\n}' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_RY1El0VTHhZw6q message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:39:27] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 - +INFO:root:2023-07-30 12:39:27.551456 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 12:39:27.559201 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:39:27] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:root:2023-07-30 12:39:34.522386 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 12:39:34.526477 : Security check : IP adresse '127.0.0.1' connected +INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/subscriptions/sub_1NYSpMAbmaEugrFTicVGk1T3 +DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data= +INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/subscriptions/sub_1NYSpMAbmaEugrFTicVGk1T3 response_code=200 +DEBUG:stripe:body='{\n "id": "sub_1NYSpMAbmaEugrFTicVGk1T3",\n "object": "subscription",\n "application": null,\n "application_fee_percent": null,\n "automatic_tax": {\n "enabled": false\n },\n "billing_cycle_anchor": 1690459076,\n "billing_thresholds": null,\n "cancel_at": null,\n "cancel_at_period_end": false,\n "canceled_at": null,\n "cancellation_details": {\n "comment": null,\n "feedback": null,\n "reason": null\n },\n "collection_method": "charge_automatically",\n "created": 1690459076,\n "currency": "eur",\n "current_period_end": 1693137476,\n "current_period_start": 1690459076,\n "customer": "cus_OL95ZkVJlbwWyw",\n "days_until_due": null,\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "ended_at": null,\n "items": {\n "object": "list",\n "data": [\n {\n "id": "si_OL97deuotFw44Z",\n "object": "subscription_item",\n "billing_thresholds": null,\n "created": 1690459076,\n "metadata": {},\n "plan": {\n "id": "price_1MT3FmAbmaEugrFTZ5vyJRcZ",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 9000,\n "amount_decimal": "9000",\n "billing_scheme": "per_unit",\n "created": 1674392794,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ6dS05BjL1cLl",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FmAbmaEugrFTZ5vyJRcZ",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392794,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ6dS05BjL1cLl",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "exclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 9000,\n "unit_amount_decimal": "9000"\n },\n "quantity": 4,\n "subscription": "sub_1NYSpMAbmaEugrFTicVGk1T3",\n "tax_rates": []\n }\n ],\n "has_more": false,\n "total_count": 1,\n "url": "/v1/subscription_items?subscription=sub_1NYSpMAbmaEugrFTicVGk1T3"\n },\n "latest_invoice": "in_1NYSpMAbmaEugrFTdZxQ9Gmd",\n "livemode": false,\n "metadata": {},\n "next_pending_invoice_item_invoice": null,\n "on_behalf_of": null,\n "pause_collection": null,\n "payment_settings": {\n "payment_method_options": null,\n "payment_method_types": null,\n "save_default_payment_method": "off"\n },\n "pending_invoice_item_interval": null,\n "pending_setup_intent": null,\n "pending_update": null,\n "plan": {\n "id": "price_1MT3FmAbmaEugrFTZ5vyJRcZ",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 9000,\n "amount_decimal": "9000",\n "billing_scheme": "per_unit",\n "created": 1674392794,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ6dS05BjL1cLl",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "quantity": 4,\n "schedule": null,\n "start_date": 1690459076,\n "status": "active",\n "test_clock": null,\n "transfer_data": null,\n "trial_end": null,\n "trial_settings": {\n "end_behavior": {\n "missing_payment_method": "create_invoice"\n }\n },\n "trial_start": null\n}' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_8myJyIaBTJqrcA message='Dashboard link for request' +INFO:stripe:message='Request to Stripe api' method=post path=https://api.stripe.com/v1/subscriptions/sub_1NYSpMAbmaEugrFTicVGk1T3 +DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=cancel_at_period_end=False&proration_behavior=create_prorations&items[0][id]=si_OL97deuotFw44Z&items[0][price]=price_1MT3FLAbmaEugrFTDgw7MVgb&items[0][quantity]=3 +INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/subscriptions/sub_1NYSpMAbmaEugrFTicVGk1T3 response_code=200 +DEBUG:stripe:body='{\n "id": "sub_1NYSpMAbmaEugrFTicVGk1T3",\n "object": "subscription",\n "application": null,\n "application_fee_percent": null,\n "automatic_tax": {\n "enabled": false\n },\n "billing_cycle_anchor": 1690459076,\n "billing_thresholds": null,\n "cancel_at": null,\n "cancel_at_period_end": false,\n "canceled_at": null,\n "cancellation_details": {\n "comment": null,\n "feedback": null,\n "reason": null\n },\n "collection_method": "charge_automatically",\n "created": 1690459076,\n "currency": "eur",\n "current_period_end": 1693137476,\n "current_period_start": 1690459076,\n "customer": "cus_OL95ZkVJlbwWyw",\n "days_until_due": null,\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "ended_at": null,\n "items": {\n "object": "list",\n "data": [\n {\n "id": "si_OL97deuotFw44Z",\n "object": "subscription_item",\n "billing_thresholds": null,\n "created": 1690459076,\n "metadata": {},\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "quantity": 3,\n "subscription": "sub_1NYSpMAbmaEugrFTicVGk1T3",\n "tax_rates": []\n }\n ],\n "has_more": false,\n "total_count": 1,\n "url": "/v1/subscription_items?subscription=sub_1NYSpMAbmaEugrFTicVGk1T3"\n },\n "latest_invoice": "in_1NYSpMAbmaEugrFTdZxQ9Gmd",\n "livemode": false,\n "metadata": {},\n "next_pending_invoice_item_invoice": null,\n "on_behalf_of": null,\n "pause_collection": null,\n "payment_settings": {\n "payment_method_options": null,\n "payment_method_types": null,\n "save_default_payment_method": "off"\n },\n "pending_invoice_item_interval": null,\n "pending_setup_intent": null,\n "pending_update": null,\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "quantity": 3,\n "schedule": null,\n "start_date": 1690459076,\n "status": "active",\n "test_clock": null,\n "transfer_data": null,\n "trial_end": null,\n "trial_settings": {\n "end_behavior": {\n "missing_payment_method": "create_invoice"\n }\n },\n "trial_start": null\n}' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_PayCRiLXAm1rsL message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:39:37] "POST /myclass/api/strip_update_subscription_plan/ HTTP/1.1" 200 - +INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/search?query=customer%3A%27cus_OL95ZkVJlbwWyw%27 +DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=query=customer%3A%27cus_OL95ZkVJlbwWyw%27 +INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/search?query=customer%3A%27cus_OL95ZkVJlbwWyw%27 response_code=200 +DEBUG:stripe:body='{\n "object": "search_result",\n "data": [\n {\n "id": "in_1NYSpMAbmaEugrFTdZxQ9Gmd",\n "object": "invoice",\n "account_country": "FR",\n "account_name": "MYSY Training Technology ",\n "account_tax_ids": null,\n "amount_due": 36000,\n "amount_paid": 36000,\n "amount_remaining": 0,\n "amount_shipping": 0,\n "application": null,\n "application_fee_amount": null,\n "attempt_count": 1,\n "attempted": true,\n "auto_advance": false,\n "automatic_tax": {\n "enabled": false,\n "status": null\n },\n "billing_reason": "subscription_create",\n "charge": "ch_3NYSpMAbmaEugrFT0jVQbRar",\n "collection_method": "charge_automatically",\n "created": 1690459076,\n "currency": "eur",\n "custom_fields": null,\n "customer": "cus_OL95ZkVJlbwWyw",\n "customer_address": {\n "city": "",\n "country": "",\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "customer_email": "mysytraining+dev@gmail.com",\n "customer_name": "MySy Dev Compte",\n "customer_phone": null,\n "customer_shipping": null,\n "customer_tax_exempt": "none",\n "customer_tax_ids": [],\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "discounts": [],\n "due_date": null,\n "effective_at": 1690459076,\n "ending_balance": 0,\n "footer": null,\n "from_invoice": null,\n "hosted_invoice_url": "https://invoice.stripe.com/i/acct_1LUUfAAbmaEugrFT/test_YWNjdF8xTFVVZkFBYm1hRXVnckZULF9PTDk3cTcxNUthV2RaNDh4T1dOcHdRZURmZ2ZUaGhmLDgxMjU0Mzgw0200BovccTiN?s=ap",\n "invoice_pdf": "https://pay.stripe.com/invoice/acct_1LUUfAAbmaEugrFT/test_YWNjdF8xTFVVZkFBYm1hRXVnckZULF9PTDk3cTcxNUthV2RaNDh4T1dOcHdRZURmZ2ZUaGhmLDgxMjU0Mzgw0200BovccTiN/pdf?s=ap",\n "last_finalization_error": null,\n "latest_revision": null,\n "lines": {\n "object": "list",\n "data": [\n {\n "id": "il_1NYSpMAbmaEugrFTQEHw7Np3",\n "object": "line_item",\n "amount": 36000,\n "amount_excluding_tax": 36000,\n "currency": "eur",\n "description": "4 × DEV_SPACK_GOLD (at €90.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1693137476,\n "start": 1690459076\n },\n "plan": {\n "id": "price_1MT3FmAbmaEugrFTZ5vyJRcZ",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 9000,\n "amount_decimal": "9000",\n "billing_scheme": "per_unit",\n "created": 1674392794,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ6dS05BjL1cLl",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FmAbmaEugrFTZ5vyJRcZ",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392794,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ6dS05BjL1cLl",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "exclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 9000,\n "unit_amount_decimal": "9000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 4,\n "subscription": "sub_1NYSpMAbmaEugrFTicVGk1T3",\n "subscription_item": "si_OL97deuotFw44Z",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "9000"\n }\n ],\n "has_more": false,\n "total_count": 1,\n "url": "/v1/invoices/in_1NYSpMAbmaEugrFTdZxQ9Gmd/lines"\n },\n "livemode": false,\n "metadata": {},\n "next_payment_attempt": null,\n "number": "E58073E6-0775",\n "on_behalf_of": null,\n "paid": true,\n "paid_out_of_band": false,\n "payment_intent": "pi_3NYSpMAbmaEugrFT0xAxy2Tq",\n "payment_settings": {\n "default_mandate": null,\n "payment_method_options": null,\n "payment_method_types": null\n },\n "period_end": 1690459076,\n "period_start": 1690459076,\n "post_payment_credit_notes_amount": 0,\n "pre_payment_credit_notes_amount": 0,\n "quote": null,\n "receipt_number": null,\n "rendering_options": null,\n "shipping_cost": null,\n "shipping_details": null,\n "starting_balance": 0,\n "statement_descriptor": null,\n "status": "paid",\n "status_transitions": {\n "finalized_at": 1690459076,\n "marked_uncollectible_at": null,\n "paid_at": 1690459087,\n "voided_at": null\n },\n "subscription": "sub_1NYSpMAbmaEugrFTicVGk1T3",\n "subtotal": 36000,\n "subtotal_excluding_tax": 36000,\n "tax": null,\n "test_clock": null,\n "total": 36000,\n "total_discount_amounts": [],\n "total_excluding_tax": 36000,\n "total_tax_amounts": [],\n "transfer_data": null,\n "webhooks_delivered_at": 1690459076\n }\n ],\n "has_more": false,\n "next_page": null,\n "url": "/v1/invoices/search"\n}' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_YrWQJugQ0BYrxf message='Dashboard link for request' +INFO:root:2023-07-30 12:39:39.655916 : UpdataPartnerRankingClass - Le RANKING de 3 ont été mise à jour avec la valeur {'display_rank': '20', 'date_update': '2023-07-30 12:39:38.315056'} +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:39:39] "POST /myclass/api/createOrder/ HTTP/1.1" 200 - +INFO:root:2023-07-30 12:39:39.735100 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:39:42] "POST /myclass/api/Check_MySy_LMS_Account/ HTTP/1.1" 200 - +INFO:root:2023-07-30 12:39:43.739541 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 12:39:43.741610 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 12:39:43.745460 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:39:43] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-07-30 12:39:43.751991 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:39:43] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:root:2023-07-30 12:39:43.762119 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:39:43] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:39:43] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-07-30 12:39:44.086225 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:39:44] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-07-30 12:41:37.396785 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 12:41:37.401745 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:41:37] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-07-30 12:41:37.405531 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 12:41:37.408828 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 12:41:37.412889 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:41:37] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:41:37] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:41:37] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-07-30 12:41:38.235565 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:41:38] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 12:48:56.046768+02:00 (in 299.995894 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 12:48:56 CEST)" (scheduled at 2023-07-30 12:43:56.046768+02:00) +INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OL95ZkVJlbwWyw +DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=customer=cus_OL95ZkVJlbwWyw +INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming?customer=cus_OL95ZkVJlbwWyw response_code=200 +DEBUG:stripe:body='{\n "object": "invoice",\n "account_country": "FR",\n "account_name": "MYSY Training Technology ",\n "account_tax_ids": null,\n "amount_due": 0,\n "amount_paid": 0,\n "amount_remaining": 0,\n "amount_shipping": 0,\n "application": null,\n "application_fee_amount": null,\n "attempt_count": 0,\n "attempted": false,\n "automatic_tax": {\n "enabled": false,\n "status": null\n },\n "billing_reason": "upcoming",\n "charge": null,\n "collection_method": "charge_automatically",\n "created": 1693137476,\n "currency": "eur",\n "custom_fields": null,\n "customer": "cus_OL95ZkVJlbwWyw",\n "customer_address": {\n "city": "",\n "country": "",\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "customer_email": "mysytraining+dev@gmail.com",\n "customer_name": "MySy Dev Compte",\n "customer_phone": null,\n "customer_shipping": null,\n "customer_tax_exempt": "none",\n "customer_tax_ids": [],\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "discounts": [],\n "due_date": null,\n "effective_at": null,\n "ending_balance": -4004,\n "footer": null,\n "from_invoice": null,\n "last_finalization_error": null,\n "latest_revision": null,\n "lines": {\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NZX2DAbmaEugrFTRxLU3xIm",\n "object": "line_item",\n "amount": -32579,\n "amount_excluding_tax": -32579,\n "currency": "eur",\n "description": "Unused time on 4 × DEV_SPACK_GOLD after 30 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NZX2DAbmaEugrFTRxLU3xIm",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1693137476,\n "start": 1690713577\n },\n "plan": {\n "id": "price_1MT3FmAbmaEugrFTZ5vyJRcZ",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 9000,\n "amount_decimal": "9000",\n "billing_scheme": "per_unit",\n "created": 1674392794,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ6dS05BjL1cLl",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FmAbmaEugrFTZ5vyJRcZ",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392794,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ6dS05BjL1cLl",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "exclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 9000,\n "unit_amount_decimal": "9000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NYSpMAbmaEugrFTdZxQ9Gmd",\n "invoice_line_items": [\n "il_1NYSpMAbmaEugrFTQEHw7Np3"\n ]\n }\n },\n "quantity": 4,\n "subscription": "sub_1NYSpMAbmaEugrFTicVGk1T3",\n "subscription_item": "si_OL97deuotFw44Z",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-8145"\n },\n {\n "id": "il_tmp_1NZX2DAbmaEugrFT436ALiUN",\n "object": "line_item",\n "amount": 13575,\n "amount_excluding_tax": 13575,\n "currency": "eur",\n "description": "Remaining time on 3 × DEV_SPACK_STANDARD after 30 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NZX2DAbmaEugrFT436ALiUN",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1693137476,\n "start": 1690713577\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 3,\n "subscription": "sub_1NYSpMAbmaEugrFTicVGk1T3",\n "subscription_item": "si_OL97deuotFw44Z",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4525"\n },\n {\n "id": "il_tmp_16fe40AbmaEugrFTe6451943",\n "object": "line_item",\n "amount": 15000,\n "amount_excluding_tax": 15000,\n "currency": "eur",\n "description": "3 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1695815876,\n "start": 1693137476\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 3,\n "subscription": "sub_1NYSpMAbmaEugrFTicVGk1T3",\n "subscription_item": "si_OL97deuotFw44Z",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "total_count": 3,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OL95ZkVJlbwWyw"\n },\n "livemode": false,\n "metadata": {},\n "next_payment_attempt": 1693141076,\n "number": null,\n "on_behalf_of": null,\n "paid": false,\n "paid_out_of_band": false,\n "payment_intent": null,\n "payment_settings": {\n "default_mandate": null,\n "payment_method_options": null,\n "payment_method_types": null\n },\n "period_end": 1693137476,\n "period_start": 1690459076,\n "post_payment_credit_notes_amount": 0,\n "pre_payment_credit_notes_amount": 0,\n "quote": null,\n "receipt_number": null,\n "rendering_options": null,\n "shipping_cost": null,\n "shipping_details": null,\n "starting_balance": 0,\n "statement_descriptor": null,\n "status": "draft",\n "status_transitions": {\n "finalized_at": null,\n "marked_uncollectible_at": null,\n "paid_at": null,\n "voided_at": null\n },\n "subscription": "sub_1NYSpMAbmaEugrFTicVGk1T3",\n "subtotal": -4004,\n "subtotal_excluding_tax": -4004,\n "tax": null,\n "test_clock": null,\n "total": -4004,\n "total_discount_amounts": [],\n "total_excluding_tax": -4004,\n "total_tax_amounts": [],\n "transfer_data": null,\n "webhooks_delivered_at": null\n}' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_TDZCD6PnUTSai0 message='Dashboard link for request' +INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OL95ZkVJlbwWyw +DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data= +INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/invoices/upcoming/lines?customer=cus_OL95ZkVJlbwWyw response_code=200 +DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "il_tmp_1NZX2DAbmaEugrFTRxLU3xIm",\n "object": "line_item",\n "amount": -32579,\n "amount_excluding_tax": -32579,\n "currency": "eur",\n "description": "Unused time on 4 × DEV_SPACK_GOLD after 30 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NZX2DAbmaEugrFTRxLU3xIm",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1693137476,\n "start": 1690713577\n },\n "plan": {\n "id": "price_1MT3FmAbmaEugrFTZ5vyJRcZ",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 9000,\n "amount_decimal": "9000",\n "billing_scheme": "per_unit",\n "created": 1674392794,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ6dS05BjL1cLl",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FmAbmaEugrFTZ5vyJRcZ",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392794,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ6dS05BjL1cLl",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "exclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 9000,\n "unit_amount_decimal": "9000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": {\n "invoice": "in_1NYSpMAbmaEugrFTdZxQ9Gmd",\n "invoice_line_items": [\n "il_1NYSpMAbmaEugrFTQEHw7Np3"\n ]\n }\n },\n "quantity": 4,\n "subscription": "sub_1NYSpMAbmaEugrFTicVGk1T3",\n "subscription_item": "si_OL97deuotFw44Z",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "-8145"\n },\n {\n "id": "il_tmp_1NZX2DAbmaEugrFT436ALiUN",\n "object": "line_item",\n "amount": 13575,\n "amount_excluding_tax": 13575,\n "currency": "eur",\n "description": "Remaining time on 3 × DEV_SPACK_STANDARD after 30 Jul 2023",\n "discount_amounts": [],\n "discountable": false,\n "discounts": [],\n "invoice_item": "ii_1NZX2DAbmaEugrFT436ALiUN",\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1693137476,\n "start": 1690713577\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": true,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 3,\n "subscription": "sub_1NYSpMAbmaEugrFTicVGk1T3",\n "subscription_item": "si_OL97deuotFw44Z",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "invoiceitem",\n "unit_amount_excluding_tax": "4525"\n },\n {\n "id": "il_tmp_16fe40AbmaEugrFTe6451943",\n "object": "line_item",\n "amount": 15000,\n "amount_excluding_tax": 15000,\n "currency": "eur",\n "description": "3 × DEV_SPACK_STANDARD (at €50.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1695815876,\n "start": 1693137476\n },\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 3,\n "subscription": "sub_1NYSpMAbmaEugrFTicVGk1T3",\n "subscription_item": "si_OL97deuotFw44Z",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "5000"\n }\n ],\n "has_more": false,\n "url": "/v1/invoices/upcoming/lines?customer=cus_OL95ZkVJlbwWyw"\n}' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_5KBxftq6tL0f53 message='Dashboard link for request' +INFO:root:2023-07-30 12:43:58.551759 : dimanche, 30. juillet 2023 12:43:58 : Envoie des données de prefacturation : - 1 clients ==> A traiter. - 1 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 12:48:56 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\class_mgt.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 12:49:11.345433+02:00 (in 299.997460 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 12:49:11 CEST)" (scheduled at 2023-07-30 12:44:11.345433+02:00) +INFO:root:2023-07-30 12:44:11.352021 : dimanche, 30. juillet 2023 12:44:11 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 12:49:11 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2023-07-30 12:44:24.816167 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-07-30 12:44:24.816167 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-07-30 12:44:24.816167 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-07-30 12:44:24.816167 : ++ FLASK PORT 5001 ++ +INFO:root:2023-07-30 12:44:24.816167 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 12:49:24.879010+02:00 (in 299.997461 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 101-758-117 +INFO:root:2023-07-30 12:44:51.498656 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:44:51] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-07-30 12:45:20.784515 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 12:45:20.787538 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 12:45:20.789570 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:45:20] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-07-30 12:45:20.794888 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 12:45:20.799759 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:45:20] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:45:20] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:45:20] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-07-30 12:45:21.423121 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:45:21] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-07-30 12:45:26.164318 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:45:27] "POST /myclass/api/Push_Class_To_MySy_LMS/ HTTP/1.1" 200 - +INFO:root:2023-07-30 12:45:27.884390 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:45:27] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 12:54:11.345433+02:00 (in 299.985753 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 12:54:11 CEST)" (scheduled at 2023-07-30 12:49:11.345433+02:00) +INFO:root:2023-07-30 12:49:11.362018 : dimanche, 30. juillet 2023 12:49:11 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 12:54:11 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 12:49:24 CEST)" (scheduled at 2023-07-30 12:49:24.879010+02:00) +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 12:54:24.879010+02:00 (in 299.992574 seconds) +INFO:root:2023-07-30 12:49:24.889571 : dimanche, 30. juillet 2023 12:49:24 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 12:54:24 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 12:59:11.345433+02:00 (in 299.992751 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 12:59:11 CEST)" (scheduled at 2023-07-30 12:54:11.345433+02:00) +INFO:root:2023-07-30 12:54:11.355507 : dimanche, 30. juillet 2023 12:54:11 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 12:59:11 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 12:59:24.879010+02:00 (in 299.995200 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 12:59:24 CEST)" (scheduled at 2023-07-30 12:54:24.879010+02:00) +INFO:root:2023-07-30 12:54:24.885811 : dimanche, 30. juillet 2023 12:54:24 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 12:59:24 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2023-07-30 12:54:56.618088 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 12:54:56.620473 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 12:54:56.624993 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:54:56] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-07-30 12:54:56.628997 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 12:54:56.630304 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:54:56] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:54:56] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:54:56] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-07-30 12:54:57.570867 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:54:57] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-07-30 12:54:59.965130 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:54:59] "POST /myclass/api/Get_Partner_List_Partner_Client/ HTTP/1.1" 200 - +INFO:root:2023-07-30 12:55:03.301621 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 12:55:03.305915 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:55:03] "POST /myclass/api/Get_Given_Partner_Client/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:55:03] "POST /myclass/api/Get_List_Entity_Contact/ HTTP/1.1" 200 - +INFO:root:2023-07-30 12:56:15.830128 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 12:56:15.832344 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:56:15] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-07-30 12:56:15.837782 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 12:56:15.840862 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 12:56:15.847850 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:56:15] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:56:15] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:56:15] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-07-30 12:56:16.556006 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:56:16] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-07-30 12:56:18.216807 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:56:18] "POST /myclass/api/Get_Partner_List_Partner_Client/ HTTP/1.1" 200 - +INFO:root:2023-07-30 12:56:20.839200 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 12:56:20.842206 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:56:20] "POST /myclass/api/Get_Given_Partner_Client/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:56:20] "POST /myclass/api/Get_List_Entity_Contact/ HTTP/1.1" 200 - +INFO:root:2023-07-30 12:57:19.802649 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 12:57:19.807153 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:57:19] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-07-30 12:57:19.812083 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 12:57:19.815452 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:57:19] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:root:2023-07-30 12:57:19.824574 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:57:19] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:57:19] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:root:2023-07-30 12:57:20.099476 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:57:20] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-07-30 12:57:27.549919 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:57:27] "POST /myclass/api/Get_Partner_List_Partner_Client/ HTTP/1.1" 200 - +INFO:root:2023-07-30 12:57:29.068818 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 12:57:29.070829 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:57:29] "POST /myclass/api/Get_Given_Partner_Client/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:57:29] "POST /myclass/api/Get_List_Entity_Contact/ HTTP/1.1" 200 - +INFO:root:2023-07-30 12:58:30.318283 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 12:58:30.323336 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:58:30] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-07-30 12:58:30.329669 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 12:58:30.335021 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 12:58:30.340115 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:58:30] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:58:30] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:58:30] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-07-30 12:58:30.602193 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:58:30] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-07-30 12:58:33.068321 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:58:33] "POST /myclass/api/Get_Partner_List_Partner_Client/ HTTP/1.1" 200 - +INFO:root:2023-07-30 12:58:37.604897 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 12:58:37.608889 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:58:37] "POST /myclass/api/Get_Given_Partner_Client/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:58:37] "POST /myclass/api/Get_List_Entity_Contact/ HTTP/1.1" 200 - +INFO:root:2023-07-30 12:59:08.475834 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 12:59:08.478600 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 12:59:08.480859 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:59:08] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-07-30 12:59:08.486932 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:59:08] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:root:2023-07-30 12:59:08.495048 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:59:08] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:59:08] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-07-30 12:59:08.601272 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:59:08] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-07-30 12:59:10.509024 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:59:10] "POST /myclass/api/Get_Partner_List_Partner_Client/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 13:04:11.345433+02:00 (in 299.983094 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 13:04:11 CEST)" (scheduled at 2023-07-30 12:59:11.345433+02:00) +INFO:root:2023-07-30 12:59:11.371135 : dimanche, 30. juillet 2023 12:59:11 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 13:04:11 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2023-07-30 12:59:12.459776 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 12:59:12.462960 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:59:12] "POST /myclass/api/Get_Given_Partner_Client/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 12:59:12] "POST /myclass/api/Get_List_Entity_Contact/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 13:04:24.879010+02:00 (in 299.993325 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 13:04:24 CEST)" (scheduled at 2023-07-30 12:59:24.879010+02:00) +INFO:root:2023-07-30 12:59:24.887679 : dimanche, 30. juillet 2023 12:59:24 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 13:04:24 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2023-07-30 13:01:31.164824 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:01:31.168338 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:01:31] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:01:31.174373 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:01:31.178951 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:01:31.180845 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:01:31] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:01:31] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:01:31] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:01:31.679320 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:01:31] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:01:54.427668 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:01:54.430111 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:01:54.433137 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:01:54] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:01:54.439636 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:01:54] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:01:54.444716 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:01:54] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:01:54] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:01:55.495585 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:01:55] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:01:56.559424 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:01:56] "POST /myclass/api/Get_Partner_List_Partner_Client/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:01:58.345639 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:01:58.348620 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:01:58] "POST /myclass/api/Get_Given_Partner_Client/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:01:58] "POST /myclass/api/Get_List_Entity_Contact/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:03:17.127962 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:03:17.133270 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:03:17] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:03:17.160082 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:03:17.165351 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:03:17.173131 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:03:17] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:03:17] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:03:17] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:03:17.645291 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:03:17] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:03:23.217845 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:03:23] "POST /myclass/api/Get_Partner_List_Partner_Client/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:03:25.412421 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:03:25.421947 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:03:25] "POST /myclass/api/Get_Given_Partner_Client/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:03:25] "POST /myclass/api/Get_List_Entity_Contact/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 13:09:11.345433+02:00 (in 299.991050 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 13:09:11 CEST)" (scheduled at 2023-07-30 13:04:11.345433+02:00) +INFO:root:2023-07-30 13:04:11.364109 : dimanche, 30. juillet 2023 01:04:11 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 13:09:11 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 13:09:24.879010+02:00 (in 299.992646 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 13:09:24 CEST)" (scheduled at 2023-07-30 13:04:24.879010+02:00) +INFO:root:2023-07-30 13:04:24.888387 : dimanche, 30. juillet 2023 01:04:24 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 13:09:24 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2023-07-30 13:04:56.277966 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:04:56.282967 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:04:56] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:04:56.288953 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:04:56.294948 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:04:56.294948 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:04:56] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:04:56] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:04:56] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:04:56.786961 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:04:56] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:05:12.684147 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:05:12] "POST /myclass/api/Get_Partner_List_Partner_Client/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:05:20.660128 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:05:20.662116 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:05:20] "POST /myclass/api/Get_Given_Partner_Client/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:05:20] "POST /myclass/api/Get_List_Entity_Contact/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:06:32.371094 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:06:32.375281 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:06:32] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:06:32.380512 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:06:32.384776 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:06:32.389781 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:06:32] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:06:32] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:06:32] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:06:33.459841 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:06:33] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:06:49.245804 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:06:49] "POST /myclass/api/Get_Partner_List_Partner_Client/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:06:55.344676 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:06:55.352697 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:06:55] "POST /myclass/api/Get_Given_Partner_Client/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:06:55] "POST /myclass/api/Get_List_Entity_Contact/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:07:52.303244 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:07:52.305658 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:07:52.311940 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:07:52] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:07:52.318918 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:07:52.323914 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:07:52] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:07:52] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:07:52] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:07:53.637936 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:07:53] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 13:14:11.345433+02:00 (in 299.979268 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 13:14:11 CEST)" (scheduled at 2023-07-30 13:09:11.345433+02:00) +INFO:root:2023-07-30 13:09:11.368180 : dimanche, 30. juillet 2023 01:09:11 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 13:14:11 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 13:14:24.879010+02:00 (in 299.997626 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 13:14:24 CEST)" (scheduled at 2023-07-30 13:09:24.879010+02:00) +INFO:root:2023-07-30 13:09:24.883534 : dimanche, 30. juillet 2023 01:09:24 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 13:14:24 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2023-07-30 13:09:48.015491 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:09:48] "POST /myclass/api/Get_Partner_List_Partner_Client/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:09:50.224334 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:09:50.234729 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:09:50] "POST /myclass/api/Get_Given_Partner_Client/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:09:50] "POST /myclass/api/Get_List_Entity_Contact/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:10:13.938053 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:10:13.941534 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:10:13] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:10:13.947873 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:10:13.953840 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:10:13.957934 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:10:13] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:10:13] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:10:13] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:10:14.284890 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:10:14] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:10:24.979216 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:10:24] "POST /myclass/api/Get_Partner_List_Partner_Client/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:10:26.881184 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:10:26.886209 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:10:26] "POST /myclass/api/Get_Given_Partner_Client/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:10:26] "POST /myclass/api/Get_List_Entity_Contact/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:12:02.365474 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:12:02.369934 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:12:02.376973 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:12:02] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:12:02.385492 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:12:02] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:12:02.396398 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:12:02] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:12:02] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:12:02.537840 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:12:02] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:12:05.267455 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:12:05] "POST /myclass/api/Get_Partner_List_Partner_Client/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:12:07.139442 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:12:07.144569 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:12:07] "POST /myclass/api/Get_Given_Partner_Client/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:12:07] "POST /myclass/api/Get_List_Entity_Contact/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:12:31.249477 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:12:31.252929 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:12:31] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:12:31.258805 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:12:31.262026 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:12:31.269543 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:12:31] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:12:31] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:12:31] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:12:31.521902 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:12:31] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:12:33.909360 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:12:33] "POST /myclass/api/Get_Partner_List_Partner_Client/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:12:37.949571 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:12:37.952926 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:12:37] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:12:37.958559 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:12:37.962825 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:12:37.968027 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:12:37] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:12:37] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:12:37] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:12:38.457961 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:12:38] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:12:39.287076 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:12:39] "POST /myclass/api/Get_Partner_List_Partner_Client/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:12:41.167959 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:12:41.176661 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:12:41] "POST /myclass/api/Get_Given_Partner_Client/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:12:41] "POST /myclass/api/Get_List_Entity_Contact/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:13:23.553797 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:13:23.559353 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:13:23] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:13:23.565357 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:13:23.571350 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:13:23.574348 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:13:23] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:13:23] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:13:23] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:13:24.071553 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:13:24] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 13:19:11.345433+02:00 (in 299.988819 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 13:19:11 CEST)" (scheduled at 2023-07-30 13:14:11.345433+02:00) +INFO:root:2023-07-30 13:14:11.366204 : dimanche, 30. juillet 2023 01:14:11 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 13:19:11 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 13:19:24.879010+02:00 (in 299.989585 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 13:19:24 CEST)" (scheduled at 2023-07-30 13:14:24.879010+02:00) +INFO:root:2023-07-30 13:14:24.891456 : dimanche, 30. juillet 2023 01:14:24 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 13:19:24 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2023-07-30 13:14:46.356155 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:14:46] "POST /myclass/api/Get_Partner_List_Partner_Client/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:14:51.323365 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:14:51.326918 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:14:51] "POST /myclass/api/Get_Given_Partner_Client/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:14:51] "POST /myclass/api/Get_List_Entity_Contact/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:15:48.308775 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:15:48.313933 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:15:48.317950 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:15:48] "POST /myclass/api/get_List_domaine_formation/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:15:48] "POST /myclass/api/Get_Suggested_Fr_Cities/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:15:48] "POST /myclass/api/Get_Suggested_Word/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:15:49.103053 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:15:49.106048 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:15:49] "POST /myclass/api/get_all_class/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:15:49.546933 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:15:49] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:15:49.559096 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:15:49.564757 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:15:49] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:15:49.570643 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:15:49.576194 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:15:49.584543 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:15:49] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:15:49] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:15:49] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:15:49.592010 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:15:49.597981 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:15:49] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:15:49.607659 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:15:49] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:15:49] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:15:49.616399 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:15:49.624071 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:15:49] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:15:49] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:15:49.634071 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:15:49.637487 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:15:49.645120 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:15:49] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:15:49] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:15:49] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:15:49.654967 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:15:49.658496 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:15:49] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:15:49.667251 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:15:49] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:15:49.675273 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:15:49] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:15:49] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:15:49.685711 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:15:49] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:15:49.693456 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:15:49] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:15:49] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:15:59.978412 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:15:59.981790 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:15:59] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:15:59.985792 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:15:59.990008 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:15:59.994722 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:15:59] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:15:59] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:16:00] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:16:00.264270 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:16:00] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:16:02.103284 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:16:02] "POST /myclass/api/Get_Partner_List_Partner_Client/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:16:03.870219 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:16:03.873872 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:16:03] "POST /myclass/api/Get_Given_Partner_Client/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:16:03] "POST /myclass/api/Get_List_Entity_Contact/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:16:33.018060 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:16:33.020564 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:16:33.024580 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:16:33] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:16:33.027604 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:16:33] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:16:33] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:16:33.039632 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:16:33] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:16:33.167384 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:16:33] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:16:35.756971 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:16:35.760310 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:16:35.764403 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:16:35] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:16:35.769459 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:16:35.772728 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:16:35] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:16:35] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:16:35] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:16:36.240695 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:16:36] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:16:37.672869 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:16:37] "POST /myclass/api/Get_Partner_List_Partner_Client/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:16:39.720338 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:16:39.724363 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:16:39] "POST /myclass/api/Get_Given_Partner_Client/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:16:39] "POST /myclass/api/Get_List_Entity_Contact/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 13:24:11.345433+02:00 (in 299.977528 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 13:24:11 CEST)" (scheduled at 2023-07-30 13:19:11.345433+02:00) +INFO:root:2023-07-30 13:19:11.370930 : dimanche, 30. juillet 2023 01:19:11 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 13:24:11 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 13:24:24.879010+02:00 (in 299.998549 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 13:24:24 CEST)" (scheduled at 2023-07-30 13:19:24.879010+02:00) +INFO:root:2023-07-30 13:19:24.882603 : dimanche, 30. juillet 2023 01:19:24 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 13:24:24 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2023-07-30 13:22:08.108559 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:22:08.117502 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:22:08] "POST /myclass/api/Get_Given_Partner_Client/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:22:08] "POST /myclass/api/Get_List_Entity_Contact/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:22:18.249690 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:22:18.252403 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:22:18] "POST /myclass/api/Get_Given_Partner_Client/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:22:18] "POST /myclass/api/Get_List_Entity_Contact/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:22:31.669059 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:22:31.671245 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:22:31] "POST /myclass/api/Get_Given_Partner_Client/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:22:31] "POST /myclass/api/Get_List_Entity_Contact/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 13:29:11.345433+02:00 (in 299.995845 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 13:29:11 CEST)" (scheduled at 2023-07-30 13:24:11.345433+02:00) +INFO:root:2023-07-30 13:24:11.353756 : dimanche, 30. juillet 2023 01:24:11 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 13:29:11 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 13:29:24.879010+02:00 (in 299.990952 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 13:29:24 CEST)" (scheduled at 2023-07-30 13:24:24.879010+02:00) +INFO:root:2023-07-30 13:24:24.889225 : dimanche, 30. juillet 2023 01:24:24 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 13:29:24 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Activite.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +INFO:root:2023-07-30 13:27:18.960407 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-07-30 13:27:18.961416 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-07-30 13:27:18.961416 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-07-30 13:27:18.961416 : ++ FLASK PORT 5001 ++ +INFO:root:2023-07-30 13:27:18.961416 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 13:32:19.044401+02:00 (in 299.998202 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 101-758-117 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Activite.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 13:34:11.345433+02:00 (in 299.984747 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 13:34:11 CEST)" (scheduled at 2023-07-30 13:29:11.345433+02:00) +INFO:root:2023-07-30 13:29:11.366680 : dimanche, 30. juillet 2023 01:29:11 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 13:34:11 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2023-07-30 13:29:15.008803 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-07-30 13:29:15.008803 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-07-30 13:29:15.010218 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-07-30 13:29:15.010218 : ++ FLASK PORT 5001 ++ +INFO:root:2023-07-30 13:29:15.010218 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 13:34:15.107571+02:00 (in 299.996998 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 101-758-117 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\GlobalVariable.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +INFO:root:2023-07-30 13:30:59.056864 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-07-30 13:30:59.057864 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-07-30 13:30:59.057864 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-07-30 13:30:59.057864 : ++ FLASK PORT 5001 ++ +INFO:root:2023-07-30 13:30:59.057864 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 13:35:59.112876+02:00 (in 299.997997 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 101-758-117 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Activite.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +INFO:root:2023-07-30 13:31:30.323953 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-07-30 13:31:30.324957 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-07-30 13:31:30.324957 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-07-30 13:31:30.324957 : ++ FLASK PORT 5001 ++ +INFO:root:2023-07-30 13:31:30.324957 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 13:36:30.377101+02:00 (in 299.998019 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 101-758-117 +INFO:root:2023-07-30 13:33:26.604835 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:33:26] "POST /myclass/api/Add_activite HTTP/1.1" 308 - +INFO:root:2023-07-30 13:33:26.612409 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:33:26] "POST /myclass/api/Add_activite/ HTTP/1.1" 500 - +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\main.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 13:39:11.345433+02:00 (in 299.988018 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 13:39:11 CEST)" (scheduled at 2023-07-30 13:34:11.345433+02:00) +INFO:root:2023-07-30 13:34:11.360945 : dimanche, 30. juillet 2023 01:34:11 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 13:39:11 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2023-07-30 13:34:12.799662 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-07-30 13:34:12.799662 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-07-30 13:34:12.799662 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-07-30 13:34:12.800666 : ++ FLASK PORT 5001 ++ +INFO:root:2023-07-30 13:34:12.800666 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 13:39:12.854429+02:00 (in 299.997003 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 101-758-117 +INFO:root:2023-07-30 13:34:12.894205 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:34:12] "POST /myclass/api/Add_activite HTTP/1.1" 308 - +INFO:root:2023-07-30 13:34:12.903321 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:34:13.457211 : Add_activite Le champ 'related_collection' n'existe pas +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:34:13] "POST /myclass/api/Add_activite/ HTTP/1.1" 200 - +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Activite.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +INFO:root:2023-07-30 13:35:47.954365 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-07-30 13:35:47.955364 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-07-30 13:35:47.955364 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-07-30 13:35:47.955364 : ++ FLASK PORT 5001 ++ +INFO:root:2023-07-30 13:35:47.955364 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 13:40:48.007615+02:00 (in 299.997502 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 101-758-117 +INFO:root:2023-07-30 13:36:07.119965 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:36:07] "POST /myclass/api/Add_activite HTTP/1.1" 308 - +INFO:root:2023-07-30 13:36:07.126341 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:36:07.692301 : Add_activite - La valeur 'email' n'est pas presente dans liste +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:36:07] "POST /myclass/api/Add_activite/ HTTP/1.1" 200 - +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Activite.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +INFO:root:2023-07-30 13:36:44.886113 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-07-30 13:36:44.886113 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-07-30 13:36:44.887109 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-07-30 13:36:44.887109 : ++ FLASK PORT 5001 ++ +INFO:root:2023-07-30 13:36:44.887109 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 13:41:44.942670+02:00 (in 299.998004 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 101-758-117 +INFO:root:2023-07-30 13:37:16.841859 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:37:16] "POST /myclass/api/Add_activite HTTP/1.1" 308 - +INFO:root:2023-07-30 13:37:16.848856 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:37:17.403120 : CheckisDate -time data '444 tel' does not match format '%d/%m/%Y' - ERRORRRR AT Line : 644 +INFO:root:2023-07-30 13:37:17.407122 : Add_activite - La date deadline n'est pas au format jj/mm/aaaa +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:37:17] "POST /myclass/api/Add_activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:38:41.821500 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:38:41] "POST /myclass/api/Add_activite HTTP/1.1" 308 - +INFO:root:2023-07-30 13:38:41.826835 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:38:41.841250 : Add_activite -local variable 'type' referenced before assignment - Line : 139 +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:38:41] "POST /myclass/api/Add_activite/ HTTP/1.1" 200 - +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Activite.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 13:44:11.345433+02:00 (in 299.985721 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 13:44:11 CEST)" (scheduled at 2023-07-30 13:39:11.345433+02:00) +INFO:root:2023-07-30 13:39:11.362526 : dimanche, 30. juillet 2023 01:39:11 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 13:44:11 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2023-07-30 13:39:19.101942 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-07-30 13:39:19.101942 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-07-30 13:39:19.101942 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-07-30 13:39:19.101942 : ++ FLASK PORT 5001 ++ +INFO:root:2023-07-30 13:39:19.101942 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 13:44:19.163700+02:00 (in 299.996985 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 101-758-117 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Activite.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +INFO:root:2023-07-30 13:40:19.450029 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-07-30 13:40:19.451029 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-07-30 13:40:19.451029 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-07-30 13:40:19.451029 : ++ FLASK PORT 5001 ++ +INFO:root:2023-07-30 13:40:19.451029 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 13:45:19.509465+02:00 (in 299.998006 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 101-758-117 +INFO:root:2023-07-30 13:40:25.398912 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:40:25] "POST /myclass/api/Add_activite HTTP/1.1" 308 - +INFO:root:2023-07-30 13:40:25.405566 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:40:25] "POST /myclass/api/Add_activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:40:43.963941 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:40:43] "POST /myclass/api/Add_activite HTTP/1.1" 308 - +INFO:root:2023-07-30 13:40:43.970174 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:40:43] "POST /myclass/api/Add_activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:40:54.437910 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:40:54] "POST /myclass/api/Add_activite HTTP/1.1" 308 - +INFO:root:2023-07-30 13:40:54.444050 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:40:54] "POST /myclass/api/Add_activite/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 13:49:11.345433+02:00 (in 299.986963 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 13:49:11 CEST)" (scheduled at 2023-07-30 13:44:11.345433+02:00) +INFO:root:2023-07-30 13:44:11.361920 : dimanche, 30. juillet 2023 01:44:11 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 13:49:11 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Activite.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +INFO:root:2023-07-30 13:44:54.756722 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-07-30 13:44:54.756722 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-07-30 13:44:54.757701 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-07-30 13:44:54.757701 : ++ FLASK PORT 5001 ++ +INFO:root:2023-07-30 13:44:54.757701 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 13:49:54.812020+02:00 (in 299.997523 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 101-758-117 +INFO:root:2023-07-30 13:45:28.422866 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:45:28] "POST /myclass/api/Get_List_Entity_Activite HTTP/1.1" 308 - +INFO:root:2023-07-30 13:45:28.430306 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:45:28] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:47:57.930952 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:47:58.424858 : Get_List_Entity_Activite - impossible de recuperer les données de undefined dans la collection partner_client +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:47:58] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 13:54:11.345433+02:00 (in 299.997755 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 13:54:11 CEST)" (scheduled at 2023-07-30 13:49:11.345433+02:00) +INFO:root:2023-07-30 13:49:11.349681 : dimanche, 30. juillet 2023 01:49:11 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 13:54:11 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2023-07-30 13:49:15.475893 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:49:15.481928 : Get_List_Entity_Activite - impossible de recuperer les données de undefined dans la collection partner_client +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:49:15] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:49:30.970230 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:49:30.973500 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:49:30.975491 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:49:30.979175 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:49:30] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:49:30] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:49:30.993254 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:49:30] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:49:31] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:49:31.305161 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:49:31] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:49:33.255853 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:49:33] "POST /myclass/api/Get_Partner_List_Partner_Client/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:49:42.252004 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:49:42.255137 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:49:42] "POST /myclass/api/Get_Given_Partner_Client/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:49:42] "POST /myclass/api/Get_List_Entity_Contact/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 13:49:54 CEST)" (scheduled at 2023-07-30 13:49:54.812020+02:00) +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 13:54:54.812020+02:00 (in 299.988091 seconds) +INFO:root:2023-07-30 13:49:54.826718 : dimanche, 30. juillet 2023 01:49:54 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 13:54:54 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2023-07-30 13:50:03.229239 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:50:03.236966 : Get_List_Entity_Activite - impossible de recuperer les données de undefined dans la collection partner_client +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:50:03] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:51:29.444894 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:51:29] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:51:43.390793 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:51:43.394562 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:51:43.397988 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:51:43] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:51:43.403536 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:51:43.408880 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:51:43] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:51:43] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:51:43] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:51:43.999863 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:51:44] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:51:48.378560 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:51:48] "POST /myclass/api/Get_Partner_List_Partner_Client/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:51:50.582358 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 13:51:50.585387 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:51:50] "POST /myclass/api/Get_Given_Partner_Client/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:51:50] "POST /myclass/api/Get_List_Entity_Contact/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:51:52.046646 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:51:52] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:52:18.947882 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:52:18] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 13:54:10.127097 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 13:54:10] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 13:59:11.345433+02:00 (in 299.986398 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 13:59:11 CEST)" (scheduled at 2023-07-30 13:54:11.345433+02:00) +INFO:root:2023-07-30 13:54:11.387830 : dimanche, 30. juillet 2023 01:54:11 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 13:59:11 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 13:59:54.812020+02:00 (in 299.982007 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 13:59:54 CEST)" (scheduled at 2023-07-30 13:54:54.812020+02:00) +INFO:root:2023-07-30 13:54:54.832010 : dimanche, 30. juillet 2023 01:54:54 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 13:59:54 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 14:04:11.345433+02:00 (in 299.982481 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 14:04:11 CEST)" (scheduled at 2023-07-30 13:59:11.345433+02:00) +INFO:root:2023-07-30 13:59:11.366608 : dimanche, 30. juillet 2023 01:59:11 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 14:04:11 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 14:04:54.812020+02:00 (in 299.984258 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 14:04:54 CEST)" (scheduled at 2023-07-30 13:59:54.812020+02:00) +INFO:root:2023-07-30 13:59:54.830112 : dimanche, 30. juillet 2023 01:59:54 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 14:04:54 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\GlobalVariable.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +INFO:root:2023-07-30 14:02:48.926021 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-07-30 14:02:48.927040 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-07-30 14:02:48.927040 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-07-30 14:02:48.927040 : ++ FLASK PORT 5001 ++ +INFO:root:2023-07-30 14:02:48.927040 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 14:07:48.986827+02:00 (in 299.997370 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 101-758-117 +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 14:09:11.345433+02:00 (in 299.984674 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 14:09:11 CEST)" (scheduled at 2023-07-30 14:04:11.345433+02:00) +INFO:root:2023-07-30 14:04:11.363301 : dimanche, 30. juillet 2023 02:04:11 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 14:09:11 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Activite.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +INFO:root:2023-07-30 14:05:48.381840 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-07-30 14:05:48.381840 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-07-30 14:05:48.381840 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-07-30 14:05:48.381840 : ++ FLASK PORT 5001 ++ +INFO:root:2023-07-30 14:05:48.381840 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 14:10:48.435946+02:00 (in 299.997998 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 101-758-117 +INFO:root:2023-07-30 14:07:24.014823 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 14:07:24] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 14:14:11.345433+02:00 (in 299.983279 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 14:14:11 CEST)" (scheduled at 2023-07-30 14:09:11.345433+02:00) +INFO:root:2023-07-30 14:09:11.367673 : dimanche, 30. juillet 2023 02:09:11 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 14:14:11 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 14:10:48 CEST)" (scheduled at 2023-07-30 14:10:48.435946+02:00) +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 14:15:48.435946+02:00 (in 299.996102 seconds) +INFO:root:2023-07-30 14:10:48.443609 : dimanche, 30. juillet 2023 02:10:48 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 14:15:48 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 14:19:11.345433+02:00 (in 299.993951 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 14:19:11 CEST)" (scheduled at 2023-07-30 14:14:11.345433+02:00) +INFO:root:2023-07-30 14:14:11.354481 : dimanche, 30. juillet 2023 02:14:11 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 14:19:11 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 14:20:48.435946+02:00 (in 299.994359 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 14:20:48 CEST)" (scheduled at 2023-07-30 14:15:48.435946+02:00) +INFO:root:2023-07-30 14:15:48.442937 : dimanche, 30. juillet 2023 02:15:48 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 14:20:48 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2023-07-30 14:17:13.676329 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 14:17:13] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 14:24:11.345433+02:00 (in 299.998888 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 14:24:11 CEST)" (scheduled at 2023-07-30 14:19:11.345433+02:00) +INFO:root:2023-07-30 14:19:11.350587 : dimanche, 30. juillet 2023 02:19:11 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 14:24:11 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 14:25:48.435946+02:00 (in 299.991849 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 14:25:48 CEST)" (scheduled at 2023-07-30 14:20:48.435946+02:00) +INFO:root:2023-07-30 14:20:48.445656 : dimanche, 30. juillet 2023 02:20:48 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 14:25:48 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2023-07-30 14:21:18.735205 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 14:21:18] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 14:21:35.008798 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 14:21:35.013246 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 14:21:35.014699 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 14:21:35] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-07-30 14:21:35.019474 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 14:21:35.026981 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 14:21:35] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 14:21:35] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 14:21:35] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-07-30 14:21:35.471531 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 14:21:35] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-07-30 14:21:39.766482 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 14:21:39] "POST /myclass/api/Get_Partner_List_Partner_Client/ HTTP/1.1" 200 - +INFO:root:2023-07-30 14:21:42.121431 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 14:21:42.125455 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 14:21:42] "POST /myclass/api/Get_Given_Partner_Client/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 14:21:42] "POST /myclass/api/Get_List_Entity_Contact/ HTTP/1.1" 200 - +INFO:root:2023-07-30 14:21:43.601767 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 14:21:43] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 14:29:11.345433+02:00 (in 299.994394 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 14:29:11 CEST)" (scheduled at 2023-07-30 14:24:11.345433+02:00) +INFO:root:2023-07-30 14:24:11.359247 : dimanche, 30. juillet 2023 02:24:11 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 14:29:11 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2023-07-30 14:24:21.368712 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 14:24:21] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 14:24:44.830874 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 14:24:44] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 14:25:02.676298 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 14:25:02] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 14:30:48.435946+02:00 (in 299.998357 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 14:30:48 CEST)" (scheduled at 2023-07-30 14:25:48.435946+02:00) +INFO:root:2023-07-30 14:25:48.439118 : dimanche, 30. juillet 2023 02:25:48 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 14:30:48 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2023-07-30 14:25:59.055904 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 14:25:59] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 14:26:20.133719 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 14:26:20] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 14:26:53.210846 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 14:26:53] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 14:34:11.345433+02:00 (in 299.977992 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 14:34:11 CEST)" (scheduled at 2023-07-30 14:29:11.345433+02:00) +INFO:root:2023-07-30 14:29:11.370699 : dimanche, 30. juillet 2023 02:29:11 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 14:34:11 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 14:35:48.435946+02:00 (in 299.982846 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 14:35:48 CEST)" (scheduled at 2023-07-30 14:30:48.435946+02:00) +INFO:root:2023-07-30 14:30:48.454375 : dimanche, 30. juillet 2023 02:30:48 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 14:35:48 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2023-07-30 14:36:34.846189 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 14:36:34.850012 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 14:36:34] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-07-30 14:36:34.855827 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 14:36:34.861417 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 14:36:34] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:root:2023-07-30 14:36:34.868287 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 14:36:34] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 14:36:34] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:root:2023-07-30 14:36:35.601931 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 14:36:35] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 14:39:11.345433+02:00 (in 154.684251 seconds) +WARNING:apscheduler.executors.default:Run time of job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 14:39:11 CEST)" was missed by 0:02:25.315749 +INFO:root:2023-07-30 14:36:38.461286 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 14:36:38] "POST /myclass/api/Get_Partner_List_Partner_Client/ HTTP/1.1" 200 - +INFO:root:2023-07-30 14:36:48.481756 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 14:36:48.485759 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 14:36:48] "POST /myclass/api/Get_Given_Partner_Client/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 14:36:48] "POST /myclass/api/Get_List_Entity_Contact/ HTTP/1.1" 200 - +INFO:root:2023-07-30 14:36:52.464672 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 14:36:52] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 14:40:48.435946+02:00 (in 154.695606 seconds) +WARNING:apscheduler.executors.default:Run time of job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 14:40:48 CEST)" was missed by 0:02:25.304394 +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 14:44:11.345433+02:00 (in 299.981903 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 14:44:11 CEST)" (scheduled at 2023-07-30 14:39:11.345433+02:00) +INFO:root:2023-07-30 14:39:11.367555 : dimanche, 30. juillet 2023 02:39:11 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 14:44:11 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 14:45:48.435946+02:00 (in 299.987131 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 14:45:48 CEST)" (scheduled at 2023-07-30 14:40:48.435946+02:00) +INFO:root:2023-07-30 14:40:48.451318 : dimanche, 30. juillet 2023 02:40:48 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 14:45:48 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2023-07-30 14:41:36.033719 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 14:41:36.037412 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 14:41:36.042415 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 14:41:36] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-07-30 14:41:36.048439 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 14:41:36.051815 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 14:41:36] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 14:41:36] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 14:41:36] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-07-30 14:41:36.480565 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 14:41:36] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-07-30 14:41:38.912680 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 14:41:38] "POST /myclass/api/Get_Partner_List_Partner_Client/ HTTP/1.1" 200 - +INFO:root:2023-07-30 14:41:41.035237 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 14:41:41.039363 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 14:41:41] "POST /myclass/api/Get_Given_Partner_Client/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 14:41:41] "POST /myclass/api/Get_List_Entity_Contact/ HTTP/1.1" 200 - +INFO:root:2023-07-30 14:41:42.862324 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 14:41:42] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 14:49:11.345433+02:00 (in 299.995783 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 14:49:11 CEST)" (scheduled at 2023-07-30 14:44:11.345433+02:00) +INFO:root:2023-07-30 14:44:11.360265 : dimanche, 30. juillet 2023 02:44:11 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 14:49:11 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2023-07-30 14:45:23.807408 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 14:45:23] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 14:45:36.498125 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 14:45:36.509991 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 14:45:36] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-07-30 14:45:36.513004 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 14:45:36.518002 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 14:45:36.526328 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 14:45:36] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 14:45:36] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 14:45:36] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:root:2023-07-30 14:45:37.245265 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 14:45:37] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-07-30 14:45:38.584768 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 14:45:38] "POST /myclass/api/Get_Partner_List_Partner_Client/ HTTP/1.1" 200 - +INFO:root:2023-07-30 14:45:40.295398 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 14:45:40.300007 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 14:45:40] "POST /myclass/api/Get_Given_Partner_Client/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 14:45:40] "POST /myclass/api/Get_List_Entity_Contact/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 14:50:48.435946+02:00 (in 299.985666 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 14:50:48 CEST)" (scheduled at 2023-07-30 14:45:48.435946+02:00) +INFO:root:2023-07-30 14:45:48.452296 : dimanche, 30. juillet 2023 02:45:48 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 14:50:48 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2023-07-30 14:45:54.482879 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 14:45:54.484875 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 14:45:54] "POST /myclass/api/Get_Given_Partner_Client/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 14:45:54] "POST /myclass/api/Get_List_Entity_Contact/ HTTP/1.1" 200 - +INFO:root:2023-07-30 14:45:56.650756 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 14:45:56] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 14:47:59.985989 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 14:47:59] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 14:48:35.128657 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 14:48:35] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 14:48:56.927722 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 14:48:56] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 14:54:11.345433+02:00 (in 299.980460 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 14:54:11 CEST)" (scheduled at 2023-07-30 14:49:11.345433+02:00) +INFO:root:2023-07-30 14:49:11.367459 : dimanche, 30. juillet 2023 02:49:11 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 14:54:11 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2023-07-30 14:49:56.835582 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 14:49:56] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 14:50:08.621759 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 14:50:08] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 14:55:48.435946+02:00 (in 299.991025 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 14:55:48 CEST)" (scheduled at 2023-07-30 14:50:48.435946+02:00) +INFO:root:2023-07-30 14:50:48.446922 : dimanche, 30. juillet 2023 02:50:48 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 14:55:48 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2023-07-30 14:52:28.381186 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 14:52:28] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 14:59:11.345433+02:00 (in 299.985789 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 14:59:11 CEST)" (scheduled at 2023-07-30 14:54:11.345433+02:00) +INFO:root:2023-07-30 14:54:11.361649 : dimanche, 30. juillet 2023 02:54:11 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 14:59:11 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 15:00:48.435946+02:00 (in 299.991957 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 15:00:48 CEST)" (scheduled at 2023-07-30 14:55:48.435946+02:00) +INFO:root:2023-07-30 14:55:48.445221 : dimanche, 30. juillet 2023 02:55:48 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 15:00:48 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 15:04:11.345433+02:00 (in 299.985285 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 15:04:11 CEST)" (scheduled at 2023-07-30 14:59:11.345433+02:00) +INFO:root:2023-07-30 14:59:11.369310 : dimanche, 30. juillet 2023 02:59:11 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 15:04:11 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 15:05:48.435946+02:00 (in 299.994728 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 15:05:48 CEST)" (scheduled at 2023-07-30 15:00:48.435946+02:00) +INFO:root:2023-07-30 15:00:48.443214 : dimanche, 30. juillet 2023 03:00:48 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 15:05:48 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2023-07-30 15:02:21.987802 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 15:02:21] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 15:02:51.391447 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 15:02:51] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 15:02:59.601268 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 15:02:59] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 15:03:19.918673 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 15:03:19] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 15:09:11.345433+02:00 (in 299.978372 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 15:09:11 CEST)" (scheduled at 2023-07-30 15:04:11.345433+02:00) +INFO:root:2023-07-30 15:04:11.379720 : dimanche, 30. juillet 2023 03:04:11 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 15:09:11 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2023-07-30 15:05:46.119056 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 15:05:46.120052 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 15:05:46] "POST /myclass/api/Get_Given_Partner_Client/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 15:05:46] "POST /myclass/api/Get_List_Entity_Contact/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 15:10:48.435946+02:00 (in 299.993636 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 15:10:48 CEST)" (scheduled at 2023-07-30 15:05:48.435946+02:00) +INFO:root:2023-07-30 15:05:48.444221 : dimanche, 30. juillet 2023 03:05:48 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 15:10:48 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 15:14:11.345433+02:00 (in 299.972595 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 15:14:11 CEST)" (scheduled at 2023-07-30 15:09:11.345433+02:00) +INFO:root:2023-07-30 15:09:11.375901 : dimanche, 30. juillet 2023 03:09:11 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 15:14:11 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 15:15:48.435946+02:00 (in 299.989799 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 15:15:48 CEST)" (scheduled at 2023-07-30 15:10:48.435946+02:00) +INFO:root:2023-07-30 15:10:48.448160 : dimanche, 30. juillet 2023 03:10:48 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 15:15:48 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 15:19:11.345433+02:00 (in 299.987366 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 15:19:11 CEST)" (scheduled at 2023-07-30 15:14:11.345433+02:00) +INFO:root:2023-07-30 15:14:11.361108 : dimanche, 30. juillet 2023 03:14:11 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 15:19:11 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 15:20:48.435946+02:00 (in 299.991715 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 15:20:48 CEST)" (scheduled at 2023-07-30 15:15:48.435946+02:00) +INFO:root:2023-07-30 15:15:48.446439 : dimanche, 30. juillet 2023 03:15:48 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 15:20:48 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 15:24:11.345433+02:00 (in 299.985709 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 15:24:11 CEST)" (scheduled at 2023-07-30 15:19:11.345433+02:00) +INFO:root:2023-07-30 15:19:11.364018 : dimanche, 30. juillet 2023 03:19:11 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 15:24:11 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 15:25:48.435946+02:00 (in 299.992599 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 15:25:48 CEST)" (scheduled at 2023-07-30 15:20:48.435946+02:00) +INFO:root:2023-07-30 15:20:48.445164 : dimanche, 30. juillet 2023 03:20:48 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 15:25:48 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 15:29:11.345433+02:00 (in 299.987857 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 15:29:11 CEST)" (scheduled at 2023-07-30 15:24:11.345433+02:00) +INFO:root:2023-07-30 15:24:11.360628 : dimanche, 30. juillet 2023 03:24:11 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 15:29:11 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 15:30:48.435946+02:00 (in 299.991691 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 15:30:48 CEST)" (scheduled at 2023-07-30 15:25:48.435946+02:00) +INFO:root:2023-07-30 15:25:48.446291 : dimanche, 30. juillet 2023 03:25:48 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 15:30:48 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2023-07-30 15:28:09.534029 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 15:28:09.539572 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 15:28:09] "POST /myclass/api/Get_Given_Partner_Client/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 15:28:09] "POST /myclass/api/Get_List_Entity_Contact/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 15:34:11.345433+02:00 (in 299.982461 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 15:34:11 CEST)" (scheduled at 2023-07-30 15:29:11.345433+02:00) +INFO:root:2023-07-30 15:29:11.371944 : dimanche, 30. juillet 2023 03:29:11 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 15:34:11 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 15:35:48.435946+02:00 (in 299.997025 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 15:35:48 CEST)" (scheduled at 2023-07-30 15:30:48.435946+02:00) +INFO:root:2023-07-30 15:30:48.440898 : dimanche, 30. juillet 2023 03:30:48 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 15:35:48 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 15:39:11.345433+02:00 (in 299.989424 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 15:39:11 CEST)" (scheduled at 2023-07-30 15:34:11.345433+02:00) +INFO:root:2023-07-30 15:34:11.365929 : dimanche, 30. juillet 2023 03:34:11 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 15:39:11 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 15:40:48.435946+02:00 (in 299.986518 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 15:40:48 CEST)" (scheduled at 2023-07-30 15:35:48.435946+02:00) +INFO:root:2023-07-30 15:35:48.451428 : dimanche, 30. juillet 2023 03:35:48 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 15:40:48 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 15:44:11.345433+02:00 (in 299.979154 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 15:44:11 CEST)" (scheduled at 2023-07-30 15:39:11.345433+02:00) +INFO:root:2023-07-30 15:39:11.374284 : dimanche, 30. juillet 2023 03:39:11 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 15:44:11 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2023-07-30 15:40:06.022025 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 15:40:06.028195 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 15:40:06.036948 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 15:40:06] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-07-30 15:40:06.043617 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 15:40:06.058228 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 15:40:06] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 15:40:06] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 15:40:06] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-07-30 15:40:06.631304 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 15:40:06] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-07-30 15:40:08.187433 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 15:40:08] "POST /myclass/api/Get_Partner_List_Partner_Client/ HTTP/1.1" 200 - +INFO:root:2023-07-30 15:40:11.136800 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 15:40:11.139801 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 15:40:11] "POST /myclass/api/Get_Given_Partner_Client/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 15:40:11] "POST /myclass/api/Get_List_Entity_Contact/ HTTP/1.1" 200 - +INFO:root:2023-07-30 15:40:13.852305 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 15:40:13] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 15:40:18.758426 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 15:40:18] "POST /myclass/api/Get_Given_Activite/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 15:45:48.435946+02:00 (in 299.984434 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 15:45:48 CEST)" (scheduled at 2023-07-30 15:40:48.435946+02:00) +INFO:root:2023-07-30 15:40:48.453508 : dimanche, 30. juillet 2023 03:40:48 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 15:45:48 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Activite.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +INFO:root:2023-07-30 15:42:23.039229 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-07-30 15:42:23.039229 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-07-30 15:42:23.039229 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-07-30 15:42:23.040229 : ++ FLASK PORT 5001 ++ +INFO:root:2023-07-30 15:42:23.040229 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 15:47:23.177743+02:00 (in 299.996000 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 101-758-117 +INFO:root:2023-07-30 15:42:31.154098 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 15:42:31.158369 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 15:42:31.160395 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 15:42:31.164404 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 15:42:31] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-07-30 15:42:31.172055 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 15:42:31] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 15:42:31] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 15:42:31] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-07-30 15:42:31.668192 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 15:42:31] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-07-30 15:42:33.596691 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 15:42:33] "POST /myclass/api/Get_Partner_List_Partner_Client/ HTTP/1.1" 200 - +INFO:root:2023-07-30 15:42:36.335825 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 15:42:36.339839 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 15:42:36] "POST /myclass/api/Get_Given_Partner_Client/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 15:42:36] "POST /myclass/api/Get_List_Entity_Contact/ HTTP/1.1" 200 - +INFO:root:2023-07-30 15:42:38.299022 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 15:42:38] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 15:42:39.693548 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 15:42:39] "POST /myclass/api/Get_Given_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 15:43:51.655068 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 15:43:51] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 15:43:58.293252 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 15:43:58] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 15:44:02.675652 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 15:44:02] "POST /myclass/api/Get_Given_Activite/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 15:49:11.345433+02:00 (in 299.995043 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 15:49:11 CEST)" (scheduled at 2023-07-30 15:44:11.345433+02:00) +INFO:root:2023-07-30 15:44:11.352393 : dimanche, 30. juillet 2023 03:44:11 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 15:49:11 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2023-07-30 15:44:54.162329 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 15:44:54] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 15:45:36.578521 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 15:45:37.174339 : Add_Contact Le champ 'description' n'existe pas +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 15:45:37] "POST /myclass/api/Add_Contact/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 15:47:23 CEST)" (scheduled at 2023-07-30 15:47:23.177743+02:00) +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 15:52:23.177743+02:00 (in 299.998512 seconds) +INFO:root:2023-07-30 15:47:23.182507 : dimanche, 30. juillet 2023 03:47:23 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 15:52:23 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 15:54:11.345433+02:00 (in 299.987601 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 15:54:11 CEST)" (scheduled at 2023-07-30 15:49:11.345433+02:00) +INFO:root:2023-07-30 15:49:11.359671 : dimanche, 30. juillet 2023 03:49:11 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 15:54:11 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 15:57:23.177743+02:00 (in 299.995967 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 15:57:23 CEST)" (scheduled at 2023-07-30 15:52:23.177743+02:00) +INFO:root:2023-07-30 15:52:23.183775 : dimanche, 30. juillet 2023 03:52:23 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 15:57:23 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 15:59:11.345433+02:00 (in 299.989970 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 15:59:11 CEST)" (scheduled at 2023-07-30 15:54:11.345433+02:00) +INFO:root:2023-07-30 15:54:11.366518 : dimanche, 30. juillet 2023 03:54:11 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 15:59:11 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2023-07-30 15:54:53.956898 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 15:54:53] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 15:55:22.616081 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 15:55:22] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Activite.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +INFO:root:2023-07-30 15:57:28.673795 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-07-30 15:57:28.673795 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-07-30 15:57:28.673795 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-07-30 15:57:28.673795 : ++ FLASK PORT 5001 ++ +INFO:root:2023-07-30 15:57:28.674778 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 16:02:28.738752+02:00 (in 299.997964 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 101-758-117 +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 16:04:11.345433+02:00 (in 299.992099 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 16:04:11 CEST)" (scheduled at 2023-07-30 15:59:11.345433+02:00) +INFO:root:2023-07-30 15:59:11.355392 : dimanche, 30. juillet 2023 03:59:11 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 16:04:11 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2023-07-30 15:59:45.782756 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 15:59:45] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 15:59:52.712506 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 15:59:52] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:00:12.895395 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 16:00:12.898919 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 16:00:12.900919 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:00:12] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:00:12.904915 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:00:12] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:00:12] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:00:12.929617 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:00:12] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:00:13.584122 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:00:13] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:00:14.982865 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:00:14] "POST /myclass/api/Get_Partner_List_Partner_Client/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:00:17.313655 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 16:00:17.316644 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:00:17] "POST /myclass/api/Get_Given_Partner_Client/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:00:17] "POST /myclass/api/Get_List_Entity_Contact/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:00:24.591296 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:00:24] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:00:26.698111 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:00:26] "POST /myclass/api/Get_Given_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:00:53.519390 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 16:00:54.213216 : Update_activite Le champ 'related_collection' n'existe pas +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:00:54] "POST /myclass/api/Update_activite/ HTTP/1.1" 200 - +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Activite.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +INFO:root:2023-07-30 16:01:41.885068 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-07-30 16:01:41.886069 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-07-30 16:01:41.886069 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-07-30 16:01:41.886069 : ++ FLASK PORT 5001 ++ +INFO:root:2023-07-30 16:01:41.886069 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 16:06:41.947196+02:00 (in 299.997750 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 101-758-117 +INFO:root:2023-07-30 16:04:10.123774 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:04:10] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 16:09:11.345433+02:00 (in 299.987734 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 16:09:11 CEST)" (scheduled at 2023-07-30 16:04:11.345433+02:00) +INFO:root:2023-07-30 16:04:11.367643 : dimanche, 30. juillet 2023 04:04:11 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 16:09:11 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2023-07-30 16:06:19.953622 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:06:19] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:06:22.300060 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 16:06:22.303243 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 16:06:22.307097 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 16:06:22.311321 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 16:06:22.311321 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:root:2023-07-30 16:06:22.312330 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:06:22] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:06:22.327899 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:06:22] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:06:22] "POST /myclass/api/get_invoice_by_customer/ HTTP/1.1" 200 - +INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/customers/cus_OL95ZkVJlbwWyw/payment_methods?type=card +DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=type=card +INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/customers/cus_OL95ZkVJlbwWyw/payment_methods?type=card +DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=type=card +INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/customers/cus_OL95ZkVJlbwWyw/payment_methods?type=card response_code=200 +INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/customers/cus_OL95ZkVJlbwWyw/payment_methods?type=card response_code=200 +DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "pm_1NYSorAbmaEugrFTuc8nPCVA",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": "cherif DEV",\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": "pass"\n },\n "country": "US",\n "exp_month": 12,\n "exp_year": 2023,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1690459045,\n "customer": "cus_OL95ZkVJlbwWyw",\n "livemode": false,\n "metadata": {},\n "type": "card"\n }\n ],\n "has_more": false,\n "url": "/v1/customers/cus_OL95ZkVJlbwWyw/payment_methods"\n}' message='API response body' +DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "pm_1NYSorAbmaEugrFTuc8nPCVA",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": "cherif DEV",\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": "pass"\n },\n "country": "US",\n "exp_month": 12,\n "exp_year": 2023,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1690459045,\n "customer": "cus_OL95ZkVJlbwWyw",\n "livemode": false,\n "metadata": {},\n "type": "card"\n }\n ],\n "has_more": false,\n "url": "/v1/customers/cus_OL95ZkVJlbwWyw/payment_methods"\n}' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_eV4ADy9ePDsNce message='Dashboard link for request' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_NghPKF1zbcoftj message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:06:23] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:06:23] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:06:24.274954 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:06:24] "POST /myclass/api/Get_Partner_List_Partner_Client/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:06:26.998199 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 16:06:27.000821 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:06:27] "POST /myclass/api/Get_Given_Partner_Client/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:06:27] "POST /myclass/api/Get_List_Entity_Contact/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:06:28.847385 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:06:28] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:06:30.421667 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:06:30] "POST /myclass/api/Get_Given_Activite/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 16:06:41 CEST)" (scheduled at 2023-07-30 16:06:41.947196+02:00) +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 16:11:41.947196+02:00 (in 299.998485 seconds) +INFO:root:2023-07-30 16:06:41.950713 : dimanche, 30. juillet 2023 04:06:41 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 16:11:41 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2023-07-30 16:07:49.857843 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:07:49] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:07:53.175469 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:07:53] "POST /myclass/api/Get_Given_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:08:08.436881 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 16:08:09.048790 : Update_activite Le champ 'related_collection' n'existe pas +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:08:09] "POST /myclass/api/Update_activite/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 16:14:11.345433+02:00 (in 299.988489 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 16:14:11 CEST)" (scheduled at 2023-07-30 16:09:11.345433+02:00) +INFO:root:2023-07-30 16:09:11.366332 : dimanche, 30. juillet 2023 04:09:11 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 16:14:11 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2023-07-30 16:09:25.684025 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:09:25] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:09:31.629126 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 16:09:31.632176 : Update_activite - La valeur 'activite_recid' n'est pas presente dans liste +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:09:31] "POST /myclass/api/Update_activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:11:06.060588 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:11:06] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:11:11.959995 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 16:11:11.976749 : Update_activite -'related_collection' - Line : 288 +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:11:11] "POST /myclass/api/Update_activite/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 16:16:41.947196+02:00 (in 299.996670 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 16:16:41 CEST)" (scheduled at 2023-07-30 16:11:41.947196+02:00) +INFO:root:2023-07-30 16:11:41.953021 : dimanche, 30. juillet 2023 04:11:41 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 16:16:41 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Activite.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +INFO:root:2023-07-30 16:12:29.949886 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-07-30 16:12:29.949886 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-07-30 16:12:29.950907 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-07-30 16:12:29.950907 : ++ FLASK PORT 5001 ++ +INFO:root:2023-07-30 16:12:29.950907 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 16:17:30.060055+02:00 (in 299.995944 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 101-758-117 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Activite.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +INFO:root:2023-07-30 16:12:43.592514 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-07-30 16:12:43.592514 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-07-30 16:12:43.592514 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-07-30 16:12:43.592514 : ++ FLASK PORT 5001 ++ +INFO:root:2023-07-30 16:12:43.592514 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 16:17:43.645935+02:00 (in 299.996591 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 101-758-117 +INFO:root:2023-07-30 16:12:43.685636 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:12:43] "POST /myclass/api/Update_activite/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 16:19:11.345433+02:00 (in 299.986920 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 16:19:11 CEST)" (scheduled at 2023-07-30 16:14:11.345433+02:00) +INFO:root:2023-07-30 16:14:11.366689 : dimanche, 30. juillet 2023 04:14:11 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 16:19:11 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2023-07-30 16:14:35.361013 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:14:35] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:14:41.568090 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 16:14:41.571288 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 16:14:41.574851 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 16:14:41.580854 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 16:14:41.583857 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:root:2023-07-30 16:14:41.585906 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:14:41] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:14:41] "POST /myclass/api/get_invoice_by_customer/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:14:41.595491 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:14:41] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/customers/cus_OL95ZkVJlbwWyw/payment_methods?type=card +DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=type=card +INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/customers/cus_OL95ZkVJlbwWyw/payment_methods?type=card +DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=type=card +INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/customers/cus_OL95ZkVJlbwWyw/payment_methods?type=card response_code=200 +INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/customers/cus_OL95ZkVJlbwWyw/payment_methods?type=card response_code=200 +DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "pm_1NYSorAbmaEugrFTuc8nPCVA",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": "cherif DEV",\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": "pass"\n },\n "country": "US",\n "exp_month": 12,\n "exp_year": 2023,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1690459045,\n "customer": "cus_OL95ZkVJlbwWyw",\n "livemode": false,\n "metadata": {},\n "type": "card"\n }\n ],\n "has_more": false,\n "url": "/v1/customers/cus_OL95ZkVJlbwWyw/payment_methods"\n}' message='API response body' +DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "pm_1NYSorAbmaEugrFTuc8nPCVA",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": "cherif DEV",\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": "pass"\n },\n "country": "US",\n "exp_month": 12,\n "exp_year": 2023,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1690459045,\n "customer": "cus_OL95ZkVJlbwWyw",\n "livemode": false,\n "metadata": {},\n "type": "card"\n }\n ],\n "has_more": false,\n "url": "/v1/customers/cus_OL95ZkVJlbwWyw/payment_methods"\n}' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_ccXV2wPygyEKW6 message='Dashboard link for request' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_SYt4LbDdL7Kd3P message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:14:42] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:14:42] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:14:42.896101 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:14:42] "POST /myclass/api/Get_Partner_List_Partner_Client/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:14:45.127345 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 16:14:45.130343 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:14:45] "POST /myclass/api/Get_Given_Partner_Client/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:14:45] "POST /myclass/api/Get_List_Entity_Contact/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:14:46.541394 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:14:46] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:14:49.353301 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:14:49] "POST /myclass/api/Get_Given_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:15:00.417741 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 16:15:00.420757 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:15:00] "POST /myclass/api/Get_Given_Partner_Client/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:15:00] "POST /myclass/api/Get_List_Entity_Contact/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:15:03.185540 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:15:03] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:15:07.981665 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 16:15:07.984804 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:15:07] "POST /myclass/api/Get_Given_Partner_Client/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:15:07] "POST /myclass/api/Get_List_Entity_Contact/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:15:09.953333 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:15:09] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:15:11.465611 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:15:11] "POST /myclass/api/Get_Given_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:15:28.264716 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:15:28] "POST /myclass/api/Update_activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:15:28.319620 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:15:28] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:15:33.642242 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:15:33] "POST /myclass/api/Get_Given_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:15:43.914255 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:15:43] "POST /myclass/api/Get_Given_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:15:50.236611 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:15:50] "POST /myclass/api/Get_Given_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:15:58.429931 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:15:58] "POST /myclass/api/Update_activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:15:58.457886 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:15:58] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:16:03.352764 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:16:03] "POST /myclass/api/Get_Given_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:17:02.113063 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:17:02] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:17:12.176867 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:17:12] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:17:14.241828 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:17:14] "POST /myclass/api/Get_Given_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:17:24.314858 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:17:24] "POST /myclass/api/Update_activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:17:24.367353 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:17:24] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 16:17:43 CEST)" (scheduled at 2023-07-30 16:17:43.645935+02:00) +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 16:22:43.645935+02:00 (in 299.986973 seconds) +INFO:root:2023-07-30 16:17:43.661950 : dimanche, 30. juillet 2023 04:17:43 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 16:22:43 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 16:24:11.345433+02:00 (in 299.986784 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 16:24:11 CEST)" (scheduled at 2023-07-30 16:19:11.345433+02:00) +INFO:root:2023-07-30 16:19:11.361220 : dimanche, 30. juillet 2023 04:19:11 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 16:24:11 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Activite.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +INFO:root:2023-07-30 16:19:32.018558 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-07-30 16:19:32.018558 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-07-30 16:19:32.018558 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-07-30 16:19:32.018558 : ++ FLASK PORT 5001 ++ +INFO:root:2023-07-30 16:19:32.018558 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 16:24:32.079940+02:00 (in 299.996897 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 101-758-117 +INFO:root:2023-07-30 16:19:32.659982 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:19:32] "POST /myclass/api/Get_Given_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:19:42.425653 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:19:42] "POST /myclass/api/Update_activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:19:42.444170 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:19:42] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:19:46.008262 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:19:46] "POST /myclass/api/Get_Given_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:21:03.983721 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:21:03] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:21:15.126594 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:21:15] "POST /myclass/api/Get_Given_Activite/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 16:29:11.345433+02:00 (in 299.994849 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 16:29:11 CEST)" (scheduled at 2023-07-30 16:24:11.345433+02:00) +INFO:root:2023-07-30 16:24:11.359201 : dimanche, 30. juillet 2023 04:24:11 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 16:29:11 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 16:24:32 CEST)" (scheduled at 2023-07-30 16:24:32.079940+02:00) +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 16:29:32.079940+02:00 (in 299.996281 seconds) +INFO:root:2023-07-30 16:24:32.086149 : dimanche, 30. juillet 2023 04:24:32 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 16:29:32 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2023-07-30 16:26:51.423648 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:26:51] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:28:53.969744 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:28:53] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:29:09.248767 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:29:09] "POST /myclass/api/Get_Given_Activite/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 16:34:11.345433+02:00 (in 299.989429 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 16:34:11 CEST)" (scheduled at 2023-07-30 16:29:11.345433+02:00) +INFO:root:2023-07-30 16:29:11.365362 : dimanche, 30. juillet 2023 04:29:11 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 16:34:11 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 16:34:32.079940+02:00 (in 299.993076 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 16:34:32 CEST)" (scheduled at 2023-07-30 16:29:32.079940+02:00) +INFO:root:2023-07-30 16:29:32.089399 : dimanche, 30. juillet 2023 04:29:32 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 16:34:32 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2023-07-30 16:30:25.457451 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:30:25] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:33:08.387663 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:33:08] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:33:11.547707 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:33:11] "POST /myclass/api/Get_Given_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:33:33.447338 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:33:33] "POST /myclass/api/Update_activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:33:33.502980 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:33:33] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:33:39.861865 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:33:39] "POST /myclass/api/Get_Given_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:34:03.110153 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 16:34:03.114570 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 16:34:03.118954 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 16:34:03.120978 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:34:03] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:34:03] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:34:03.130393 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:34:03] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:34:03] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:34:03.891525 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:34:03] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:34:08.160183 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:34:08] "POST /myclass/api/Get_Partner_List_Partner_Client/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:34:10.096363 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 16:34:10.101375 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:34:10] "POST /myclass/api/Get_Given_Partner_Client/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:34:10] "POST /myclass/api/Get_List_Entity_Contact/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 16:39:11.345433+02:00 (in 299.996312 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 16:39:11 CEST)" (scheduled at 2023-07-30 16:34:11.345433+02:00) +INFO:root:2023-07-30 16:34:11.357357 : dimanche, 30. juillet 2023 04:34:11 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 16:39:11 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2023-07-30 16:34:11.870440 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:34:11] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:34:28.662164 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:34:28] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:34:31.670094 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:34:31] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 16:39:32.079940+02:00 (in 299.990640 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 16:39:32 CEST)" (scheduled at 2023-07-30 16:34:32.079940+02:00) +INFO:root:2023-07-30 16:34:32.091294 : dimanche, 30. juillet 2023 04:34:32 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 16:39:32 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2023-07-30 16:34:32.482998 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:34:32] "POST /myclass/api/Get_Given_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:34:36.887263 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:34:36] "POST /myclass/api/Get_Given_Contact/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:34:36.934141 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:34:36] "POST /myclass/api/Get_List_Entity_Contact/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:34:55.983083 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 16:34:56.853268 : Add_Contact - Il existe déjà un contact qui porte le même email principal = contact1@mysy.fr +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:34:56] "POST /myclass/api/Add_Contact/ HTTP/1.1" 200 - +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Contact.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +INFO:root:2023-07-30 16:35:49.759155 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-07-30 16:35:49.759155 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-07-30 16:35:49.759155 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-07-30 16:35:49.759155 : ++ FLASK PORT 5001 ++ +INFO:root:2023-07-30 16:35:49.759155 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 16:40:49.822185+02:00 (in 299.997944 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 101-758-117 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Contact.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +INFO:root:2023-07-30 16:36:57.138258 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-07-30 16:36:57.138258 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-07-30 16:36:57.138258 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-07-30 16:36:57.138258 : ++ FLASK PORT 5001 ++ +INFO:root:2023-07-30 16:36:57.138258 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 16:41:57.192608+02:00 (in 299.996957 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 101-758-117 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Contact.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +INFO:root:2023-07-30 16:37:09.507264 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-07-30 16:37:09.507264 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-07-30 16:37:09.508264 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-07-30 16:37:09.508264 : ++ FLASK PORT 5001 ++ +INFO:root:2023-07-30 16:37:09.508264 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 16:42:09.570596+02:00 (in 299.996924 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 101-758-117 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Contact.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 16:44:11.345433+02:00 (in 299.987581 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 16:44:11 CEST)" (scheduled at 2023-07-30 16:39:11.345433+02:00) +INFO:root:2023-07-30 16:39:11.359839 : dimanche, 30. juillet 2023 04:39:11 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 16:44:11 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2023-07-30 16:39:20.949428 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-07-30 16:39:20.949428 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-07-30 16:39:20.949428 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-07-30 16:39:20.949428 : ++ FLASK PORT 5001 ++ +INFO:root:2023-07-30 16:39:20.949428 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 16:44:21.014820+02:00 (in 299.997960 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 101-758-117 +INFO:root:2023-07-30 16:42:43.374604 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 16:42:43.378448 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:42:43] "POST /myclass/api/Get_List_Entity_Contact/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:42:43] "POST /myclass/api/Get_Given_Partner_Client/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 16:49:11.345433+02:00 (in 299.993236 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 16:49:11 CEST)" (scheduled at 2023-07-30 16:44:11.345433+02:00) +INFO:root:2023-07-30 16:44:11.362312 : dimanche, 30. juillet 2023 04:44:11 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 16:49:11 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 16:44:21 CEST)" (scheduled at 2023-07-30 16:44:21.014820+02:00) +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 16:49:21.014820+02:00 (in 299.990011 seconds) +INFO:root:2023-07-30 16:44:21.027560 : dimanche, 30. juillet 2023 04:44:21 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 16:49:21 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2023-07-30 16:47:01.761096 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 16:47:01.762720 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:47:01] "POST /myclass/api/Get_Given_Partner_Client/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:47:01] "POST /myclass/api/Get_List_Entity_Contact/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:47:24.459037 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 16:47:24.462909 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 16:47:24.465925 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 16:47:24.471586 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 16:47:24.476259 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:root:2023-07-30 16:47:24.478877 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:47:24] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:47:24.483513 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:47:24] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:47:24] "POST /myclass/api/get_invoice_by_customer/ HTTP/1.1" 200 - +INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/customers/cus_OL95ZkVJlbwWyw/payment_methods?type=card +DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=type=card +INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/customers/cus_OL95ZkVJlbwWyw/payment_methods?type=card +DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=type=card +INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/customers/cus_OL95ZkVJlbwWyw/payment_methods?type=card response_code=200 +DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "pm_1NYSorAbmaEugrFTuc8nPCVA",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": "cherif DEV",\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": "pass"\n },\n "country": "US",\n "exp_month": 12,\n "exp_year": 2023,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1690459045,\n "customer": "cus_OL95ZkVJlbwWyw",\n "livemode": false,\n "metadata": {},\n "type": "card"\n }\n ],\n "has_more": false,\n "url": "/v1/customers/cus_OL95ZkVJlbwWyw/payment_methods"\n}' message='API response body' +INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/customers/cus_OL95ZkVJlbwWyw/payment_methods?type=card response_code=200 +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_gmxDv5BjfD8agc message='Dashboard link for request' +DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "pm_1NYSorAbmaEugrFTuc8nPCVA",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": "cherif DEV",\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": "pass"\n },\n "country": "US",\n "exp_month": 12,\n "exp_year": 2023,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1690459045,\n "customer": "cus_OL95ZkVJlbwWyw",\n "livemode": false,\n "metadata": {},\n "type": "card"\n }\n ],\n "has_more": false,\n "url": "/v1/customers/cus_OL95ZkVJlbwWyw/payment_methods"\n}' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_IkT5rELOZ1uq0Z message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:47:25] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:47:25] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:47:25.775448 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:47:25] "POST /myclass/api/Get_Partner_List_Partner_Client/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:47:27.891230 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 16:47:27.894241 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:47:27] "POST /myclass/api/Get_Given_Partner_Client/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:47:27] "POST /myclass/api/Get_List_Entity_Contact/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:47:31.271783 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:47:31] "POST /myclass/api/Get_Given_Contact/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:47:31.298939 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:47:31] "POST /myclass/api/Get_List_Entity_Contact/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:47:38.697039 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 16:47:39.299777 : Add_Contact Le champ 'contact_recid' n'existe pas +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:47:39] "POST /myclass/api/Add_Contact/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:48:39.408672 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 16:48:39.414135 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:48:39] "POST /myclass/api/Get_Given_Partner_Client/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:48:39] "POST /myclass/api/Get_List_Entity_Contact/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 16:54:11.345433+02:00 (in 299.985483 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 16:54:11 CEST)" (scheduled at 2023-07-30 16:49:11.345433+02:00) +INFO:root:2023-07-30 16:49:11.364471 : dimanche, 30. juillet 2023 04:49:11 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 16:54:11 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2023-07-30 16:49:13.211339 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 16:49:13.213983 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:49:13] "POST /myclass/api/Get_Given_Partner_Client/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:49:13] "POST /myclass/api/Get_List_Entity_Contact/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 16:54:21.014820+02:00 (in 299.988356 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 16:54:21 CEST)" (scheduled at 2023-07-30 16:49:21.014820+02:00) +INFO:root:2023-07-30 16:49:21.028449 : dimanche, 30. juillet 2023 04:49:21 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 16:54:21 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2023-07-30 16:49:57.342379 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 16:49:57.345404 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 16:49:57.352841 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:49:57] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/customers/cus_OL95ZkVJlbwWyw/payment_methods?type=card +DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=type=card +INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/customers/cus_OL95ZkVJlbwWyw/payment_methods?type=card response_code=200 +DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "pm_1NYSorAbmaEugrFTuc8nPCVA",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": "cherif DEV",\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": "pass"\n },\n "country": "US",\n "exp_month": 12,\n "exp_year": 2023,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1690459045,\n "customer": "cus_OL95ZkVJlbwWyw",\n "livemode": false,\n "metadata": {},\n "type": "card"\n }\n ],\n "has_more": false,\n "url": "/v1/customers/cus_OL95ZkVJlbwWyw/payment_methods"\n}' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_nHGkFhK5dCkdCV message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:49:58] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:49:58.331599 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:49:58] "POST /myclass/api/Get_Partner_List_Partner_Client/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:50:04.850547 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 16:50:04.854221 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:50:04] "POST /myclass/api/Get_Given_Partner_Client/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:50:04] "POST /myclass/api/Get_List_Entity_Contact/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:50:10.468510 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:50:10] "POST /myclass/api/Get_Given_Contact/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:50:10.508596 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:50:10] "POST /myclass/api/Get_List_Entity_Contact/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:50:25.429010 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 16:50:25.434382 : Add_Contact Le champ 'contact_recid' n'existe pas +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:50:25] "POST /myclass/api/Add_Contact/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:51:56.026444 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 16:51:56.032994 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:51:56] "POST /myclass/api/Get_Given_Partner_Client/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:51:56] "POST /myclass/api/Get_List_Entity_Contact/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:52:05.388052 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:52:05] "POST /myclass/api/Update_Partner_Client/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:52:24.156641 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:52:24] "POST /myclass/api/Get_Given_Contact/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:52:24.183995 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:52:24] "POST /myclass/api/Get_List_Entity_Contact/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:52:30.773497 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 16:52:30.776475 : Update_Contact Le champ 'prenom' n'existe pas +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:52:30] "POST /myclass/api/Update_Contact/ HTTP/1.1" 200 - +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Contact.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +INFO:root:2023-07-30 16:53:28.202780 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-07-30 16:53:28.202780 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-07-30 16:53:28.202780 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-07-30 16:53:28.202780 : ++ FLASK PORT 5001 ++ +INFO:root:2023-07-30 16:53:28.202780 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 16:58:28.304926+02:00 (in 299.947986 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 101-758-117 +INFO:root:2023-07-30 16:53:28.456627 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:53:28] "POST /myclass/api/Update_Contact/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:53:28.818433 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:53:28] "POST /myclass/api/Get_List_Entity_Contact/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 16:59:11.345433+02:00 (in 299.997154 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 16:59:11 CEST)" (scheduled at 2023-07-30 16:54:11.345433+02:00) +INFO:root:2023-07-30 16:54:11.350861 : dimanche, 30. juillet 2023 04:54:11 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 16:59:11 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2023-07-30 16:55:38.753892 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 16:55:38.757579 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:55:38] "POST /myclass/api/Get_Given_Partner_Client/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:55:38] "POST /myclass/api/Get_List_Entity_Contact/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:57:54.759021 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 16:57:54.762310 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:57:54] "POST /myclass/api/Get_Given_Partner_Client/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:57:54] "POST /myclass/api/Get_List_Entity_Contact/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:57:58.737052 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:57:58] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:58:02.658721 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:58:02] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 16:58:06.416439 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:58:06] "POST /myclass/api/Get_Given_Activite/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 16:58:28 CEST)" (scheduled at 2023-07-30 16:58:28.304926+02:00) +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 17:03:28.304926+02:00 (in 299.983973 seconds) +INFO:root:2023-07-30 16:58:28.322981 : dimanche, 30. juillet 2023 04:58:28 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 17:03:28 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2023-07-30 16:58:43.599226 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 16:58:43] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 17:04:11.345433+02:00 (in 299.986660 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 17:04:11 CEST)" (scheduled at 2023-07-30 16:59:11.345433+02:00) +INFO:root:2023-07-30 16:59:11.368127 : dimanche, 30. juillet 2023 04:59:11 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 17:04:11 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2023-07-30 17:02:20.552022 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 17:02:20] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 17:02:25.264547 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 17:02:25] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 17:02:50.840733 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 17:02:50.845145 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 17:02:50.849167 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 17:02:50.852163 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 17:02:50] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-07-30 17:02:50.859166 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 17:02:50] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 17:02:50] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 17:02:50] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-07-30 17:02:52.079256 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 17:02:52] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-07-30 17:02:52.718646 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 17:02:52] "POST /myclass/api/Get_Partner_List_Partner_Client/ HTTP/1.1" 200 - +INFO:root:2023-07-30 17:02:54.684608 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 17:02:54.687824 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 17:02:54] "POST /myclass/api/Get_Given_Partner_Client/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 17:02:54] "POST /myclass/api/Get_List_Entity_Contact/ HTTP/1.1" 200 - +INFO:root:2023-07-30 17:02:57.777785 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 17:02:57] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 17:08:28.304926+02:00 (in 299.995942 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 17:08:28 CEST)" (scheduled at 2023-07-30 17:03:28.304926+02:00) +INFO:root:2023-07-30 17:03:28.311129 : dimanche, 30. juillet 2023 05:03:28 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 17:08:28 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 17:09:11.345433+02:00 (in 299.989614 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 17:09:11 CEST)" (scheduled at 2023-07-30 17:04:11.345433+02:00) +INFO:root:2023-07-30 17:04:11.357815 : dimanche, 30. juillet 2023 05:04:11 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 17:09:11 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2023-07-30 17:04:59.030781 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 17:04:59] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 17:06:25.999812 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 17:06:26.004292 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 17:06:26.006605 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 17:06:26] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-07-30 17:06:26.011467 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 17:06:26] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:root:2023-07-30 17:06:26.018660 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 17:06:26] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 17:06:26] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-07-30 17:06:26.603119 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 17:06:26] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-07-30 17:06:27.939479 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 17:06:27] "POST /myclass/api/Get_Partner_List_Partner_Client/ HTTP/1.1" 200 - +INFO:root:2023-07-30 17:06:29.617884 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 17:06:29.621367 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 17:06:29] "POST /myclass/api/Get_Given_Partner_Client/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 17:06:29] "POST /myclass/api/Get_List_Entity_Contact/ HTTP/1.1" 200 - +INFO:root:2023-07-30 17:06:31.719361 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 17:06:31] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 17:06:36.622848 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 17:06:36.625853 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 17:06:36] "POST /myclass/api/Get_List_Entity_Contact/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 17:06:36] "POST /myclass/api/Get_Given_Partner_Client/ HTTP/1.1" 200 - +INFO:root:2023-07-30 17:06:38.403835 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 17:06:38] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 17:06:39.505481 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 17:06:39] "POST /myclass/api/Get_Given_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 17:08:27.249100 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 17:08:27] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 17:13:28.304926+02:00 (in 299.997124 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 17:13:28 CEST)" (scheduled at 2023-07-30 17:08:28.304926+02:00) +INFO:root:2023-07-30 17:08:28.309802 : dimanche, 30. juillet 2023 05:08:28 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 17:13:28 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 17:14:11.345433+02:00 (in 299.993716 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 17:14:11 CEST)" (scheduled at 2023-07-30 17:09:11.345433+02:00) +INFO:root:2023-07-30 17:09:11.354278 : dimanche, 30. juillet 2023 05:09:11 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 17:14:11 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2023-07-30 17:10:10.338705 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 17:10:10] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 17:10:44.562661 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 17:10:44] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 17:10:49.062408 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 17:10:49] "POST /myclass/api/Get_Given_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 17:10:56.244380 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 17:10:56.246877 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 17:10:56.253171 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 17:10:56] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-07-30 17:10:56.257334 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 17:10:56] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:root:2023-07-30 17:10:56.269164 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 17:10:56] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 17:10:56] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-07-30 17:10:56.585815 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 17:10:56] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-07-30 17:10:58.372000 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 17:10:58] "POST /myclass/api/Get_Partner_List_Partner_Client/ HTTP/1.1" 200 - +INFO:root:2023-07-30 17:11:00.755469 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 17:11:00.758282 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 17:11:00] "POST /myclass/api/Get_Given_Partner_Client/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 17:11:00] "POST /myclass/api/Get_List_Entity_Contact/ HTTP/1.1" 200 - +INFO:root:2023-07-30 17:11:02.217767 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 17:11:02] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 17:11:04.029384 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 17:11:04] "POST /myclass/api/Get_Given_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 17:12:44.800889 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 17:12:44] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 17:12:49.764368 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 17:12:49] "POST /myclass/api/Get_Given_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 17:13:05.868323 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 17:13:05] "POST /myclass/api/Get_Given_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 17:13:12.952582 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 17:13:12] "POST /myclass/api/Get_Given_Activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 17:13:26.661433 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 17:13:26] "POST /myclass/api/Update_activite/ HTTP/1.1" 200 - +INFO:root:2023-07-30 17:13:26.737093 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 17:13:26] "POST /myclass/api/Get_List_Entity_Activite/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 17:18:28.304926+02:00 (in 299.997802 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 17:18:28 CEST)" (scheduled at 2023-07-30 17:13:28.304926+02:00) +INFO:root:2023-07-30 17:13:28.309195 : dimanche, 30. juillet 2023 05:13:28 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 17:18:28 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2023-07-30 17:13:35.134082 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 17:13:35] "POST /myclass/api/Get_Given_Contact/ HTTP/1.1" 200 - +INFO:root:2023-07-30 17:13:35.168573 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 17:13:35] "POST /myclass/api/Get_List_Entity_Contact/ HTTP/1.1" 200 - +INFO:root:2023-07-30 17:13:42.634805 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 17:13:42] "POST /myclass/api/Update_Contact/ HTTP/1.1" 200 - +INFO:root:2023-07-30 17:13:42.714316 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 17:13:42] "POST /myclass/api/Get_List_Entity_Contact/ HTTP/1.1" 200 - +INFO:root:2023-07-30 17:13:47.491689 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 17:13:47] "POST /myclass/api/Get_Given_Contact/ HTTP/1.1" 200 - +INFO:root:2023-07-30 17:13:47.518324 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 17:13:47] "POST /myclass/api/Get_List_Entity_Contact/ HTTP/1.1" 200 - +INFO:root:2023-07-30 17:13:53.871719 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 17:13:53] "POST /myclass/api/Get_Given_Contact/ HTTP/1.1" 200 - +INFO:root:2023-07-30 17:13:53.919219 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 17:13:53] "POST /myclass/api/Get_List_Entity_Contact/ HTTP/1.1" 200 - +INFO:root:2023-07-30 17:14:05.907915 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 17:14:05] "POST /myclass/api/Get_Given_Contact/ HTTP/1.1" 200 - +INFO:root:2023-07-30 17:14:05.939915 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 17:14:05] "POST /myclass/api/Get_List_Entity_Contact/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 17:19:11.345433+02:00 (in 299.991982 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 17:19:11 CEST)" (scheduled at 2023-07-30 17:14:11.345433+02:00) +INFO:root:2023-07-30 17:14:11.362472 : dimanche, 30. juillet 2023 05:14:11 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 17:19:11 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2023-07-30 17:15:37.975561 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 17:15:37.979608 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 17:15:37] "POST /myclass/api/Get_Given_Partner_Client/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 17:15:37] "POST /myclass/api/Get_List_Entity_Contact/ HTTP/1.1" 200 - +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Contact.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +INFO:root:2023-07-30 17:16:23.616475 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-07-30 17:16:23.616475 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-07-30 17:16:23.616475 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-07-30 17:16:23.616475 : ++ FLASK PORT 5001 ++ +INFO:root:2023-07-30 17:16:23.617483 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 17:21:23.676185+02:00 (in 299.996846 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 101-758-117 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Contact.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +INFO:root:2023-07-30 17:16:46.755922 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-07-30 17:16:46.755922 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-07-30 17:16:46.755922 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-07-30 17:16:46.755922 : ++ FLASK PORT 5001 ++ +INFO:root:2023-07-30 17:16:46.755922 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 17:21:46.815827+02:00 (in 299.996996 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 101-758-117 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Contact.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +INFO:root:2023-07-30 17:17:06.043485 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-07-30 17:17:06.043485 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-07-30 17:17:06.043485 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-07-30 17:17:06.043485 : ++ FLASK PORT 5001 ++ +INFO:root:2023-07-30 17:17:06.043485 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 17:22:06.100231+02:00 (in 299.997813 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 101-758-117 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Contact.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +INFO:root:2023-07-30 17:17:58.666696 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-07-30 17:17:58.667691 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-07-30 17:17:58.667691 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-07-30 17:17:58.667691 : ++ FLASK PORT 5001 ++ +INFO:root:2023-07-30 17:17:58.667691 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 17:22:58.727559+02:00 (in 299.997581 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 101-758-117 +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 17:24:11.345433+02:00 (in 299.985243 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 17:24:11 CEST)" (scheduled at 2023-07-30 17:19:11.345433+02:00) +INFO:root:2023-07-30 17:19:11.363020 : dimanche, 30. juillet 2023 05:19:11 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 17:24:11 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Contact.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +INFO:root:2023-07-30 17:19:49.216972 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-07-30 17:19:49.216972 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-07-30 17:19:49.216972 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-07-30 17:19:49.216972 : ++ FLASK PORT 5001 ++ +INFO:root:2023-07-30 17:19:49.216972 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 17:24:49.273042+02:00 (in 299.997005 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 101-758-117 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Contact.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +INFO:root:2023-07-30 17:20:01.953425 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-07-30 17:20:01.953425 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-07-30 17:20:01.953425 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-07-30 17:20:01.953425 : ++ FLASK PORT 5001 ++ +INFO:root:2023-07-30 17:20:01.953425 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 17:25:02.006787+02:00 (in 299.997962 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 101-758-117 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Contact.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +INFO:root:2023-07-30 17:20:44.977378 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-07-30 17:20:44.977378 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-07-30 17:20:44.977378 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-07-30 17:20:44.977378 : ++ FLASK PORT 5001 ++ +INFO:root:2023-07-30 17:20:44.977378 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 17:25:45.031538+02:00 (in 299.997954 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 101-758-117 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Contact.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +INFO:root:2023-07-30 17:21:05.767466 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-07-30 17:21:05.767466 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-07-30 17:21:05.767466 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-07-30 17:21:05.768451 : ++ FLASK PORT 5001 ++ +INFO:root:2023-07-30 17:21:05.768451 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 17:26:05.830730+02:00 (in 299.998024 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 101-758-117 +INFO:root:2023-07-30 17:21:45.602557 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 17:21:45.605627 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 17:21:45] "POST /myclass/api/Get_Given_Partner_Client/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 17:21:45] "POST /myclass/api/Get_List_Entity_Contact/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 17:29:11.345433+02:00 (in 299.992540 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 17:29:11 CEST)" (scheduled at 2023-07-30 17:24:11.345433+02:00) +INFO:root:2023-07-30 17:24:11.366051 : dimanche, 30. juillet 2023 05:24:11 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 17:29:11 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 17:26:05 CEST)" (scheduled at 2023-07-30 17:26:05.830730+02:00) +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 17:31:05.830730+02:00 (in 299.985021 seconds) +INFO:root:2023-07-30 17:26:05.848252 : dimanche, 30. juillet 2023 05:26:05 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 17:31:05 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2023-07-30 17:28:07.758082 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 17:28:07.762094 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 17:28:07] "POST /myclass/api/Get_Given_Partner_Client/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 17:28:07] "POST /myclass/api/Get_List_Entity_Contact/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 17:34:11.345433+02:00 (in 299.984448 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 17:34:11 CEST)" (scheduled at 2023-07-30 17:29:11.345433+02:00) +INFO:root:2023-07-30 17:29:11.364994 : dimanche, 30. juillet 2023 05:29:11 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 17:34:11 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2023-07-30 17:30:23.879723 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 17:30:23.883110 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 17:30:23] "POST /myclass/api/Get_Given_Partner_Client/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 17:30:23] "POST /myclass/api/Get_List_Entity_Contact/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 17:36:05.830730+02:00 (in 299.989186 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 17:36:05 CEST)" (scheduled at 2023-07-30 17:31:05.830730+02:00) +INFO:root:2023-07-30 17:31:05.843492 : dimanche, 30. juillet 2023 05:31:05 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 17:36:05 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2023-07-30 17:31:07.052962 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 17:31:07] "POST /myclass/api/Get_Given_Contact/ HTTP/1.1" 200 - +INFO:root:2023-07-30 17:31:07.087886 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 17:31:07] "POST /myclass/api/Get_List_Entity_Contact/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 17:39:11.345433+02:00 (in 299.992911 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 17:39:11 CEST)" (scheduled at 2023-07-30 17:34:11.345433+02:00) +INFO:root:2023-07-30 17:34:11.362379 : dimanche, 30. juillet 2023 05:34:11 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 17:39:11 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2023-07-30 17:35:15.469342 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 17:35:15.473249 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 17:35:15] "POST /myclass/api/Get_Given_Partner_Client/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 17:35:15] "POST /myclass/api/Get_List_Entity_Contact/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2023-07-30 17:41:05.830730+02:00 (in 299.982872 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 17:41:05 CEST)" (scheduled at 2023-07-30 17:36:05.830730+02:00) +INFO:root:2023-07-30 17:36:05.849859 : dimanche, 30. juillet 2023 05:36:05 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:05:00], next run at: 2023-07-30 17:41:05 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3127, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2023-07-30 17:36:08.208798 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 17:36:08.211837 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 17:36:08] "POST /myclass/api/Get_Given_Partner_Client/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 17:36:08] "POST /myclass/api/Get_List_Entity_Contact/ HTTP/1.1" 200 - +INFO:root:2023-07-30 17:36:52.097733 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 17:36:52] "POST /myclass/api/Get_Given_Contact/ HTTP/1.1" 200 - +INFO:root:2023-07-30 17:36:52.122234 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 17:36:52] "POST /myclass/api/Get_List_Entity_Contact/ HTTP/1.1" 200 - +INFO:root:2023-07-30 17:37:11.500106 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-07-30 17:37:11.503169 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 17:37:11] "POST /myclass/api/Get_Given_Partner_Client/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Jul/2023 17:37:11] "POST /myclass/api/Get_List_Entity_Contact/ HTTP/1.1" 200 - diff --git a/class_mgt.py b/class_mgt.py index 0f3b270..4140764 100644 --- a/class_mgt.py +++ b/class_mgt.py @@ -2261,8 +2261,6 @@ def get_partner_class(diction): """ Cette fonction recherche des formations avec une recherche large (like %value%) """ - - def find_partner_class_like(diction): try: ''' diff --git a/main.py b/main.py index 3d5b055..9900a7c 100644 --- a/main.py +++ b/main.py @@ -3386,7 +3386,7 @@ def Add_activite(): # On recupere le corps (payload) de la requete payload = mycommon.strip_dictionary (request.form.to_dict()) print(" ### Add_activite : payload = ",payload) - localStatus, message = Activite.Add_Contact(payload) + localStatus, message = Activite.Add_activite(payload) return jsonify(status=localStatus, message=message) """ diff --git a/prj_common.py b/prj_common.py index 5002b5e..51c7787 100644 --- a/prj_common.py +++ b/prj_common.py @@ -3150,7 +3150,7 @@ def Clean_For_SQL(sentence): try: h = html.parser sentence = h.unescape(sentence) - sentence = sentence.replace("'", "\'").replace('"', ' ').replace("’", "\’").replace("'", " ") + sentence = sentence.replace("'", "\\'").replace('"', ' ').replace("’", "\’") return sentence