From c2b289d2ac96e34514771906b6e10888603e646e Mon Sep 17 00:00:00 2001 From: cherif Date: Fri, 14 Apr 2023 22:51:38 +0200 Subject: [PATCH] 14/04/23 - 23h --- .idea/workspace.xml | 21 +- GlobalVariable.py | 11 +- Log/log_file.log | 2115 ++++++++++++++++++++++++++++++++++ email_mgt.py | 32 +- lms_chamilo/mysy_lms.py | 207 +++- main.py | 15 + tools_cherif/tools_cherif.py | 3 +- 7 files changed, 2376 insertions(+), 28 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 9b9a00a..ac6cd4b 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -1,11 +1,14 @@ - + - + - + + + + @@ -100,6 +110,7 @@ - \ No newline at end of file diff --git a/GlobalVariable.py b/GlobalVariable.py index 3d4eba4..103ba80 100644 --- a/GlobalVariable.py +++ b/GlobalVariable.py @@ -318,7 +318,7 @@ elif (MYSY_ENV == "DEV"): MYSY_MARIADB_USER_PASS = "fB5z%M)GG&g!n2c" MYSY_MARIADB_HOST = "192.168.1.21" MYSY_MARIADB_PORT = 3306 - MYSY_LMS_BDD = "mysy_db_chamilo_dev" + MYSY_LMS_BDD = "chamilo_dev2" MYSY_LMS_URL = "https://lms.mysy-training.com/" @@ -335,4 +335,11 @@ elif (MYSY_ENV == "REC"): """ Variable pour definir les unité de durée acceptées pour une formation """ -CLASS_DURATION_UNIT = ['heure', 'jour', 'mois', 'annee'] \ No newline at end of file +CLASS_DURATION_UNIT = ['heure', 'jour', 'mois', 'annee'] + + +""" +Cette variable est le l'url de base pour le lms. +cette valeur est utilisée pour la creation des url du lms +""" +LMS_BAS_URL = "mysy-training.fr" \ No newline at end of file diff --git a/Log/log_file.log b/Log/log_file.log index 615f262..3a0b18c 100644 --- a/Log/log_file.log +++ b/Log/log_file.log @@ -1559553,3 +1559553,2118 @@ INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:53:12] "POST /myclass/api/GetTableau INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:53:12] "POST /myclass/api/GetListEvaluation_Session/ HTTP/1.1" 200 - INFO:root:2023-04-10 16:53:12.764244 : Security check : IP adresse '127.0.0.1' connected INFO:werkzeug:127.0.0.1 - - [10/Apr/2023 16:53:12] "POST /myclass/api/GetSessionFormation/ HTTP/1.1" 200 - +INFO:root:2023-04-11 17:21:12.191773 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-04-11 17:21:12.192770 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-04-11 17:21:12.192770 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-04-11 17:21:12.192770 : ++ FLASK PORT 5001 ++ +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-04-11 17:21:27.990470 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-04-11 17:21:27.990470 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-04-11 17:21:27.990470 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-04-11 17:21:27.990470 : ++ FLASK PORT 5001 ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +INFO:root:2023-04-11 17:21:46.052379 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-11 17:21:46.055851 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-11 17:21:46.058840 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [11/Apr/2023 17:21:46] "POST /myclass/api/get_List_domaine_formation/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [11/Apr/2023 17:21:46] "POST /myclass/api/Get_Suggested_Fr_Cities/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [11/Apr/2023 17:21:46] "POST /myclass/api/Get_Suggested_Word/ HTTP/1.1" 200 - +INFO:root:2023-04-11 17:21:50.237184 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-11 17:21:50.238539 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-11 17:21:50.240917 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [11/Apr/2023 17:21:50] "POST /myclass/api/get_List_domaine_formation/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [11/Apr/2023 17:21:50] "POST /myclass/api/Get_Suggested_Fr_Cities/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [11/Apr/2023 17:21:50] "POST /myclass/api/Get_Suggested_Word/ HTTP/1.1" 200 - +INFO:root:2023-04-11 17:21:56.112196 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-11 17:21:57.276639 : partner_login Connexion partnair contact@mysy-training.com : OK, Date : 2023-04-11 17:21:56.114238 , _id = 641c21666cad03956ab28252 +INFO:root:2023-04-11 17:21:57.282386 : partner_login Connexion partener_token : OK , _id = 641c23520d5d7f136a823b3c +INFO:werkzeug:127.0.0.1 - - [11/Apr/2023 17:21:57] "POST /myclass/api/partner_login/ HTTP/1.1" 200 - +INFO:root:2023-04-11 17:21:57.621686 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-11 17:21:57.626099 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-11 17:21:57.630297 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [11/Apr/2023 17:21:57] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-04-11 17:21:57.639465 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-11 17:21:57.647011 : Connexion du partner recid = 8a77c1642a21a9a417a8583f4ef7f2f9c174a99996abb4c63a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [11/Apr/2023 17:21:57] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [11/Apr/2023 17:21:57] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [11/Apr/2023 17:21:57] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-04-11 17:21:58.028600 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [11/Apr/2023 17:21:58] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-04-11 17:22:02.272661 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-11 17:22:02.277738 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-11 17:22:02.288068 : Connexion du partner recid = 8a77c1642a21a9a417a8583f4ef7f2f9c174a99996abb4c63a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [11/Apr/2023 17:22:02] "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_NZuiEjjPZ6CP06/payment_methods?type=card +DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=type=card +INFO:root:2023-04-11 17:22:02.397936 : get_customer_payement_cards -Unexpected error communicating with Stripe. If this problem persists, +let us know at support@stripe.com. + +(Network error: ConnectionError: HTTPSConnectionPool(host='api.stripe.com', port=443): Max retries exceeded with url: /v1/customers/cus_NZuiEjjPZ6CP06/payment_methods?type=card (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))) - ERRORRRR AT Line : 140 +INFO:werkzeug:127.0.0.1 - - [11/Apr/2023 17:22:02] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 - +INFO:root:2023-04-11 17:22:42.893690 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-11 17:22:42.900754 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [11/Apr/2023 17:22:42] "POST /myclass/api/get_product_service/ HTTP/1.1" 200 - +INFO:root:2023-04-11 17:22:42.965466 : Get_Active_Ftions_Mysy_and_Lms -Can't connect to server on '192.168.1.21' (10065) - Line : 1172 +INFO:werkzeug:127.0.0.1 - - [11/Apr/2023 17:22:42] "POST /myclass/api/Get_Active_Ftions_Mysy_and_Lms/ HTTP/1.1" 200 - +INFO:root:2023-04-11 17:24:01.134769 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-11 17:24:01.140180 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [11/Apr/2023 17:24:01] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-04-11 17:24:01.145732 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-11 17:24:01.150384 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-11 17:24:01.158406 : Connexion du partner recid = 8a77c1642a21a9a417a8583f4ef7f2f9c174a99996abb4c63a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [11/Apr/2023 17:24:01] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [11/Apr/2023 17:24:01] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [11/Apr/2023 17:24:01] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-04-11 17:24:02.034116 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [11/Apr/2023 17:24:02] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-04-11 17:24:04.338739 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-11 17:24:04.343218 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-11 17:24:04.351380 : Connexion du partner recid = 8a77c1642a21a9a417a8583f4ef7f2f9c174a99996abb4c63a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [11/Apr/2023 17:24:04] "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_NZuiEjjPZ6CP06/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_NZuiEjjPZ6CP06/payment_methods?type=card response_code=200 +DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "pm_1Mol8jAbmaEugrFTZg2P5ePQ",\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": "mysy demo",\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": 1679566381,\n "customer": "cus_NZuiEjjPZ6CP06",\n "livemode": false,\n "metadata": {},\n "type": "card"\n }\n ],\n "has_more": false,\n "url": "/v1/customers/cus_NZuiEjjPZ6CP06/payment_methods"\n}' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_eA3HPO1NOCP4j2 message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [11/Apr/2023 17:24:04] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 - +INFO:root:2023-04-11 17:24:44.549487 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-11 17:24:44.555570 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-11 17:24:44.561860 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-11 17:24:44.569661 : Connexion du partner recid = 8a77c1642a21a9a417a8583f4ef7f2f9c174a99996abb4c63a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [11/Apr/2023 17:24:44] "POST /myclass/api/get_product_service/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [11/Apr/2023 17:24:44] "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_NZuiEjjPZ6CP06/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_NZuiEjjPZ6CP06/payment_methods?type=card response_code=200 +DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "pm_1Mol8jAbmaEugrFTZg2P5ePQ",\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": "mysy demo",\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": 1679566381,\n "customer": "cus_NZuiEjjPZ6CP06",\n "livemode": false,\n "metadata": {},\n "type": "card"\n }\n ],\n "has_more": false,\n "url": "/v1/customers/cus_NZuiEjjPZ6CP06/payment_methods"\n}' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_E8Kg5rvqb1s5On message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [11/Apr/2023 17:24:46] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 - +INFO:root:2023-04-11 17:24:47.073833 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-11 17:24:47.086993 : Connexion du partner recid = 8a77c1642a21a9a417a8583f4ef7f2f9c174a99996abb4c63a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [11/Apr/2023 17:24:47] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:root:2023-04-11 17:30:10.474514 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-11 17:30:10.479864 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-11 17:30:10.487098 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [11/Apr/2023 17:30:10] "POST /myclass/api/get_product_service/ HTTP/1.1" 200 - +INFO:root:2023-04-11 17:30:10.495664 : Connexion du partner recid = 8a77c1642a21a9a417a8583f4ef7f2f9c174a99996abb4c63a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [11/Apr/2023 17:30:10] "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_NZuiEjjPZ6CP06/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_NZuiEjjPZ6CP06/payment_methods?type=card response_code=200 +DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "pm_1Mol8jAbmaEugrFTZg2P5ePQ",\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": "mysy demo",\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": 1679566381,\n "customer": "cus_NZuiEjjPZ6CP06",\n "livemode": false,\n "metadata": {},\n "type": "card"\n }\n ],\n "has_more": false,\n "url": "/v1/customers/cus_NZuiEjjPZ6CP06/payment_methods"\n}' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_XYOHBQMb2Sui7b message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [11/Apr/2023 17:30:13] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 - +INFO:root:2023-04-11 17:30:13.981903 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-11 17:30:13.991178 : Connexion du partner recid = 8a77c1642a21a9a417a8583f4ef7f2f9c174a99996abb4c63a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [11/Apr/2023 17:30:13] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:root:2023-04-11 17:31:09.940715 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-11 17:31:09.946345 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-11 17:31:09.953926 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-11 17:31:09.958370 : Connexion du partner recid = 8a77c1642a21a9a417a8583f4ef7f2f9c174a99996abb4c63a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [11/Apr/2023 17:31:09] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [11/Apr/2023 17:31:09] "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_NZuiEjjPZ6CP06/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_NZuiEjjPZ6CP06/payment_methods?type=card response_code=200 +DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "pm_1Mol8jAbmaEugrFTZg2P5ePQ",\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": "mysy demo",\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": 1679566381,\n "customer": "cus_NZuiEjjPZ6CP06",\n "livemode": false,\n "metadata": {},\n "type": "card"\n }\n ],\n "has_more": false,\n "url": "/v1/customers/cus_NZuiEjjPZ6CP06/payment_methods"\n}' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_efH52UkF3on0bb message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [11/Apr/2023 17:31:14] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 - +INFO:root:2023-04-11 17:31:14.162476 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-11 17:31:14.169822 : Connexion du partner recid = 8a77c1642a21a9a417a8583f4ef7f2f9c174a99996abb4c63a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [11/Apr/2023 17:31:14] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:root:2023-04-11 17:31:24.082710 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-11 17:31:24.090695 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [11/Apr/2023 17:31:24] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-04-11 17:31:24.097237 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-11 17:31:24.105588 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-11 17:31:24.114614 : Connexion du partner recid = 8a77c1642a21a9a417a8583f4ef7f2f9c174a99996abb4c63a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [11/Apr/2023 17:31:24] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [11/Apr/2023 17:31:24] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [11/Apr/2023 17:31:24] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-04-11 17:31:25.310795 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [11/Apr/2023 17:31:25] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-04-11 17:31:33.682327 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-11 17:31:33.688857 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-11 17:31:33.698179 : Connexion du partner recid = 8a77c1642a21a9a417a8583f4ef7f2f9c174a99996abb4c63a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [11/Apr/2023 17:31:33] "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_NZuiEjjPZ6CP06/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_NZuiEjjPZ6CP06/payment_methods?type=card response_code=200 +DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "pm_1Mol8jAbmaEugrFTZg2P5ePQ",\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": "mysy demo",\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": 1679566381,\n "customer": "cus_NZuiEjjPZ6CP06",\n "livemode": false,\n "metadata": {},\n "type": "card"\n }\n ],\n "has_more": false,\n "url": "/v1/customers/cus_NZuiEjjPZ6CP06/payment_methods"\n}' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_HMDErUUiKfpckK message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [11/Apr/2023 17:31:35] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 - +INFO:root:2023-04-11 17:31:39.524660 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-11 17:31:39.532158 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-11 17:31:39.538179 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-11 17:31:39.546205 : Connexion du partner recid = 8a77c1642a21a9a417a8583f4ef7f2f9c174a99996abb4c63a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [11/Apr/2023 17:31:39] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [11/Apr/2023 17:31:39] "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_NZuiEjjPZ6CP06/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_NZuiEjjPZ6CP06/payment_methods?type=card response_code=200 +DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "pm_1Mol8jAbmaEugrFTZg2P5ePQ",\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": "mysy demo",\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": 1679566381,\n "customer": "cus_NZuiEjjPZ6CP06",\n "livemode": false,\n "metadata": {},\n "type": "card"\n }\n ],\n "has_more": false,\n "url": "/v1/customers/cus_NZuiEjjPZ6CP06/payment_methods"\n}' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_acvhwy0b3zKrU4 message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [11/Apr/2023 17:31:40] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 - +INFO:root:2023-04-11 17:31:41.083437 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-11 17:31:41.096569 : Connexion du partner recid = 8a77c1642a21a9a417a8583f4ef7f2f9c174a99996abb4c63a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [11/Apr/2023 17:31:41] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:root:2023-04-11 17:31:58.172939 : 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_1MolBgAbmaEugrFTOiroBxMJ +DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data= +INFO:root:2023-04-11 17:31:58.200685 : Security check : IP adresse '127.0.0.1' connected +INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/subscriptions/sub_1MolBgAbmaEugrFTOiroBxMJ response_code=200 +DEBUG:stripe:body='{\n "id": "sub_1MolBgAbmaEugrFTOiroBxMJ",\n "object": "subscription",\n "application": null,\n "application_fee_percent": null,\n "automatic_tax": {\n "enabled": false\n },\n "billing_cycle_anchor": 1679566564,\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": 1679566564,\n "currency": "eur",\n "current_period_end": 1682244964,\n "current_period_start": 1679566564,\n "customer": "cus_NZuiEjjPZ6CP06",\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_NZv1jqWdZAlFeU",\n "object": "subscription_item",\n "billing_thresholds": null,\n "created": 1679566564,\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": 10,\n "subscription": "sub_1MolBgAbmaEugrFTOiroBxMJ",\n "tax_rates": []\n }\n ],\n "has_more": false,\n "total_count": 1,\n "url": "/v1/subscription_items?subscription=sub_1MolBgAbmaEugrFTOiroBxMJ"\n },\n "latest_invoice": "in_1MolBgAbmaEugrFTDL0rDnV2",\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": 10,\n "schedule": null,\n "start_date": 1679566564,\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_XjEqrTrjixBnwc message='Dashboard link for request' +INFO:stripe:message='Request to Stripe api' method=post path=https://api.stripe.com/v1/subscriptions/sub_1MolBgAbmaEugrFTOiroBxMJ +DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=proration_behavior=create_prorations&items[0][id]=si_NZv1jqWdZAlFeU&items[0][price]=price_1MT3FLAbmaEugrFTDgw7MVgb&items[0][quantity]=8 +INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/subscriptions/sub_1MolBgAbmaEugrFTOiroBxMJ response_code=200 +DEBUG:stripe:body='{\n "id": "sub_1MolBgAbmaEugrFTOiroBxMJ",\n "object": "subscription",\n "application": null,\n "application_fee_percent": null,\n "automatic_tax": {\n "enabled": false\n },\n "billing_cycle_anchor": 1679566564,\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": 1679566564,\n "currency": "eur",\n "current_period_end": 1682244964,\n "current_period_start": 1679566564,\n "customer": "cus_NZuiEjjPZ6CP06",\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_NZv1jqWdZAlFeU",\n "object": "subscription_item",\n "billing_thresholds": null,\n "created": 1679566564,\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": 8,\n "subscription": "sub_1MolBgAbmaEugrFTOiroBxMJ",\n "tax_rates": []\n }\n ],\n "has_more": false,\n "total_count": 1,\n "url": "/v1/subscription_items?subscription=sub_1MolBgAbmaEugrFTOiroBxMJ"\n },\n "latest_invoice": "in_1MolBgAbmaEugrFTDL0rDnV2",\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": 8,\n "schedule": null,\n "start_date": 1679566564,\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_4MnGeLK86TRjBn message='Dashboard link for request' +INFO:root:2023-04-11 17:33:00.474786 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-11 17:33:00.479902 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [11/Apr/2023 17:33:00] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-04-11 17:33:00.485107 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-11 17:33:00.493494 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-11 17:33:00.498707 : Connexion du partner recid = 8a77c1642a21a9a417a8583f4ef7f2f9c174a99996abb4c63a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [11/Apr/2023 17:33:00] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [11/Apr/2023 17:33:00] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [11/Apr/2023 17:33:00] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-04-11 17:33:01.742299 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [11/Apr/2023 17:33:01] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +DEBUG:xhtml2pdf:pisaDocument options: + src = '\n\n\n\n\t
\n\t\tMysy Training Logo \n\t
\n\t\n\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t\t
\n\t\t\t\t\n\t\t\t\t\tMySy Demo 2303
\n\t\t\t\t\t2 place du test
\n\t\t\t\t\t75001 Paris
\n\t\t\t\t\tFrane
\n\n\t\t\t\t
\n\n\n\t\t\t\t\n\n\t\t\t\t\tFacture n° FACT_234000223\n\n\n\t\t\t\t
\n\t\t\t\t
\n\n\n\t\t\t\t\n\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\n\t\t\t\t
Date de facture: 11/04/2023 Date échéance : 11/04/2023
\n\n\t\t\t\t\n\t\t\t\t\tOrigine : MySy_005m0V\n\t\t\t\t\n\n\t\t\t\t
 
\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t
DescriptionQuantitéPrix unitaireMontant
Standard850400.0
\n\t\t\t\t\n\n\t\t\t\t
 
\n\n\t\t\t\n\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t
    Montant HT: 400.0
    TVA 20% : 80.0
    Montant TTC : 480.0
\n\n\n\t\t\t
\n\t\t\t
 
\n\t\t\t
 
\n\t\t\t
 
\n\n\n\n\t\t\n\n\t\n\t
\n\t
\n\t\t\n\n\t\t\t

MySy Training
\n\n\t\t\t\tCour du Havre 1, 75008, Paris
\n\n\t\t\t\tMySy Training Technology (MTT), société par actions simplifiée au capital de 1000 euros, dont le siège\n\t\t\t\tsocial est\n\t\t\t\tsitué 2, place des magnolias, 77680, Roissy en Brie, immatriculée au Registre du Commerce et des\n\t\t\t\tSociétés sous le numéro 917 500 860 R.C.S. Melun\n\t\t\t

\n\t\t\n\t
\n\n\n' + dest = <_io.BufferedRandom name='./Invoices/invoice_FACT_234000223.pdf'> + path = None + link_callback = None + xhtml = False + context_meta = None +DEBUG:xhtml2pdf:FileObject 'https://img.mysy-training.com/MYSY-LOGO-BLUE.png', Basepath: 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\__dummy__' +DEBUG:xhtml2pdf:URLParts: (ParseResult(scheme='https', netloc='img.mysy-training.com', path='/MYSY-LOGO-BLUE.png', params='', query='', fragment=''), 'https') +DEBUG:xhtml2pdf:Parsing img tag, src: +DEBUG:xhtml2pdf:Attrs: {'src': , 'width': 75.0, 'height': None, 'align': None, 'id': None} +DEBUG:xhtml2pdf:Sending request for https://img.mysy-training.com/MYSY-LOGO-BLUE.png with httplib +DEBUG:xhtml2pdf:Uri parsed: https://img.mysy-training.com/MYSY-LOGO-BLUE.png +DEBUG:PIL.PngImagePlugin:STREAM b'IHDR' 16 13 +DEBUG:PIL.PngImagePlugin:STREAM b'tEXt' 41 25 +DEBUG:PIL.PngImagePlugin:STREAM b'IDAT' 78 6645 +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:Col widths: [None, None] +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:Col 0 has width 0.0 +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:Col 1 has width 0.0 +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:Col 2 has width 0.0 +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:Col 3 has width 0.0 +DEBUG:xhtml2pdf:Col widths: [None, None, None, None] +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:Col widths: [None, None, None, None] +DEBUG:PIL.PngImagePlugin:STREAM b'IHDR' 16 13 +DEBUG:PIL.PngImagePlugin:STREAM b'tEXt' 41 25 +DEBUG:PIL.PngImagePlugin:STREAM b'IDAT' 78 6645 +DEBUG:paramiko.transport:starting thread (client mode): 0x92e142b0 +DEBUG:paramiko.transport:Local version/idstring: SSH-2.0-paramiko_3.1.0 +DEBUG:paramiko.transport:Remote version/idstring: SSH-2.0-OpenSSH_8.4p1 Debian-5+deb11u1 +INFO:paramiko.transport:Connected (version 2.0, client OpenSSH_8.4p1) +DEBUG:paramiko.transport:=== Key exchange possibilities === +DEBUG:paramiko.transport:kex algos: curve25519-sha256, curve25519-sha256@libssh.org, ecdh-sha2-nistp256, ecdh-sha2-nistp384, ecdh-sha2-nistp521, diffie-hellman-group-exchange-sha256, diffie-hellman-group16-sha512, diffie-hellman-group18-sha512, diffie-hellman-group14-sha256 +DEBUG:paramiko.transport:server key: rsa-sha2-512, rsa-sha2-256, ssh-rsa, ecdsa-sha2-nistp256, ssh-ed25519 +DEBUG:paramiko.transport:client encrypt: chacha20-poly1305@openssh.com, aes128-ctr, aes192-ctr, aes256-ctr, aes128-gcm@openssh.com, aes256-gcm@openssh.com +DEBUG:paramiko.transport:server encrypt: chacha20-poly1305@openssh.com, aes128-ctr, aes192-ctr, aes256-ctr, aes128-gcm@openssh.com, aes256-gcm@openssh.com +DEBUG:paramiko.transport:client mac: umac-64-etm@openssh.com, umac-128-etm@openssh.com, hmac-sha2-256-etm@openssh.com, hmac-sha2-512-etm@openssh.com, hmac-sha1-etm@openssh.com, umac-64@openssh.com, umac-128@openssh.com, hmac-sha2-256, hmac-sha2-512, hmac-sha1 +DEBUG:paramiko.transport:server mac: umac-64-etm@openssh.com, umac-128-etm@openssh.com, hmac-sha2-256-etm@openssh.com, hmac-sha2-512-etm@openssh.com, hmac-sha1-etm@openssh.com, umac-64@openssh.com, umac-128@openssh.com, hmac-sha2-256, hmac-sha2-512, hmac-sha1 +DEBUG:paramiko.transport:client compress: none, zlib@openssh.com +DEBUG:paramiko.transport:server compress: none, zlib@openssh.com +DEBUG:paramiko.transport:client lang: +DEBUG:paramiko.transport:server lang: +DEBUG:paramiko.transport:kex follows: False +DEBUG:paramiko.transport:=== Key exchange agreements === +DEBUG:paramiko.transport:Kex: curve25519-sha256@libssh.org +DEBUG:paramiko.transport:HostKey: ssh-ed25519 +DEBUG:paramiko.transport:Cipher: aes128-ctr +DEBUG:paramiko.transport:MAC: hmac-sha2-256 +DEBUG:paramiko.transport:Compression: none +DEBUG:paramiko.transport:=== End of kex handshake === +DEBUG:paramiko.transport:kex engine KexCurve25519 specified hash_algo +DEBUG:paramiko.transport:Switch to new keys ... +DEBUG:paramiko.transport:Attempting password auth... +DEBUG:paramiko.transport:Got EXT_INFO: {'server-sig-algs': b'ssh-ed25519,sk-ssh-ed25519@openssh.com,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ecdsa-sha2-nistp256@openssh.com,webauthn-sk-ecdsa-sha2-nistp256@openssh.com'} +DEBUG:paramiko.transport:userauth is OK +INFO:paramiko.transport:Authentication (password) successful! +DEBUG:paramiko.transport:[chan 0] Max packet in: 32768 bytes +DEBUG:paramiko.transport:Received global request "hostkeys-00@openssh.com" +DEBUG:paramiko.transport:Rejecting "hostkeys-00@openssh.com" global request from server. +DEBUG:paramiko.transport:[chan 0] Max packet out: 32768 bytes +DEBUG:paramiko.transport:Secsh channel 0 opened. +DEBUG:paramiko.transport:[chan 0] Sesch channel 0 request ok +INFO:paramiko.transport.sftp:[chan 0] Opened sftp connection (server version 3) +DEBUG:paramiko.transport.sftp:[chan 0] open(b'/var/www/html/sftp_iexercice/mysy_invoices_dev/invoice_FACT_234000223.pdf', 'wb') +DEBUG:paramiko.transport.sftp:[chan 0] open(b'/var/www/html/sftp_iexercice/mysy_invoices_dev/invoice_FACT_234000223.pdf', 'wb') -> 00000000 +DEBUG:paramiko.transport.sftp:[chan 0] close(00000000) +DEBUG:paramiko.transport.sftp:[chan 0] stat(b'/var/www/html/sftp_iexercice/mysy_invoices_dev/invoice_FACT_234000223.pdf') +INFO:root:2023-04-11 17:33:12.473716 : convertHtmlToPdf DEPLACEMENT DE ./Invoices/invoice_FACT_234000223.pdf VERS /var/www/html/sftp_iexercice/mysy_invoices_dev/invoice_FACT_234000223.pdf EST OKKKK +INFO:paramiko.transport.sftp:[chan 0] sftp session closed. +DEBUG:paramiko.transport:[chan 0] EOF sent (0) +INFO:root:2023-04-11 17:33:12.474752 : Impression facture N° FACT_234000223 OK +DEBUG:paramiko.transport:EOF in transport thread +INFO:root:2023-04-11 17:33:12.510645 : UpdataPartnerRankingClass - Le RANKING de 5 ont été mise à jour avec la valeur {'display_rank': '20', 'date_update': '2023-04-11 17:33:12.485150'} +INFO:werkzeug:127.0.0.1 - - [11/Apr/2023 17:33:12] "POST /myclass/api/createOrder/ HTTP/1.1" 200 - +INFO:root:2023-04-11 17:33:24.363627 : Disable_MySy_LMS_Class_Of_User -Can't connect to server on '192.168.1.21' (10060) - Line : 626 +INFO:werkzeug:127.0.0.1 - - [11/Apr/2023 17:33:24] "POST /myclass/api/strip_update_subscription_plan/ HTTP/1.1" 200 - +INFO:root:2023-04-13 15:59:41.569315 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-04-13 15:59:41.570328 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-04-13 15:59:41.570328 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-04-13 15:59:41.570328 : ++ FLASK PORT 5001 ++ +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-04-13 15:59:53.313201 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-04-13 15:59:53.313201 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-04-13 15:59:53.313201 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-04-13 15:59:53.313201 : ++ FLASK PORT 5001 ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +INFO:root:2023-04-14 11:47:17.396434 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-04-14 11:47:17.397383 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-04-14 11:47:17.397383 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-04-14 11:47:17.398403 : ++ FLASK PORT 5001 ++ +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-04-14 11:47:26.165908 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-04-14 11:47:26.166908 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-04-14 11:47:26.166908 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-04-14 11:47:26.166908 : ++ FLASK PORT 5001 ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 105-942-311 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\email_mgt.py', reloading +INFO:werkzeug: * Restarting with stat +INFO:root:2023-04-14 11:48:41.020288 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-04-14 11:48:41.020288 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-04-14 11:48:41.020288 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-04-14 11:48:41.020288 : ++ FLASK PORT 5001 ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 105-942-311 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\email_mgt.py', reloading +INFO:werkzeug: * Restarting with stat +INFO:root:2023-04-14 11:49:26.857837 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-04-14 11:49:26.857837 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-04-14 11:49:26.857837 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-04-14 11:49:26.857837 : ++ FLASK PORT 5001 ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 105-942-311 +INFO:root:2023-04-14 11:51:05.432866 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 11:51:05.435265 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 11:51:05.437427 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:05] "POST /myclass/api/get_List_domaine_formation/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:05] "POST /myclass/api/Get_Suggested_Fr_Cities/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:05] "POST /myclass/api/Get_Suggested_Word/ HTTP/1.1" 200 - +INFO:root:2023-04-14 11:51:06.315889 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 11:51:06.318885 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:06] "POST /myclass/api/get_all_class/ HTTP/1.1" 200 - +INFO:root:2023-04-14 11:51:07.403429 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 11:51:07.407301 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 11:51:07.411601 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 11:51:07.415604 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 11:51:07.420600 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 11:51:07.425632 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:07] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:07] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:07] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:07] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:07] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:07] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-14 11:51:07.439602 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 11:51:07.441051 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 11:51:07.446229 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 11:51:07.453384 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:07] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-14 11:51:07.456614 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:07] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:07] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-14 11:51:07.464830 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:07] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:07] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-14 11:51:07.471974 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:07] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-14 11:51:07.476995 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:07] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-14 11:51:07.483310 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 11:51:07.484386 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 11:51:07.490443 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:07] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:07] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-14 11:51:07.498082 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:07] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:07] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-14 11:51:07.503319 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:07] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:07] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-14 11:51:07.512170 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:07] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-14 11:51:24.259379 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:24] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-14 11:51:24.264405 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 11:51:24.267484 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:24] "POST /myclass/api/get_associated_class_of_partnair/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:24] "POST /myclass/api/get_class/ HTTP/1.1" 200 - +INFO:root:2023-04-14 11:51:37.677343 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 11:51:37.679727 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 11:51:37.683323 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:37] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-14 11:51:37.687334 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:37] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:37] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-14 11:51:37.694182 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 11:51:37.697437 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:37] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-14 11:51:37.702445 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:37] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-14 11:51:37.708438 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:37] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-14 11:51:37.712120 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:37] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-14 11:51:37.717217 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:37] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:37] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-14 11:51:37.721229 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:37] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-14 11:51:37.728056 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 11:51:37.729048 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:37] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-14 11:51:37.733054 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:37] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:37] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-14 11:51:37.738622 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 11:51:37.741085 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 11:51:37.746218 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:37] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:37] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-14 11:51:37.752355 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:37] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-14 11:51:37.755351 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:37] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-14 11:51:37.760456 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:37] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:37] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:37] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-14 11:51:40.653815 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 11:51:40.656309 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:40] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-14 11:51:40.660711 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 11:51:40.663214 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:40] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:40] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-14 11:51:40.670770 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:40] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-14 11:51:40.673771 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:40] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-14 11:51:40.678163 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:40] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-14 11:51:40.683212 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 11:51:40.687391 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:40] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:40] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-14 11:51:40.689387 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 11:51:40.693866 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:40] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-14 11:51:40.698074 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:40] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:40] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-14 11:51:40.704065 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 11:51:40.705469 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:40] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-14 11:51:40.710482 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:40] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-14 11:51:40.716495 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 11:51:40.719484 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:40] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:40] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:40] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-14 11:51:40.726053 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:40] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-14 11:51:40.732151 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:40] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-14 11:51:40.736428 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:40] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:40] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-14 11:51:43.633205 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 11:51:43.636507 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:43] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-14 11:51:43.639886 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 11:51:43.643791 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:43] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-14 11:51:43.649861 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:43] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-14 11:51:43.653894 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:43] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:43] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-14 11:51:43.659269 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 11:51:43.660288 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:43] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-14 11:51:43.665676 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:43] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-14 11:51:43.670186 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 11:51:43.673839 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:43] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:43] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-14 11:51:43.680019 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:43] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:43] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-14 11:51:43.686828 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:43] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-14 11:51:43.690160 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:43] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-14 11:51:43.693822 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 11:51:43.697279 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:43] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:43] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-14 11:51:43.701581 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:43] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-14 11:51:43.705960 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 11:51:43.709047 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:43] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:43] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-14 11:51:43.711716 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:43] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:43] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-14 11:51:45.678347 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 11:51:45.681884 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:45] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-14 11:51:45.685877 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:45] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-14 11:51:45.689878 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:45] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-14 11:51:45.693881 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 11:51:45.697881 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:45] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-14 11:51:45.701886 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:45] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:45] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-14 11:51:45.708472 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 11:51:45.709824 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:45] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-14 11:51:45.715394 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:45] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-14 11:51:45.719382 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:45] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:45] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-14 11:51:45.724717 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:45] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-14 11:51:45.727740 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 11:51:45.731964 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 11:51:45.732981 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:45] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-14 11:51:45.739151 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:45] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-14 11:51:45.743173 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:45] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:45] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-14 11:51:45.750313 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:45] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:45] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-14 11:51:45.753944 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:45] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-14 11:51:45.759965 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:45] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 11:51:45] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-14 14:12:59.337383 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-04-14 14:12:59.337383 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-04-14 14:12:59.337383 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-04-14 14:12:59.337383 : ++ FLASK PORT 5001 ++ +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-04-14 14:13:08.445126 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-04-14 14:13:08.446128 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-04-14 14:13:08.446128 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-04-14 14:13:08.446128 : ++ FLASK PORT 5001 ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 105-942-311 +INFO:root:2023-04-14 14:21:39.276893 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 14:21:39.277897 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 14:21:39.278894 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 14:21:39] "OPTIONS /myclass/api/Get_Suggested_Word/ HTTP/1.1" 405 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 14:21:39] "OPTIONS /myclass/api/Get_Suggested_Fr_Cities/ HTTP/1.1" 405 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 14:21:39] "OPTIONS /myclass/api/get_List_domaine_formation/ HTTP/1.1" 405 - +INFO:root:2023-04-14 14:21:39.444854 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 14:21:39] "OPTIONS /myclass/api/get_all_class/ HTTP/1.1" 405 - +INFO:root:2023-04-14 14:21:39.519231 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 14:21:39] "POST /myclass/api/Get_Suggested_Word/ HTTP/1.1" 200 - +INFO:root:2023-04-14 14:21:39.626347 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 14:21:39.628424 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 14:21:39.630424 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 14:21:39.632745 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 14:21:39] "POST /myclass/api/get_List_domaine_formation/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 14:21:39] "POST /myclass/api/Get_Suggested_Fr_Cities/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 14:21:39] "POST /myclass/api/get_all_class/ HTTP/1.1" 200 - +INFO:root:2023-04-14 14:21:39.905559 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 14:21:39] "OPTIONS /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 405 - +INFO:root:2023-04-14 14:21:40.220927 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 14:21:40.224468 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 14:21:40.224987 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 14:21:40.224987 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 14:21:40.224987 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 14:21:40.226006 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 14:21:40] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 14:21:40] "OPTIONS /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 405 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 14:21:40] "OPTIONS /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 405 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 14:21:40] "OPTIONS /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 405 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 14:21:40] "OPTIONS /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 405 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 14:21:40] "OPTIONS /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 405 - +INFO:root:2023-04-14 14:21:40.540173 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 14:21:40.542173 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 14:21:40.543168 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 14:21:40.544171 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 14:21:40.547170 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 14:21:40.556496 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 14:21:40] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 14:21:40] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 14:21:40] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 14:21:40] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 14:21:40] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 14:21:40] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-14 14:21:40.875211 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 14:21:40.876222 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 14:21:40.877225 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 14:21:40.881582 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 14:21:40] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 14:21:40] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-14 14:21:40.888967 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 14:21:40] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 14:21:40] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-14 14:21:40.893954 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 14:21:40] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 14:21:40] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-14 14:21:41.203651 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 14:21:41.204651 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 14:21:41.205662 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 14:21:41.206663 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 14:21:41.209132 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 14:21:41.211133 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 14:21:41] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 14:21:41] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 14:21:41] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 14:21:41] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 14:21:41] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 14:21:41] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-14 14:21:41.529963 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 14:21:41] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-14 14:29:07.321216 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 14:29:07.321216 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 14:29:07.322215 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 14:29:07] "OPTIONS /myclass/api/Get_Suggested_Word/ HTTP/1.1" 405 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 14:29:07] "OPTIONS /myclass/api/Get_Suggested_Fr_Cities/ HTTP/1.1" 405 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 14:29:07] "OPTIONS /myclass/api/get_List_domaine_formation/ HTTP/1.1" 405 - +INFO:root:2023-04-14 14:29:07.573764 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 14:29:07.627911 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 14:29:07.629217 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 14:29:07] "POST /myclass/api/get_List_domaine_formation/ HTTP/1.1" 200 - +INFO:root:2023-04-14 14:29:07.642239 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 14:29:07] "OPTIONS /myclass/api/get_all_class/ HTTP/1.1" 405 - +INFO:root:2023-04-14 14:29:07.646537 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 14:29:07.672311 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 14:29:07] "POST /myclass/api/Get_Suggested_Word/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 14:29:07] "POST /myclass/api/Get_Suggested_Fr_Cities/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 14:29:07] "POST /myclass/api/get_all_class/ HTTP/1.1" 200 - +INFO:root:2023-04-14 14:29:08.285819 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 14:29:08.286818 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 14:29:08.287826 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 14:29:08.287826 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 14:29:08.287826 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 14:29:08.288835 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 14:29:08] "OPTIONS /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 405 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 14:29:08] "OPTIONS /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 405 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 14:29:08] "OPTIONS /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 405 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 14:29:08] "OPTIONS /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 405 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 14:29:08] "OPTIONS /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 405 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 14:29:08] "OPTIONS /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 405 - +INFO:root:2023-04-14 14:29:08.617327 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 14:29:08.621326 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 14:29:08] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 14:29:08] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-14 14:29:08.626326 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 14:29:08.627335 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 14:29:08.629327 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 14:29:08.633842 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 14:29:08] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 14:29:08] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 14:29:08] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 14:29:08] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-14 14:29:08.934088 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 14:29:08.938107 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 14:29:08] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 14:29:08] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-14 14:29:08.950011 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 14:29:08.952013 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 14:29:08.953018 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 14:29:08.955013 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 14:29:08] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 14:29:08] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 14:29:08] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 14:29:08] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-14 14:29:09.253745 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 14:29:09.256984 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 14:29:09] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 14:29:09] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-14 14:29:09.269250 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 14:29:09] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-14 14:29:09.275766 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 14:29:09.276767 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 14:29:09.280762 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 14:29:09] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 14:29:09] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 14:29:09] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-14 14:29:09.565484 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 14:29:09.565991 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 14:29:09] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 14:29:09] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-14 14:38:15.169965 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 14:38:15] "POST /myclass/api/test_web_service2 HTTP/1.1" 308 - +INFO:root:2023-04-14 14:38:15.177117 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 14:38:15] "POST /myclass/api/test_web_service2/ HTTP/1.1" 200 - +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\tools_cherif\\tools_cherif.py', reloading +INFO:werkzeug: * Restarting with stat +INFO:root:2023-04-14 14:41:31.428715 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-04-14 14:41:31.428715 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-04-14 14:41:31.428715 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-04-14 14:41:31.428715 : ++ FLASK PORT 5001 ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 105-942-311 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\tools_cherif\\tools_cherif.py', reloading +INFO:werkzeug: * Restarting with stat +INFO:root:2023-04-14 14:42:25.182254 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-04-14 14:42:25.182254 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-04-14 14:42:25.182254 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-04-14 14:42:25.182254 : ++ FLASK PORT 5001 ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 105-942-311 +INFO:root:2023-04-14 15:24:37.633066 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 15:24:37.634082 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 15:24:37.636584 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 15:24:37] "POST /myclass/api/get_List_domaine_formation/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 15:24:37] "POST /myclass/api/Get_Suggested_Fr_Cities/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 15:24:37] "POST /myclass/api/Get_Suggested_Word/ HTTP/1.1" 200 - +INFO:root:2023-04-14 15:24:38.494358 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 15:24:38.496143 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 15:24:38] "POST /myclass/api/get_all_class/ HTTP/1.1" 200 - +INFO:root:2023-04-14 15:24:38.912662 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 15:24:38.916680 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 15:24:38] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-14 15:24:38.921468 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 15:24:38] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-14 15:24:38.927480 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 15:24:38] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-14 15:24:38.932479 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 15:24:38.935482 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 15:24:38.940478 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 15:24:38] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 15:24:38] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 15:24:38] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-14 15:24:38.948538 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 15:24:38] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-14 15:24:38.951969 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 15:24:38.956303 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 15:24:38] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 15:24:38] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-14 15:24:38.964722 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 15:24:38.967385 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 15:24:38.972650 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 15:24:38] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 15:24:38] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-14 15:24:38.979690 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 15:24:38] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 15:24:38] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-14 15:24:38.985949 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 15:24:38.988381 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 15:24:38] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-14 15:24:38.995469 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 15:24:39.000470 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 15:24:39] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 15:24:39] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 15:24:39] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-14 15:24:39.007487 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 15:24:39.009478 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 15:24:39] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 15:24:39] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 15:24:39] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-14 19:51:33.439709 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-04-14 19:51:33.440698 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-04-14 19:51:33.440698 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-04-14 19:51:33.440698 : ++ FLASK PORT 5001 ++ +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-04-14 19:51:42.619773 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-04-14 19:51:42.619773 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-04-14 19:51:42.619773 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-04-14 19:51:42.619773 : ++ FLASK PORT 5001 ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 105-942-311 +INFO:root:2023-04-14 19:54:04.916972 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 19:54:04.918235 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 19:54:04.919323 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 19:54:04] "POST /myclass/api/get_List_domaine_formation/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 19:54:04] "POST /myclass/api/Get_Suggested_Fr_Cities/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 19:54:05] "POST /myclass/api/Get_Suggested_Word/ HTTP/1.1" 200 - +INFO:root:2023-04-14 19:54:05.867918 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 19:54:05.869920 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 19:54:05] "POST /myclass/api/get_all_class/ HTTP/1.1" 200 - +INFO:root:2023-04-14 19:54:06.297110 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 19:54:06.301128 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 19:54:06] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-14 19:54:06.305124 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 19:54:06.309421 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 19:54:06] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 19:54:06] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-14 19:54:06.315162 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 19:54:06.319371 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 19:54:06] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 19:54:06] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-14 19:54:06.325679 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 19:54:06.328969 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 19:54:06] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 19:54:06] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-14 19:54:06.334479 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 19:54:06.338503 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 19:54:06] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 19:54:06] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-14 19:54:06.345238 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 19:54:06.349532 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 19:54:06] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 19:54:06] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-14 19:54:06.355962 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 19:54:06] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-14 19:54:06.361490 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 19:54:06.365816 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 19:54:06] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-14 19:54:06.369575 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 19:54:06] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-14 19:54:06.374776 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 19:54:06] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-14 19:54:06.379792 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 19:54:06] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-14 19:54:06.382893 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 19:54:06] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 19:54:06] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 19:54:06] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-14 19:54:06.390862 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 19:54:06] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-14 19:54:08.667027 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 19:54:09.293662 : partner_login Connexion partnair contact@mysy-training.com : OK, Date : 2023-04-14 19:54:08.668024 , _id = 641c21666cad03956ab28252 +INFO:root:2023-04-14 19:54:09.297319 : partner_login Connexion partener_token : OK , _id = 641c23520d5d7f136a823b3c +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 19:54:09] "POST /myclass/api/partner_login/ HTTP/1.1" 200 - +INFO:root:2023-04-14 19:54:09.421052 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 19:54:09.424406 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 19:54:09.426445 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 19:54:09] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-04-14 19:54:09.431426 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 19:54:09] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:root:2023-04-14 19:54:09.439352 : Connexion du partner recid = 8a77c1642a21a9a417a8583f4ef7f2f9c174a99996abb4c63a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 19:54:09] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 19:54:09] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-04-14 19:54:09.549255 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 19:54:09] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\lms_chamilo\\mysy_lms.py', reloading +INFO:werkzeug: * Restarting with stat +INFO:root:2023-04-14 19:56:59.885863 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-04-14 19:56:59.885863 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-04-14 19:56:59.885863 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-04-14 19:56:59.885863 : ++ FLASK PORT 5001 ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 105-942-311 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\lms_chamilo\\mysy_lms.py', reloading +INFO:werkzeug: * Restarting with stat +INFO:root:2023-04-14 19:57:28.558588 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-04-14 19:57:28.558588 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-04-14 19:57:28.558588 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-04-14 19:57:28.558588 : ++ FLASK PORT 5001 ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 105-942-311 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\lms_chamilo\\mysy_lms.py', reloading +INFO:werkzeug: * Restarting with stat +INFO:root:2023-04-14 19:58:00.632914 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-04-14 19:58:00.632914 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-04-14 19:58:00.632914 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-04-14 19:58:00.632914 : ++ FLASK PORT 5001 ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 105-942-311 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\lms_chamilo\\mysy_lms.py', reloading +INFO:werkzeug: * Restarting with stat +INFO:root:2023-04-14 20:03:03.794618 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-04-14 20:03:03.794618 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-04-14 20:03:03.794618 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-04-14 20:03:03.794618 : ++ FLASK PORT 5001 ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 105-942-311 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\lms_chamilo\\mysy_lms.py', reloading +INFO:werkzeug: * Restarting with stat +INFO:root:2023-04-14 20:07:54.480066 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-04-14 20:07:54.480066 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-04-14 20:07:54.480066 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-04-14 20:07:54.480066 : ++ FLASK PORT 5001 ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 105-942-311 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\lms_chamilo\\mysy_lms.py', reloading +INFO:werkzeug: * Restarting with stat +INFO:root:2023-04-14 20:09:27.501115 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-04-14 20:09:27.501115 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-04-14 20:09:27.502115 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-04-14 20:09:27.502115 : ++ FLASK PORT 5001 ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 105-942-311 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\GlobalVariable.py', reloading +INFO:werkzeug: * Restarting with stat +INFO:root:2023-04-14 20:11:15.107848 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-04-14 20:11:15.107848 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-04-14 20:11:15.107848 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-04-14 20:11:15.107848 : ++ FLASK PORT 5001 ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 105-942-311 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\lms_chamilo\\mysy_lms.py', reloading +INFO:werkzeug: * Restarting with stat +INFO:root:2023-04-14 20:11:58.235256 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-04-14 20:11:58.235256 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-04-14 20:11:58.235256 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-04-14 20:11:58.235256 : ++ FLASK PORT 5001 ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 105-942-311 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\lms_chamilo\\mysy_lms.py', reloading +INFO:werkzeug: * Restarting with stat +INFO:root:2023-04-14 20:15:03.572869 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-04-14 20:15:03.572869 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-04-14 20:15:03.572869 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-04-14 20:15:03.572869 : ++ FLASK PORT 5001 ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 105-942-311 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\lms_chamilo\\mysy_lms.py', reloading +INFO:werkzeug: * Restarting with stat +INFO:root:2023-04-14 20:17:31.454973 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-04-14 20:17:31.454973 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-04-14 20:17:31.454973 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-04-14 20:17:31.454973 : ++ FLASK PORT 5001 ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 105-942-311 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\lms_chamilo\\mysy_lms.py', reloading +INFO:werkzeug: * Restarting with stat +INFO:root:2023-04-14 20:17:47.433852 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-04-14 20:17:47.433852 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-04-14 20:17:47.433852 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-04-14 20:17:47.433852 : ++ FLASK PORT 5001 ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 105-942-311 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\lms_chamilo\\mysy_lms.py', reloading +INFO:werkzeug: * Restarting with stat +INFO:root:2023-04-14 20:18:21.608150 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-04-14 20:18:21.608150 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-04-14 20:18:21.608150 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-04-14 20:18:21.608150 : ++ FLASK PORT 5001 ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 105-942-311 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\lms_chamilo\\mysy_lms.py', reloading +INFO:werkzeug: * Restarting with stat +INFO:root:2023-04-14 20:19:48.439379 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-04-14 20:19:48.439379 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-04-14 20:19:48.439379 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-04-14 20:19:48.439379 : ++ FLASK PORT 5001 ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 105-942-311 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\lms_chamilo\\mysy_lms.py', reloading +INFO:werkzeug: * Restarting with stat +INFO:root:2023-04-14 20:21:06.730681 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-04-14 20:21:06.730681 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-04-14 20:21:06.730681 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-04-14 20:21:06.730681 : ++ FLASK PORT 5001 ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 105-942-311 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\lms_chamilo\\mysy_lms.py', reloading +INFO:werkzeug: * Restarting with stat +INFO:root:2023-04-14 20:21:50.123441 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-04-14 20:21:50.123441 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-04-14 20:21:50.123441 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-04-14 20:21:50.123441 : ++ FLASK PORT 5001 ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 105-942-311 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\lms_chamilo\\mysy_lms.py', reloading +INFO:werkzeug: * Restarting with stat +INFO:root:2023-04-14 20:22:02.154221 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-04-14 20:22:02.154221 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-04-14 20:22:02.154221 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-04-14 20:22:02.154221 : ++ FLASK PORT 5001 ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 105-942-311 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\lms_chamilo\\mysy_lms.py', reloading +INFO:werkzeug: * Restarting with stat +INFO:root:2023-04-14 20:22:47.894674 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-04-14 20:22:47.894674 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-04-14 20:22:47.894674 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-04-14 20:22:47.894674 : ++ FLASK PORT 5001 ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 105-942-311 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\lms_chamilo\\mysy_lms.py', reloading +INFO:werkzeug: * Restarting with stat +INFO:root:2023-04-14 20:26:13.670512 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-04-14 20:26:13.671512 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-04-14 20:26:13.671512 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-04-14 20:26:13.671512 : ++ FLASK PORT 5001 ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 105-942-311 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\lms_chamilo\\mysy_lms.py', reloading +INFO:werkzeug: * Restarting with stat +INFO:root:2023-04-14 20:31:15.831429 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-04-14 20:31:15.831429 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-04-14 20:31:15.831429 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-04-14 20:31:15.832433 : ++ FLASK PORT 5001 ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 105-942-311 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\lms_chamilo\\mysy_lms.py', reloading +INFO:werkzeug: * Restarting with stat +INFO:root:2023-04-14 20:31:52.277282 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-04-14 20:31:52.277282 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-04-14 20:31:52.277282 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-04-14 20:31:52.277282 : ++ FLASK PORT 5001 ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 105-942-311 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\lms_chamilo\\mysy_lms.py', reloading +INFO:werkzeug: * Restarting with stat +INFO:root:2023-04-14 20:32:46.457665 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-04-14 20:32:46.457665 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-04-14 20:32:46.457665 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-04-14 20:32:46.457665 : ++ FLASK PORT 5001 ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 105-942-311 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\lms_chamilo\\mysy_lms.py', reloading +INFO:werkzeug: * Restarting with stat +INFO:root:2023-04-14 20:47:21.616831 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-04-14 20:47:21.616831 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-04-14 20:47:21.616831 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-04-14 20:47:21.616831 : ++ FLASK PORT 5001 ++ +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-04-14 20:47:30.394134 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-04-14 20:47:30.394134 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-04-14 20:47:30.394134 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-04-14 20:47:30.394134 : ++ FLASK PORT 5001 ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 105-942-311 +INFO:root:2023-04-14 20:48:17.964574 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 20:48:17] "POST /myclass/api/LMS_Create_VirtualHost HTTP/1.1" 308 - +INFO:root:2023-04-14 20:48:17.972059 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 20:48:18.028659 : Impossible de créer l'url LMS {ProgrammingError("You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '1', '1', '2023-04-14 20:48:18', NULL)' at line 1")} +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 20:48:18] "POST /myclass/api/LMS_Create_VirtualHost/ HTTP/1.1" 500 - +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\GlobalVariable.py', reloading +INFO:werkzeug: * Restarting with stat +INFO:root:2023-04-14 20:50:13.752166 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-04-14 20:50:13.752166 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-04-14 20:50:13.753171 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-04-14 20:50:13.753171 : ++ FLASK PORT 5001 ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 105-942-311 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\lms_chamilo\\mysy_lms.py', reloading +INFO:werkzeug: * Restarting with stat +INFO:root:2023-04-14 20:50:47.237836 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-04-14 20:50:47.237836 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-04-14 20:50:47.237836 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-04-14 20:50:47.237836 : ++ FLASK PORT 5001 ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 105-942-311 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\lms_chamilo\\mysy_lms.py', reloading +INFO:werkzeug: * Restarting with stat +INFO:root:2023-04-14 20:51:14.324181 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-04-14 20:51:14.324181 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-04-14 20:51:14.324181 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-04-14 20:51:14.324181 : ++ FLASK PORT 5001 ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 105-942-311 +INFO:root:2023-04-14 20:51:19.557211 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 20:51:19] "POST /myclass/api/LMS_Create_VirtualHost HTTP/1.1" 308 - +INFO:root:2023-04-14 20:51:19.564801 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 20:51:20.119084 : LMS_Create_VirtualHost -Access denied for user 'chamilo_dev2'@'192.168.1.3' (using password: YES) - Line : 1939 +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 20:51:20] "POST /myclass/api/LMS_Create_VirtualHost/ HTTP/1.1" 200 - +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\GlobalVariable.py', reloading +INFO:werkzeug: * Restarting with stat +INFO:root:2023-04-14 20:51:55.092086 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-04-14 20:51:55.092086 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-04-14 20:51:55.092086 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-04-14 20:51:55.092086 : ++ FLASK PORT 5001 ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 105-942-311 +INFO:root:2023-04-14 20:51:59.326652 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 20:51:59] "POST /myclass/api/LMS_Create_VirtualHost HTTP/1.1" 308 - +INFO:root:2023-04-14 20:51:59.333690 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 20:51:59] "POST /myclass/api/LMS_Create_VirtualHost/ HTTP/1.1" 200 - +INFO:root:2023-04-14 20:53:29.250739 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 20:53:29] "POST /myclass/api/LMS_Create_VirtualHost HTTP/1.1" 308 - +INFO:root:2023-04-14 20:53:29.257665 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 20:53:29.776658 : LMS_Create_VirtualHost - L'url 'MySyDemo2303.iexercice.com' existe deja. Impossible de créer une nouvelle url +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 20:53:29] "POST /myclass/api/LMS_Create_VirtualHost/ HTTP/1.1" 200 - +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\lms_chamilo\\mysy_lms.py', reloading +INFO:werkzeug: * Restarting with stat +INFO:root:2023-04-14 20:54:54.123000 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-04-14 20:54:54.123000 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-04-14 20:54:54.123000 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-04-14 20:54:54.123000 : ++ FLASK PORT 5001 ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 105-942-311 +INFO:root:2023-04-14 20:54:54.159652 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 20:54:54] "POST /myclass/api/LMS_Create_VirtualHost HTTP/1.1" 308 - +INFO:root:2023-04-14 20:54:54.164884 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 20:54:54] "POST /myclass/api/LMS_Create_VirtualHost/ HTTP/1.1" 200 - +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\lms_chamilo\\mysy_lms.py', reloading +INFO:werkzeug: * Restarting with stat +INFO:root:2023-04-14 20:55:25.918752 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-04-14 20:55:25.919754 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-04-14 20:55:25.919754 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-04-14 20:55:25.919754 : ++ FLASK PORT 5001 ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 105-942-311 +INFO:root:2023-04-14 20:55:39.887642 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 20:55:39] "POST /myclass/api/LMS_Create_VirtualHost HTTP/1.1" 308 - +INFO:root:2023-04-14 20:55:39.893650 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 20:55:40.458062 : LMS_Create_VirtualHost - L'url 'MySyDemo2303.iexercice.com' existe deja. Impossible de créer une nouvelle url +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 20:55:40] "POST /myclass/api/LMS_Create_VirtualHost/ HTTP/1.1" 200 - +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\lms_chamilo\\mysy_lms.py', reloading +INFO:werkzeug: * Restarting with stat +INFO:root:2023-04-14 20:57:52.426495 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-04-14 20:57:52.427495 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-04-14 20:57:52.427495 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-04-14 20:57:52.427495 : ++ FLASK PORT 5001 ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 105-942-311 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\lms_chamilo\\mysy_lms.py', reloading +INFO:werkzeug: * Restarting with stat +INFO:root:2023-04-14 21:11:06.356950 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-04-14 21:11:06.358185 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-04-14 21:11:06.358185 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-04-14 21:11:06.358185 : ++ FLASK PORT 5001 ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 105-942-311 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\main.py', reloading +INFO:werkzeug: * Restarting with stat +INFO:root:2023-04-14 21:11:29.968119 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-04-14 21:11:29.968119 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-04-14 21:11:29.968119 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-04-14 21:11:29.968119 : ++ FLASK PORT 5001 ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 105-942-311 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\lms_chamilo\\mysy_lms.py', reloading +INFO:werkzeug: * Restarting with stat +INFO:root:2023-04-14 21:26:33.399064 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-04-14 21:26:33.399064 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-04-14 21:26:33.400071 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-04-14 21:26:33.400071 : ++ FLASK PORT 5001 ++ +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-04-14 21:26:42.809062 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-04-14 21:26:42.810141 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-04-14 21:26:42.810141 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-04-14 21:26:42.810141 : ++ FLASK PORT 5001 ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 105-942-311 +INFO:root:2023-04-14 21:26:42.847705 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 21:26:42] "POST /myclass/api/LMS_Create_VirtualHost HTTP/1.1" 308 - +INFO:root:2023-04-14 21:26:42.855837 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 21:26:42] "POST /myclass/api/LMS_Create_VirtualHost/ HTTP/1.1" 200 - +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\lms_chamilo\\mysy_lms.py', reloading +INFO:werkzeug: * Restarting with stat +INFO:root:2023-04-14 21:30:25.694606 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-04-14 21:30:25.694606 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-04-14 21:30:25.694606 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-04-14 21:30:25.694606 : ++ FLASK PORT 5001 ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 105-942-311 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\lms_chamilo\\mysy_lms.py', reloading +INFO:werkzeug: * Restarting with stat +INFO:root:2023-04-14 21:30:48.936765 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-04-14 21:30:48.936765 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-04-14 21:30:48.936765 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-04-14 21:30:48.936765 : ++ FLASK PORT 5001 ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 105-942-311 +INFO:root:2023-04-14 21:30:55.864923 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 21:30:55] "POST /myclass/api/LMS_Create_VirtualHost HTTP/1.1" 308 - +INFO:root:2023-04-14 21:30:55.871276 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 21:30:55] "POST /myclass/api/LMS_Create_VirtualHost/ HTTP/1.1" 200 - +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\lms_chamilo\\mysy_lms.py', reloading +INFO:werkzeug: * Restarting with stat +INFO:root:2023-04-14 22:09:33.224322 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-04-14 22:09:33.224322 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-04-14 22:09:33.224322 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-04-14 22:09:33.224322 : ++ FLASK PORT 5001 ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 105-942-311 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\lms_chamilo\\mysy_lms.py', reloading +INFO:werkzeug: * Restarting with stat +INFO:root:2023-04-14 22:11:31.393922 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-04-14 22:11:31.393922 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-04-14 22:11:31.393922 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-04-14 22:11:31.393922 : ++ FLASK PORT 5001 ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 105-942-311 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\lms_chamilo\\mysy_lms.py', reloading +INFO:werkzeug: * Restarting with stat +INFO:root:2023-04-14 22:12:17.553564 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-04-14 22:12:17.553564 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-04-14 22:12:17.553564 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-04-14 22:12:17.553564 : ++ FLASK PORT 5001 ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 105-942-311 +INFO:root:2023-04-14 22:12:42.568530 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:12:42.572693 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:12:42.586076 : Connexion du partner recid = 8a77c1642a21a9a417a8583f4ef7f2f9c174a99996abb4c63a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:12:42] "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_NZuiEjjPZ6CP06/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_NZuiEjjPZ6CP06/payment_methods?type=card response_code=200 +DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "pm_1Mol8jAbmaEugrFTZg2P5ePQ",\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": "mysy demo",\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": 1679566381,\n "customer": "cus_NZuiEjjPZ6CP06",\n "livemode": false,\n "metadata": {},\n "type": "card"\n }\n ],\n "has_more": false,\n "url": "/v1/customers/cus_NZuiEjjPZ6CP06/payment_methods"\n}' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_YW39eYb6kGxwb6 message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:12:43] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 - +INFO:root:2023-04-14 22:14:47.200256 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:14:47.205491 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:14:47.208263 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:14:47] "POST /myclass/api/get_List_domaine_formation/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:14:47] "POST /myclass/api/Get_Suggested_Fr_Cities/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:14:47] "POST /myclass/api/Get_Suggested_Word/ HTTP/1.1" 200 - +INFO:root:2023-04-14 22:14:48.270227 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:14:48.272719 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:14:48] "POST /myclass/api/get_all_class/ HTTP/1.1" 200 - +INFO:root:2023-04-14 22:14:49.013133 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:14:49.017643 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:14:49] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-14 22:14:49.023466 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:14:49] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-14 22:14:49.031808 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:14:49] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-14 22:14:49.037329 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:14:49.042788 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:14:49.048391 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:14:49] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:14:49] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-14 22:14:49.055528 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:14:49.062411 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:14:49] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:14:49] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:14:49] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-14 22:14:49.072652 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:14:49.077188 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:14:49] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-14 22:14:49.084139 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:14:49] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-14 22:14:49.090529 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:14:49] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-14 22:14:49.096561 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:14:49.099920 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:14:49] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:14:49] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:14:49] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:14:49] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-14 22:14:49.112543 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:14:49.118544 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:14:49] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-14 22:14:49.125390 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:14:49] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-14 22:14:49.131749 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:14:49.133874 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:14:49] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:14:49] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:14:49] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-14 22:15:09.983389 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:15:10.909706 : partner_login Connexion partnair mysylaplumedepierrot@gmail.com : OK, Date : 2023-04-14 22:15:09.986436 , _id = 63e8f2745d4b4085b83f3aec +INFO:root:2023-04-14 22:15:10.916555 : partner_login Connexion partener_token : OK , _id = 63e8f2c17b7f1fbbc5ee9419 +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:15:10] "POST /myclass/api/partner_login/ HTTP/1.1" 200 - +INFO:root:2023-04-14 22:15:11.265994 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:15:11.271479 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:15:11] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-04-14 22:15:11.278782 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:15:11.287203 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:15:11.295303 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:15:11] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:15:11] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:15:11] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-04-14 22:15:11.822510 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:15:11] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-04-14 22:15:32.876648 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:15:32.881776 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:15:32.890766 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:15:32] "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_NLMwePQlYvgJeA/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_NLMwePQlYvgJeA/payment_methods?type=card response_code=200 +DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "pm_1MagEkAbmaEugrFT5drJGGgS",\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": "la plume de pierrot",\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": "IE",\n "exp_month": 12,\n "exp_year": 2023,\n "fingerprint": "HS92xLRWsDeuSLhN",\n "funding": "credit",\n "generated_from": null,\n "last4": "3220",\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": 1676210942,\n "customer": "cus_NLMwePQlYvgJeA",\n "livemode": false,\n "metadata": {},\n "type": "card"\n }\n ],\n "has_more": false,\n "url": "/v1/customers/cus_NLMwePQlYvgJeA/payment_methods"\n}' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_nFXEdtEw04gzhM message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:15:33] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 - +INFO:root:2023-04-14 22:15:45.646393 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:15:45.654766 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:15:45.663918 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:15:45.676916 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:15:45] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:15:45] "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_NLMwePQlYvgJeA/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_NLMwePQlYvgJeA/payment_methods?type=card response_code=200 +DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "pm_1MagEkAbmaEugrFT5drJGGgS",\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": "la plume de pierrot",\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": "IE",\n "exp_month": 12,\n "exp_year": 2023,\n "fingerprint": "HS92xLRWsDeuSLhN",\n "funding": "credit",\n "generated_from": null,\n "last4": "3220",\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": 1676210942,\n "customer": "cus_NLMwePQlYvgJeA",\n "livemode": false,\n "metadata": {},\n "type": "card"\n }\n ],\n "has_more": false,\n "url": "/v1/customers/cus_NLMwePQlYvgJeA/payment_methods"\n}' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_GOpPIMrGvUggFL message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:15:46] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 - +INFO:root:2023-04-14 22:15:46.444557 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:15:46.453277 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:15:46] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:root:2023-04-14 22:15:53.501904 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:15:53.506203 : 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_1MagFcAbmaEugrFTtVSSQg3U +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_1MagFcAbmaEugrFTtVSSQg3U response_code=200 +DEBUG:stripe:body='{\n "id": "sub_1MagFcAbmaEugrFTtVSSQg3U",\n "object": "subscription",\n "application": null,\n "application_fee_percent": null,\n "automatic_tax": {\n "enabled": false\n },\n "billing_cycle_anchor": 1676210996,\n "billing_thresholds": null,\n "cancel_at": null,\n "cancel_at_period_end": false,\n "canceled_at": 1679930201,\n "cancellation_details": {\n "comment": null,\n "feedback": null,\n "reason": "payment_failed"\n },\n "collection_method": "charge_automatically",\n "created": 1676210996,\n "currency": "eur",\n "current_period_end": 1681308596,\n "current_period_start": 1678630196,\n "customer": "cus_NLMwePQlYvgJeA",\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": 1679930201,\n "items": {\n "object": "list",\n "data": [\n {\n "id": "si_NLMz8iMYugPQgy",\n "object": "subscription_item",\n "billing_thresholds": null,\n "created": 1676210997,\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": 10,\n "subscription": "sub_1MagFcAbmaEugrFTtVSSQg3U",\n "tax_rates": []\n }\n ],\n "has_more": false,\n "total_count": 1,\n "url": "/v1/subscription_items?subscription=sub_1MagFcAbmaEugrFTtVSSQg3U"\n },\n "latest_invoice": "in_1MkpeMAbmaEugrFTXE8N2fmJ",\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": 10,\n "schedule": null,\n "start_date": 1676210996,\n "status": "canceled",\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_ACkrfx6nLu97lw message='Dashboard link for request' +INFO:stripe:message='Request to Stripe api' method=post path=https://api.stripe.com/v1/subscriptions/sub_1MagFcAbmaEugrFTtVSSQg3U +DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=proration_behavior=create_prorations&items[0][id]=si_NLMz8iMYugPQgy&items[0][price]=price_1MT3FmAbmaEugrFTZ5vyJRcZ&items[0][quantity]=7 +INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/subscriptions/sub_1MagFcAbmaEugrFTtVSSQg3U response_code=404 +DEBUG:stripe:body='{\n "error": {\n "message": "You cannot update a subscription that is `canceled` or `incomplete_expired`.",\n "request_log_url": "https://dashboard.stripe.com/test/logs/req_peioQOQvVa5wRK?t=1681503355",\n "type": "invalid_request_error"\n }\n}\n' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_peioQOQvVa5wRK message='Dashboard link for request' +INFO:stripe:error_code=None error_message='You cannot update a subscription that is `canceled` or `incomplete_expired`.' error_param=None error_type=invalid_request_error message='Stripe API error received' +INFO:root:2023-04-14 22:15:54.420408 : strip_update_subscription_plan -Request req_peioQOQvVa5wRK: You cannot update a subscription that is `canceled` or `incomplete_expired`. - ERRORRRR AT Line : 973 +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:15:54] "POST /myclass/api/strip_update_subscription_plan/ HTTP/1.1" 200 - +DEBUG:xhtml2pdf:pisaDocument options: + src = '\n\n\n\n\t
\n\t\tMysy Training Logo \n\t
\n\t\n\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t\t
\n\t\t\t\t\n\t\t\t\t\tLa plume de pierrot
\n\t\t\t\t\t2 place du test
\n\t\t\t\t\t75001 Paris
\n\t\t\t\t\tFrance
\n\n\t\t\t\t
\n\n\n\t\t\t\t\n\n\t\t\t\t\tFacture n° FACT_234000224\n\n\n\t\t\t\t
\n\t\t\t\t
\n\n\n\t\t\t\t\n\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\n\t\t\t\t
Date de facture: 14/04/2023 Date échéance : 14/04/2023
\n\n\t\t\t\t\n\t\t\t\t\tOrigine : MySy_002ftx\n\t\t\t\t\n\n\t\t\t\t
 
\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t
DescriptionQuantitéPrix unitaireMontant
Gold790630.0
\n\t\t\t\t\n\n\t\t\t\t
 
\n\n\t\t\t\n\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t
    Montant HT: 630.0
    TVA 20% : 126.0
    Montant TTC : 756.0
\n\n\n\t\t\t
\n\t\t\t
 
\n\t\t\t
 
\n\t\t\t
 
\n\n\n\n\t\t\n\n\t\n\t
\n\t
\n\t\t\n\n\t\t\t

MySy Training
\n\n\t\t\t\tCour du Havre 1, 75008, Paris
\n\n\t\t\t\tMySy Training Technology (MTT), société par actions simplifiée au capital de 1000 euros, dont le siège\n\t\t\t\tsocial est\n\t\t\t\tsitué 2, place des magnolias, 77680, Roissy en Brie, immatriculée au Registre du Commerce et des\n\t\t\t\tSociétés sous le numéro 917 500 860 R.C.S. Melun\n\t\t\t

\n\t\t\n\t
\n\n\n' + dest = <_io.BufferedRandom name='./Invoices/invoice_FACT_234000224.pdf'> + path = None + link_callback = None + xhtml = False + context_meta = None +DEBUG:xhtml2pdf:FileObject 'https://img.mysy-training.com/MYSY-LOGO-BLUE.png', Basepath: 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\__dummy__' +DEBUG:xhtml2pdf:URLParts: (ParseResult(scheme='https', netloc='img.mysy-training.com', path='/MYSY-LOGO-BLUE.png', params='', query='', fragment=''), 'https') +DEBUG:xhtml2pdf:Parsing img tag, src: +DEBUG:xhtml2pdf:Attrs: {'src': , 'width': 75.0, 'height': None, 'align': None, 'id': None} +DEBUG:xhtml2pdf:Sending request for https://img.mysy-training.com/MYSY-LOGO-BLUE.png with httplib +DEBUG:xhtml2pdf:Uri parsed: https://img.mysy-training.com/MYSY-LOGO-BLUE.png +DEBUG:PIL.PngImagePlugin:STREAM b'IHDR' 16 13 +DEBUG:PIL.PngImagePlugin:STREAM b'tEXt' 41 25 +DEBUG:PIL.PngImagePlugin:STREAM b'IDAT' 78 6645 +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:Col widths: [None, None] +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:Col 0 has width 0.0 +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:Col 1 has width 0.0 +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:Col 2 has width 0.0 +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:Col 3 has width 0.0 +DEBUG:xhtml2pdf:Col widths: [None, None, None, None] +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:Col widths: [None, None, None, None] +DEBUG:PIL.PngImagePlugin:STREAM b'IHDR' 16 13 +DEBUG:PIL.PngImagePlugin:STREAM b'tEXt' 41 25 +DEBUG:PIL.PngImagePlugin:STREAM b'IDAT' 78 6645 +DEBUG:paramiko.transport:starting thread (client mode): 0x9819a3e0 +DEBUG:paramiko.transport:Local version/idstring: SSH-2.0-paramiko_3.1.0 +DEBUG:paramiko.transport:Remote version/idstring: SSH-2.0-OpenSSH_8.4p1 Debian-5+deb11u1 +INFO:paramiko.transport:Connected (version 2.0, client OpenSSH_8.4p1) +DEBUG:paramiko.transport:=== Key exchange possibilities === +DEBUG:paramiko.transport:kex algos: curve25519-sha256, curve25519-sha256@libssh.org, ecdh-sha2-nistp256, ecdh-sha2-nistp384, ecdh-sha2-nistp521, diffie-hellman-group-exchange-sha256, diffie-hellman-group16-sha512, diffie-hellman-group18-sha512, diffie-hellman-group14-sha256 +DEBUG:paramiko.transport:server key: rsa-sha2-512, rsa-sha2-256, ssh-rsa, ecdsa-sha2-nistp256, ssh-ed25519 +DEBUG:paramiko.transport:client encrypt: chacha20-poly1305@openssh.com, aes128-ctr, aes192-ctr, aes256-ctr, aes128-gcm@openssh.com, aes256-gcm@openssh.com +DEBUG:paramiko.transport:server encrypt: chacha20-poly1305@openssh.com, aes128-ctr, aes192-ctr, aes256-ctr, aes128-gcm@openssh.com, aes256-gcm@openssh.com +DEBUG:paramiko.transport:client mac: umac-64-etm@openssh.com, umac-128-etm@openssh.com, hmac-sha2-256-etm@openssh.com, hmac-sha2-512-etm@openssh.com, hmac-sha1-etm@openssh.com, umac-64@openssh.com, umac-128@openssh.com, hmac-sha2-256, hmac-sha2-512, hmac-sha1 +DEBUG:paramiko.transport:server mac: umac-64-etm@openssh.com, umac-128-etm@openssh.com, hmac-sha2-256-etm@openssh.com, hmac-sha2-512-etm@openssh.com, hmac-sha1-etm@openssh.com, umac-64@openssh.com, umac-128@openssh.com, hmac-sha2-256, hmac-sha2-512, hmac-sha1 +DEBUG:paramiko.transport:client compress: none, zlib@openssh.com +DEBUG:paramiko.transport:server compress: none, zlib@openssh.com +DEBUG:paramiko.transport:client lang: +DEBUG:paramiko.transport:server lang: +DEBUG:paramiko.transport:kex follows: False +DEBUG:paramiko.transport:=== Key exchange agreements === +DEBUG:paramiko.transport:Kex: curve25519-sha256@libssh.org +DEBUG:paramiko.transport:HostKey: ssh-ed25519 +DEBUG:paramiko.transport:Cipher: aes128-ctr +DEBUG:paramiko.transport:MAC: hmac-sha2-256 +DEBUG:paramiko.transport:Compression: none +DEBUG:paramiko.transport:=== End of kex handshake === +DEBUG:paramiko.transport:kex engine KexCurve25519 specified hash_algo +DEBUG:paramiko.transport:Switch to new keys ... +DEBUG:paramiko.transport:Attempting password auth... +DEBUG:paramiko.transport:Got EXT_INFO: {'server-sig-algs': b'ssh-ed25519,sk-ssh-ed25519@openssh.com,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ecdsa-sha2-nistp256@openssh.com,webauthn-sk-ecdsa-sha2-nistp256@openssh.com'} +DEBUG:paramiko.transport:userauth is OK +INFO:paramiko.transport:Authentication (password) successful! +DEBUG:paramiko.transport:[chan 0] Max packet in: 32768 bytes +DEBUG:paramiko.transport:Received global request "hostkeys-00@openssh.com" +DEBUG:paramiko.transport:Rejecting "hostkeys-00@openssh.com" global request from server. +DEBUG:paramiko.transport:[chan 0] Max packet out: 32768 bytes +DEBUG:paramiko.transport:Secsh channel 0 opened. +DEBUG:paramiko.transport:[chan 0] Sesch channel 0 request ok +INFO:paramiko.transport.sftp:[chan 0] Opened sftp connection (server version 3) +DEBUG:paramiko.transport.sftp:[chan 0] open(b'/var/www/html/sftp_iexercice/mysy_invoices_dev/invoice_FACT_234000224.pdf', 'wb') +DEBUG:paramiko.transport.sftp:[chan 0] open(b'/var/www/html/sftp_iexercice/mysy_invoices_dev/invoice_FACT_234000224.pdf', 'wb') -> 00000000 +DEBUG:paramiko.transport.sftp:[chan 0] close(00000000) +DEBUG:paramiko.transport.sftp:[chan 0] stat(b'/var/www/html/sftp_iexercice/mysy_invoices_dev/invoice_FACT_234000224.pdf') +INFO:root:2023-04-14 22:16:02.401450 : convertHtmlToPdf DEPLACEMENT DE ./Invoices/invoice_FACT_234000224.pdf VERS /var/www/html/sftp_iexercice/mysy_invoices_dev/invoice_FACT_234000224.pdf EST OKKKK +INFO:paramiko.transport.sftp:[chan 0] sftp session closed. +DEBUG:paramiko.transport:[chan 0] EOF sent (0) +INFO:root:2023-04-14 22:16:02.402453 : Impression facture N° FACT_234000224 OK +DEBUG:paramiko.transport:EOF in transport thread +INFO:root:2023-04-14 22:16:02.442952 : UpdataPartnerRankingClass - Le RANKING de 4 ont été mise à jour avec la valeur {'display_rank': '30', 'date_update': '2023-04-14 22:16:02.418251'} +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:16:02] "POST /myclass/api/createOrder/ HTTP/1.1" 200 - +INFO:root:2023-04-14 22:16:02.855540 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:16:04.172077 : LMS_Create_VirtualHost -'str' object has no attribute 'keys' - Line : 1910 +INFO:root:2023-04-14 22:16:04.178077 : Create_MySy_LMS_User -not enough values to unpack (expected 5, got 4) - Line : 295 +INFO:root:2023-04-14 22:16:04.181082 : Check_MySy_LMS_Account - Impossible de créer le compte LSM +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:16:04] "POST /myclass/api/Check_MySy_LMS_Account/ HTTP/1.1" 200 - +INFO:root:2023-04-14 22:16:16.903038 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:16:16.907145 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:16:16.912459 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:16:16] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-04-14 22:16:16.923331 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:16:16.929966 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:16:16] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:16:16] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-04-14 22:16:16.945917 : LMS_Get_Partner_Data -'mysy_lms_user_id' - Line : 1850 +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:16:16] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:root:2023-04-14 22:16:18.002134 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:16:18] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\lms_chamilo\\mysy_lms.py', reloading +INFO:werkzeug: * Restarting with stat +INFO:root:2023-04-14 22:20:47.512543 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-04-14 22:20:47.512543 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-04-14 22:20:47.512543 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-04-14 22:20:47.512543 : ++ FLASK PORT 5001 ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 105-942-311 +INFO:root:2023-04-14 22:22:12.385828 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:22:12.389869 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:22:12.397087 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:22:12.400248 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:22:12] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-04-14 22:22:12.421904 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:22:12] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:22:12] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-04-14 22:22:13.400733 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:22:13] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-04-14 22:22:13.711059 : LMS_Get_Partner_Data -'mysy_lms_user_id' - Line : 1852 +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:22:13] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:root:2023-04-14 22:22:16.624134 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:22:16.629896 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:22:16.637886 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:22:16] "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_NLMwePQlYvgJeA/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_NLMwePQlYvgJeA/payment_methods?type=card response_code=200 +DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "pm_1MagEkAbmaEugrFT5drJGGgS",\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": "la plume de pierrot",\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": "IE",\n "exp_month": 12,\n "exp_year": 2023,\n "fingerprint": "HS92xLRWsDeuSLhN",\n "funding": "credit",\n "generated_from": null,\n "last4": "3220",\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": 1676210942,\n "customer": "cus_NLMwePQlYvgJeA",\n "livemode": false,\n "metadata": {},\n "type": "card"\n }\n ],\n "has_more": false,\n "url": "/v1/customers/cus_NLMwePQlYvgJeA/payment_methods"\n}' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_IbqZ2FyV88AWok message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:22:17] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 - +INFO:root:2023-04-14 22:22:21.179900 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:22:21.185434 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:22:21.195439 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:22:21.199434 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:22:21] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:22:21] "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_NLMwePQlYvgJeA/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_NLMwePQlYvgJeA/payment_methods?type=card response_code=200 +DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "pm_1MagEkAbmaEugrFT5drJGGgS",\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": "la plume de pierrot",\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": "IE",\n "exp_month": 12,\n "exp_year": 2023,\n "fingerprint": "HS92xLRWsDeuSLhN",\n "funding": "credit",\n "generated_from": null,\n "last4": "3220",\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": 1676210942,\n "customer": "cus_NLMwePQlYvgJeA",\n "livemode": false,\n "metadata": {},\n "type": "card"\n }\n ],\n "has_more": false,\n "url": "/v1/customers/cus_NLMwePQlYvgJeA/payment_methods"\n}' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_KMmgDM4f81QekM message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:22:22] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 - +INFO:root:2023-04-14 22:22:22.182750 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:22:22.195935 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:22:22] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:root:2023-04-14 22:22:33.564453 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:22:33.569721 : 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_1MagFcAbmaEugrFTtVSSQg3U +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_1MagFcAbmaEugrFTtVSSQg3U response_code=200 +DEBUG:stripe:body='{\n "id": "sub_1MagFcAbmaEugrFTtVSSQg3U",\n "object": "subscription",\n "application": null,\n "application_fee_percent": null,\n "automatic_tax": {\n "enabled": false\n },\n "billing_cycle_anchor": 1676210996,\n "billing_thresholds": null,\n "cancel_at": null,\n "cancel_at_period_end": false,\n "canceled_at": 1679930201,\n "cancellation_details": {\n "comment": null,\n "feedback": null,\n "reason": "payment_failed"\n },\n "collection_method": "charge_automatically",\n "created": 1676210996,\n "currency": "eur",\n "current_period_end": 1681308596,\n "current_period_start": 1678630196,\n "customer": "cus_NLMwePQlYvgJeA",\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": 1679930201,\n "items": {\n "object": "list",\n "data": [\n {\n "id": "si_NLMz8iMYugPQgy",\n "object": "subscription_item",\n "billing_thresholds": null,\n "created": 1676210997,\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": 10,\n "subscription": "sub_1MagFcAbmaEugrFTtVSSQg3U",\n "tax_rates": []\n }\n ],\n "has_more": false,\n "total_count": 1,\n "url": "/v1/subscription_items?subscription=sub_1MagFcAbmaEugrFTtVSSQg3U"\n },\n "latest_invoice": "in_1MkpeMAbmaEugrFTXE8N2fmJ",\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": 10,\n "schedule": null,\n "start_date": 1676210996,\n "status": "canceled",\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_mptilghw2HXl8w message='Dashboard link for request' +INFO:stripe:message='Request to Stripe api' method=post path=https://api.stripe.com/v1/subscriptions/sub_1MagFcAbmaEugrFTtVSSQg3U +DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=proration_behavior=create_prorations&items[0][id]=si_NLMz8iMYugPQgy&items[0][price]=price_1MT3FLAbmaEugrFTDgw7MVgb&items[0][quantity]=6 +INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/subscriptions/sub_1MagFcAbmaEugrFTtVSSQg3U response_code=404 +DEBUG:stripe:body='{\n "error": {\n "message": "You cannot update a subscription that is `canceled` or `incomplete_expired`.",\n "request_log_url": "https://dashboard.stripe.com/test/logs/req_Oh5Ob85IFtFhH7?t=1681503755",\n "type": "invalid_request_error"\n }\n}\n' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_Oh5Ob85IFtFhH7 message='Dashboard link for request' +INFO:stripe:error_code=None error_message='You cannot update a subscription that is `canceled` or `incomplete_expired`.' error_param=None error_type=invalid_request_error message='Stripe API error received' +INFO:root:2023-04-14 22:22:34.420530 : strip_update_subscription_plan -Request req_Oh5Ob85IFtFhH7: You cannot update a subscription that is `canceled` or `incomplete_expired`. - ERRORRRR AT Line : 973 +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:22:34] "POST /myclass/api/strip_update_subscription_plan/ HTTP/1.1" 200 - +DEBUG:xhtml2pdf:pisaDocument options: + src = '\n\n\n\n\t
\n\t\tMysy Training Logo \n\t
\n\t\n\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t\t
\n\t\t\t\t\n\t\t\t\t\tLa plume de pierrot
\n\t\t\t\t\t2 place du test
\n\t\t\t\t\t75001 Paris
\n\t\t\t\t\tFrance
\n\n\t\t\t\t
\n\n\n\t\t\t\t\n\n\t\t\t\t\tFacture n° FACT_234000225\n\n\n\t\t\t\t
\n\t\t\t\t
\n\n\n\t\t\t\t\n\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\n\t\t\t\t
Date de facture: 14/04/2023 Date échéance : 14/04/2023
\n\n\t\t\t\t\n\t\t\t\t\tOrigine : MySy_00CBDH\n\t\t\t\t\n\n\t\t\t\t
 
\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t
DescriptionQuantitéPrix unitaireMontant
Standard650300.0
\n\t\t\t\t\n\n\t\t\t\t
 
\n\n\t\t\t\n\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t
    Montant HT: 300.0
    TVA 20% : 60.0
    Montant TTC : 360.0
\n\n\n\t\t\t
\n\t\t\t
 
\n\t\t\t
 
\n\t\t\t
 
\n\n\n\n\t\t\n\n\t\n\t
\n\t
\n\t\t\n\n\t\t\t

MySy Training
\n\n\t\t\t\tCour du Havre 1, 75008, Paris
\n\n\t\t\t\tMySy Training Technology (MTT), société par actions simplifiée au capital de 1000 euros, dont le siège\n\t\t\t\tsocial est\n\t\t\t\tsitué 2, place des magnolias, 77680, Roissy en Brie, immatriculée au Registre du Commerce et des\n\t\t\t\tSociétés sous le numéro 917 500 860 R.C.S. Melun\n\t\t\t

\n\t\t\n\t
\n\n\n' + dest = <_io.BufferedRandom name='./Invoices/invoice_FACT_234000225.pdf'> + path = None + link_callback = None + xhtml = False + context_meta = None +DEBUG:xhtml2pdf:FileObject 'https://img.mysy-training.com/MYSY-LOGO-BLUE.png', Basepath: 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\__dummy__' +DEBUG:xhtml2pdf:URLParts: (ParseResult(scheme='https', netloc='img.mysy-training.com', path='/MYSY-LOGO-BLUE.png', params='', query='', fragment=''), 'https') +DEBUG:xhtml2pdf:Parsing img tag, src: +DEBUG:xhtml2pdf:Attrs: {'src': , 'width': 75.0, 'height': None, 'align': None, 'id': None} +DEBUG:xhtml2pdf:Sending request for https://img.mysy-training.com/MYSY-LOGO-BLUE.png with httplib +DEBUG:xhtml2pdf:Uri parsed: https://img.mysy-training.com/MYSY-LOGO-BLUE.png +DEBUG:PIL.PngImagePlugin:STREAM b'IHDR' 16 13 +DEBUG:PIL.PngImagePlugin:STREAM b'tEXt' 41 25 +DEBUG:PIL.PngImagePlugin:STREAM b'IDAT' 78 6645 +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:Col widths: [None, None] +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:Col 0 has width 0.0 +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:Col 1 has width 0.0 +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:Col 2 has width 0.0 +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:Col 3 has width 0.0 +DEBUG:xhtml2pdf:Col widths: [None, None, None, None] +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:Col widths: [None, None, None, None] +DEBUG:PIL.PngImagePlugin:STREAM b'IHDR' 16 13 +DEBUG:PIL.PngImagePlugin:STREAM b'tEXt' 41 25 +DEBUG:PIL.PngImagePlugin:STREAM b'IDAT' 78 6645 +DEBUG:paramiko.transport:starting thread (client mode): 0xed0d780 +DEBUG:paramiko.transport:Local version/idstring: SSH-2.0-paramiko_3.1.0 +DEBUG:paramiko.transport:Remote version/idstring: SSH-2.0-OpenSSH_8.4p1 Debian-5+deb11u1 +INFO:paramiko.transport:Connected (version 2.0, client OpenSSH_8.4p1) +DEBUG:paramiko.transport:=== Key exchange possibilities === +DEBUG:paramiko.transport:kex algos: curve25519-sha256, curve25519-sha256@libssh.org, ecdh-sha2-nistp256, ecdh-sha2-nistp384, ecdh-sha2-nistp521, diffie-hellman-group-exchange-sha256, diffie-hellman-group16-sha512, diffie-hellman-group18-sha512, diffie-hellman-group14-sha256 +DEBUG:paramiko.transport:server key: rsa-sha2-512, rsa-sha2-256, ssh-rsa, ecdsa-sha2-nistp256, ssh-ed25519 +DEBUG:paramiko.transport:client encrypt: chacha20-poly1305@openssh.com, aes128-ctr, aes192-ctr, aes256-ctr, aes128-gcm@openssh.com, aes256-gcm@openssh.com +DEBUG:paramiko.transport:server encrypt: chacha20-poly1305@openssh.com, aes128-ctr, aes192-ctr, aes256-ctr, aes128-gcm@openssh.com, aes256-gcm@openssh.com +DEBUG:paramiko.transport:client mac: umac-64-etm@openssh.com, umac-128-etm@openssh.com, hmac-sha2-256-etm@openssh.com, hmac-sha2-512-etm@openssh.com, hmac-sha1-etm@openssh.com, umac-64@openssh.com, umac-128@openssh.com, hmac-sha2-256, hmac-sha2-512, hmac-sha1 +DEBUG:paramiko.transport:server mac: umac-64-etm@openssh.com, umac-128-etm@openssh.com, hmac-sha2-256-etm@openssh.com, hmac-sha2-512-etm@openssh.com, hmac-sha1-etm@openssh.com, umac-64@openssh.com, umac-128@openssh.com, hmac-sha2-256, hmac-sha2-512, hmac-sha1 +DEBUG:paramiko.transport:client compress: none, zlib@openssh.com +DEBUG:paramiko.transport:server compress: none, zlib@openssh.com +DEBUG:paramiko.transport:client lang: +DEBUG:paramiko.transport:server lang: +DEBUG:paramiko.transport:kex follows: False +DEBUG:paramiko.transport:=== Key exchange agreements === +DEBUG:paramiko.transport:Kex: curve25519-sha256@libssh.org +DEBUG:paramiko.transport:HostKey: ssh-ed25519 +DEBUG:paramiko.transport:Cipher: aes128-ctr +DEBUG:paramiko.transport:MAC: hmac-sha2-256 +DEBUG:paramiko.transport:Compression: none +DEBUG:paramiko.transport:=== End of kex handshake === +DEBUG:paramiko.transport:kex engine KexCurve25519 specified hash_algo +DEBUG:paramiko.transport:Switch to new keys ... +DEBUG:paramiko.transport:Attempting password auth... +DEBUG:paramiko.transport:Got EXT_INFO: {'server-sig-algs': b'ssh-ed25519,sk-ssh-ed25519@openssh.com,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ecdsa-sha2-nistp256@openssh.com,webauthn-sk-ecdsa-sha2-nistp256@openssh.com'} +DEBUG:paramiko.transport:userauth is OK +INFO:paramiko.transport:Authentication (password) successful! +DEBUG:paramiko.transport:[chan 0] Max packet in: 32768 bytes +DEBUG:paramiko.transport:Received global request "hostkeys-00@openssh.com" +DEBUG:paramiko.transport:Rejecting "hostkeys-00@openssh.com" global request from server. +DEBUG:paramiko.transport:[chan 0] Max packet out: 32768 bytes +DEBUG:paramiko.transport:Secsh channel 0 opened. +DEBUG:paramiko.transport:[chan 0] Sesch channel 0 request ok +INFO:paramiko.transport.sftp:[chan 0] Opened sftp connection (server version 3) +DEBUG:paramiko.transport.sftp:[chan 0] open(b'/var/www/html/sftp_iexercice/mysy_invoices_dev/invoice_FACT_234000225.pdf', 'wb') +DEBUG:paramiko.transport.sftp:[chan 0] open(b'/var/www/html/sftp_iexercice/mysy_invoices_dev/invoice_FACT_234000225.pdf', 'wb') -> 00000000 +DEBUG:paramiko.transport.sftp:[chan 0] close(00000000) +DEBUG:paramiko.transport.sftp:[chan 0] stat(b'/var/www/html/sftp_iexercice/mysy_invoices_dev/invoice_FACT_234000225.pdf') +INFO:root:2023-04-14 22:22:38.779000 : convertHtmlToPdf DEPLACEMENT DE ./Invoices/invoice_FACT_234000225.pdf VERS /var/www/html/sftp_iexercice/mysy_invoices_dev/invoice_FACT_234000225.pdf EST OKKKK +INFO:paramiko.transport.sftp:[chan 0] sftp session closed. +DEBUG:paramiko.transport:[chan 0] EOF sent (0) +DEBUG:paramiko.transport:EOF in transport thread +INFO:root:2023-04-14 22:22:38.781016 : Impression facture N° FACT_234000225 OK +INFO:root:2023-04-14 22:22:38.807444 : UpdataPartnerRankingClass - Le RANKING de 4 ont été mise à jour avec la valeur {'display_rank': '20', 'date_update': '2023-04-14 22:22:38.794584'} +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:22:38] "POST /myclass/api/createOrder/ HTTP/1.1" 200 - +INFO:root:2023-04-14 22:22:39.217236 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:22:39.654907 : Create_MySy_LMS_User WARNING - impossible d'ajouter le user '10075' à la table access_url_rel_user pour la recheche et l'envoi des email +INFO:root:2023-04-14 22:22:41.333059 : Create_MySy_LMS_User -not enough values to unpack (expected 5, got 4) - Line : 297 +INFO:root:2023-04-14 22:22:41.339403 : Check_MySy_LMS_Account - Impossible de créer le compte LSM +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:22:41] "POST /myclass/api/Check_MySy_LMS_Account/ HTTP/1.1" 200 - +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\lms_chamilo\\mysy_lms.py', reloading +INFO:werkzeug: * Restarting with stat +INFO:root:2023-04-14 22:24:18.047507 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-04-14 22:24:18.047507 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-04-14 22:24:18.047507 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-04-14 22:24:18.047507 : ++ FLASK PORT 5001 ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 105-942-311 +INFO:root:2023-04-14 22:24:18.085229 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:24:18.089247 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:24:18.094354 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:24:18.098889 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:24:18] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-04-14 22:24:18.107570 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:24:18] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:24:18] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-04-14 22:24:18.670538 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:24:18] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-04-14 22:24:18.966313 : LMS_Get_Partner_Data -'mysy_lms_user_id' - Line : 1852 +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:24:18] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\lms_chamilo\\mysy_lms.py', reloading +INFO:werkzeug: * Restarting with stat +INFO:root:2023-04-14 22:27:00.323281 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-04-14 22:27:00.323281 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-04-14 22:27:00.323281 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-04-14 22:27:00.323281 : ++ FLASK PORT 5001 ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 105-942-311 +INFO:root:2023-04-14 22:30:05.075333 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:30:05.080667 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:30:05.103658 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:30:05] "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_NLMwePQlYvgJeA/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_NLMwePQlYvgJeA/payment_methods?type=card response_code=200 +DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "pm_1MagEkAbmaEugrFT5drJGGgS",\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": "la plume de pierrot",\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": "IE",\n "exp_month": 12,\n "exp_year": 2023,\n "fingerprint": "HS92xLRWsDeuSLhN",\n "funding": "credit",\n "generated_from": null,\n "last4": "3220",\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": 1676210942,\n "customer": "cus_NLMwePQlYvgJeA",\n "livemode": false,\n "metadata": {},\n "type": "card"\n }\n ],\n "has_more": false,\n "url": "/v1/customers/cus_NLMwePQlYvgJeA/payment_methods"\n}' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_YLQBj9beAnyszB message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:30:05] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 - +INFO:root:2023-04-14 22:30:17.255557 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:30:17.263558 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:30:17.268834 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:30:17.276826 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:30:17] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:30:17] "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_NLMwePQlYvgJeA/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_NLMwePQlYvgJeA/payment_methods?type=card response_code=200 +DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "pm_1MagEkAbmaEugrFT5drJGGgS",\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": "la plume de pierrot",\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": "IE",\n "exp_month": 12,\n "exp_year": 2023,\n "fingerprint": "HS92xLRWsDeuSLhN",\n "funding": "credit",\n "generated_from": null,\n "last4": "3220",\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": 1676210942,\n "customer": "cus_NLMwePQlYvgJeA",\n "livemode": false,\n "metadata": {},\n "type": "card"\n }\n ],\n "has_more": false,\n "url": "/v1/customers/cus_NLMwePQlYvgJeA/payment_methods"\n}' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_I0AQie8fw7xPwt message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:30:18] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 - +INFO:root:2023-04-14 22:30:18.374403 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:30:18.387766 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:30:18] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:root:2023-04-14 22:30:33.420230 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:30:33.426279 : 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_1MagFcAbmaEugrFTtVSSQg3U +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_1MagFcAbmaEugrFTtVSSQg3U response_code=200 +DEBUG:stripe:body='{\n "id": "sub_1MagFcAbmaEugrFTtVSSQg3U",\n "object": "subscription",\n "application": null,\n "application_fee_percent": null,\n "automatic_tax": {\n "enabled": false\n },\n "billing_cycle_anchor": 1676210996,\n "billing_thresholds": null,\n "cancel_at": null,\n "cancel_at_period_end": false,\n "canceled_at": 1679930201,\n "cancellation_details": {\n "comment": null,\n "feedback": null,\n "reason": "payment_failed"\n },\n "collection_method": "charge_automatically",\n "created": 1676210996,\n "currency": "eur",\n "current_period_end": 1681308596,\n "current_period_start": 1678630196,\n "customer": "cus_NLMwePQlYvgJeA",\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": 1679930201,\n "items": {\n "object": "list",\n "data": [\n {\n "id": "si_NLMz8iMYugPQgy",\n "object": "subscription_item",\n "billing_thresholds": null,\n "created": 1676210997,\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": 10,\n "subscription": "sub_1MagFcAbmaEugrFTtVSSQg3U",\n "tax_rates": []\n }\n ],\n "has_more": false,\n "total_count": 1,\n "url": "/v1/subscription_items?subscription=sub_1MagFcAbmaEugrFTtVSSQg3U"\n },\n "latest_invoice": "in_1MkpeMAbmaEugrFTXE8N2fmJ",\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": 10,\n "schedule": null,\n "start_date": 1676210996,\n "status": "canceled",\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_I6khWSZ7E93kxa message='Dashboard link for request' +INFO:stripe:message='Request to Stripe api' method=post path=https://api.stripe.com/v1/subscriptions/sub_1MagFcAbmaEugrFTtVSSQg3U +DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=proration_behavior=create_prorations&items[0][id]=si_NLMz8iMYugPQgy&items[0][price]=price_1MT3FmAbmaEugrFTZ5vyJRcZ&items[0][quantity]=6 +INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/subscriptions/sub_1MagFcAbmaEugrFTtVSSQg3U response_code=404 +DEBUG:stripe:body='{\n "error": {\n "message": "You cannot update a subscription that is `canceled` or `incomplete_expired`.",\n "request_log_url": "https://dashboard.stripe.com/test/logs/req_RzEiSCrnX14SkM?t=1681504235",\n "type": "invalid_request_error"\n }\n}\n' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_RzEiSCrnX14SkM message='Dashboard link for request' +INFO:stripe:error_code=None error_message='You cannot update a subscription that is `canceled` or `incomplete_expired`.' error_param=None error_type=invalid_request_error message='Stripe API error received' +INFO:root:2023-04-14 22:30:35.397149 : strip_update_subscription_plan -Request req_RzEiSCrnX14SkM: You cannot update a subscription that is `canceled` or `incomplete_expired`. - ERRORRRR AT Line : 973 +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:30:35] "POST /myclass/api/strip_update_subscription_plan/ HTTP/1.1" 200 - +DEBUG:xhtml2pdf:pisaDocument options: + src = '\n\n\n\n\t
\n\t\tMysy Training Logo \n\t
\n\t\n\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t\t
\n\t\t\t\t\n\t\t\t\t\tLa plume de pierrot
\n\t\t\t\t\t2 place du test
\n\t\t\t\t\t75001 Paris
\n\t\t\t\t\tFrance
\n\n\t\t\t\t
\n\n\n\t\t\t\t\n\n\t\t\t\t\tFacture n° FACT_234000226\n\n\n\t\t\t\t
\n\t\t\t\t
\n\n\n\t\t\t\t\n\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\n\t\t\t\t
Date de facture: 14/04/2023 Date échéance : 14/04/2023
\n\n\t\t\t\t\n\t\t\t\t\tOrigine : MySy_00jQwI\n\t\t\t\t\n\n\t\t\t\t
 
\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t
DescriptionQuantitéPrix unitaireMontant
Gold690540.0
\n\t\t\t\t\n\n\t\t\t\t
 
\n\n\t\t\t\n\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t
    Montant HT: 540.0
    TVA 20% : 108.0
    Montant TTC : 648.0
\n\n\n\t\t\t
\n\t\t\t
 
\n\t\t\t
 
\n\t\t\t
 
\n\n\n\n\t\t\n\n\t\n\t
\n\t
\n\t\t\n\n\t\t\t

MySy Training
\n\n\t\t\t\tCour du Havre 1, 75008, Paris
\n\n\t\t\t\tMySy Training Technology (MTT), société par actions simplifiée au capital de 1000 euros, dont le siège\n\t\t\t\tsocial est\n\t\t\t\tsitué 2, place des magnolias, 77680, Roissy en Brie, immatriculée au Registre du Commerce et des\n\t\t\t\tSociétés sous le numéro 917 500 860 R.C.S. Melun\n\t\t\t

\n\t\t\n\t
\n\n\n' + dest = <_io.BufferedRandom name='./Invoices/invoice_FACT_234000226.pdf'> + path = None + link_callback = None + xhtml = False + context_meta = None +DEBUG:xhtml2pdf:FileObject 'https://img.mysy-training.com/MYSY-LOGO-BLUE.png', Basepath: 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\__dummy__' +DEBUG:xhtml2pdf:URLParts: (ParseResult(scheme='https', netloc='img.mysy-training.com', path='/MYSY-LOGO-BLUE.png', params='', query='', fragment=''), 'https') +DEBUG:xhtml2pdf:Parsing img tag, src: +DEBUG:xhtml2pdf:Attrs: {'src': , 'width': 75.0, 'height': None, 'align': None, 'id': None} +DEBUG:xhtml2pdf:Sending request for https://img.mysy-training.com/MYSY-LOGO-BLUE.png with httplib +DEBUG:xhtml2pdf:Uri parsed: https://img.mysy-training.com/MYSY-LOGO-BLUE.png +DEBUG:PIL.PngImagePlugin:STREAM b'IHDR' 16 13 +DEBUG:PIL.PngImagePlugin:STREAM b'tEXt' 41 25 +DEBUG:PIL.PngImagePlugin:STREAM b'IDAT' 78 6645 +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:Col widths: [None, None] +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:Col 0 has width 0.0 +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:Col 1 has width 0.0 +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:Col 2 has width 0.0 +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:Col 3 has width 0.0 +DEBUG:xhtml2pdf:Col widths: [None, None, None, None] +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:Col widths: [None, None, None, None] +DEBUG:PIL.PngImagePlugin:STREAM b'IHDR' 16 13 +DEBUG:PIL.PngImagePlugin:STREAM b'tEXt' 41 25 +DEBUG:PIL.PngImagePlugin:STREAM b'IDAT' 78 6645 +DEBUG:paramiko.transport:starting thread (client mode): 0x89d9d660 +DEBUG:paramiko.transport:Local version/idstring: SSH-2.0-paramiko_3.1.0 +DEBUG:paramiko.transport:Remote version/idstring: SSH-2.0-OpenSSH_8.4p1 Debian-5+deb11u1 +INFO:paramiko.transport:Connected (version 2.0, client OpenSSH_8.4p1) +DEBUG:paramiko.transport:=== Key exchange possibilities === +DEBUG:paramiko.transport:kex algos: curve25519-sha256, curve25519-sha256@libssh.org, ecdh-sha2-nistp256, ecdh-sha2-nistp384, ecdh-sha2-nistp521, diffie-hellman-group-exchange-sha256, diffie-hellman-group16-sha512, diffie-hellman-group18-sha512, diffie-hellman-group14-sha256 +DEBUG:paramiko.transport:server key: rsa-sha2-512, rsa-sha2-256, ssh-rsa, ecdsa-sha2-nistp256, ssh-ed25519 +DEBUG:paramiko.transport:client encrypt: chacha20-poly1305@openssh.com, aes128-ctr, aes192-ctr, aes256-ctr, aes128-gcm@openssh.com, aes256-gcm@openssh.com +DEBUG:paramiko.transport:server encrypt: chacha20-poly1305@openssh.com, aes128-ctr, aes192-ctr, aes256-ctr, aes128-gcm@openssh.com, aes256-gcm@openssh.com +DEBUG:paramiko.transport:client mac: umac-64-etm@openssh.com, umac-128-etm@openssh.com, hmac-sha2-256-etm@openssh.com, hmac-sha2-512-etm@openssh.com, hmac-sha1-etm@openssh.com, umac-64@openssh.com, umac-128@openssh.com, hmac-sha2-256, hmac-sha2-512, hmac-sha1 +DEBUG:paramiko.transport:server mac: umac-64-etm@openssh.com, umac-128-etm@openssh.com, hmac-sha2-256-etm@openssh.com, hmac-sha2-512-etm@openssh.com, hmac-sha1-etm@openssh.com, umac-64@openssh.com, umac-128@openssh.com, hmac-sha2-256, hmac-sha2-512, hmac-sha1 +DEBUG:paramiko.transport:client compress: none, zlib@openssh.com +DEBUG:paramiko.transport:server compress: none, zlib@openssh.com +DEBUG:paramiko.transport:client lang: +DEBUG:paramiko.transport:server lang: +DEBUG:paramiko.transport:kex follows: False +DEBUG:paramiko.transport:=== Key exchange agreements === +DEBUG:paramiko.transport:Kex: curve25519-sha256@libssh.org +DEBUG:paramiko.transport:HostKey: ssh-ed25519 +DEBUG:paramiko.transport:Cipher: aes128-ctr +DEBUG:paramiko.transport:MAC: hmac-sha2-256 +DEBUG:paramiko.transport:Compression: none +DEBUG:paramiko.transport:=== End of kex handshake === +DEBUG:paramiko.transport:kex engine KexCurve25519 specified hash_algo +DEBUG:paramiko.transport:Switch to new keys ... +DEBUG:paramiko.transport:Got EXT_INFO: {'server-sig-algs': b'ssh-ed25519,sk-ssh-ed25519@openssh.com,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ecdsa-sha2-nistp256@openssh.com,webauthn-sk-ecdsa-sha2-nistp256@openssh.com'} +DEBUG:paramiko.transport:Attempting password auth... +DEBUG:paramiko.transport:userauth is OK +INFO:paramiko.transport:Authentication (password) successful! +DEBUG:paramiko.transport:[chan 0] Max packet in: 32768 bytes +DEBUG:paramiko.transport:Received global request "hostkeys-00@openssh.com" +DEBUG:paramiko.transport:Rejecting "hostkeys-00@openssh.com" global request from server. +DEBUG:paramiko.transport:[chan 0] Max packet out: 32768 bytes +DEBUG:paramiko.transport:Secsh channel 0 opened. +DEBUG:paramiko.transport:[chan 0] Sesch channel 0 request ok +INFO:paramiko.transport.sftp:[chan 0] Opened sftp connection (server version 3) +DEBUG:paramiko.transport.sftp:[chan 0] open(b'/var/www/html/sftp_iexercice/mysy_invoices_dev/invoice_FACT_234000226.pdf', 'wb') +DEBUG:paramiko.transport.sftp:[chan 0] open(b'/var/www/html/sftp_iexercice/mysy_invoices_dev/invoice_FACT_234000226.pdf', 'wb') -> 00000000 +DEBUG:paramiko.transport.sftp:[chan 0] close(00000000) +DEBUG:paramiko.transport.sftp:[chan 0] stat(b'/var/www/html/sftp_iexercice/mysy_invoices_dev/invoice_FACT_234000226.pdf') +INFO:root:2023-04-14 22:30:38.599230 : convertHtmlToPdf DEPLACEMENT DE ./Invoices/invoice_FACT_234000226.pdf VERS /var/www/html/sftp_iexercice/mysy_invoices_dev/invoice_FACT_234000226.pdf EST OKKKK +INFO:paramiko.transport.sftp:[chan 0] sftp session closed. +DEBUG:paramiko.transport:[chan 0] EOF sent (0) +DEBUG:paramiko.transport:EOF in transport thread +INFO:root:2023-04-14 22:30:38.601251 : Impression facture N° FACT_234000226 OK +INFO:root:2023-04-14 22:30:38.628260 : UpdataPartnerRankingClass - Le RANKING de 4 ont été mise à jour avec la valeur {'display_rank': '30', 'date_update': '2023-04-14 22:30:38.615220'} +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:30:38] "POST /myclass/api/createOrder/ HTTP/1.1" 200 - +INFO:root:2023-04-14 22:30:38.990826 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:30:42] "POST /myclass/api/Check_MySy_LMS_Account/ HTTP/1.1" 200 - +INFO:root:2023-04-14 22:30:59.960722 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:30:59.965747 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:30:59.971197 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:30:59] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-04-14 22:30:59.978192 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:30:59.988625 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:30:59] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:30:59] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:30:59] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-04-14 22:31:01.260973 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:31:01] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\lms_chamilo\\mysy_lms.py', reloading +INFO:werkzeug: * Restarting with stat +INFO:root:2023-04-14 22:35:32.481362 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-04-14 22:35:32.482366 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-04-14 22:35:32.482366 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-04-14 22:35:32.482366 : ++ FLASK PORT 5001 ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 105-942-311 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\GlobalVariable.py', reloading +INFO:werkzeug: * Restarting with stat +INFO:root:2023-04-14 22:40:39.657934 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-04-14 22:40:39.657934 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-04-14 22:40:39.657934 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-04-14 22:40:39.657934 : ++ FLASK PORT 5001 ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 105-942-311 +INFO:root:2023-04-14 22:41:22.844538 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:41:22.848891 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:41:22.854488 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:41:22.859247 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:41:22] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-04-14 22:41:22.873621 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:41:22] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:41:22] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-04-14 22:41:23.904981 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:41:23] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-04-14 22:41:24.059916 : LMS_Get_Partner_Data -'mysy_lms_user_id' - Line : 1852 +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:41:24] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:root:2023-04-14 22:41:30.186590 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:41:30.192111 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:41:30.199658 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:41:30] "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_NLMwePQlYvgJeA/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_NLMwePQlYvgJeA/payment_methods?type=card response_code=200 +DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "pm_1MagEkAbmaEugrFT5drJGGgS",\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": "la plume de pierrot",\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": "IE",\n "exp_month": 12,\n "exp_year": 2023,\n "fingerprint": "HS92xLRWsDeuSLhN",\n "funding": "credit",\n "generated_from": null,\n "last4": "3220",\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": 1676210942,\n "customer": "cus_NLMwePQlYvgJeA",\n "livemode": false,\n "metadata": {},\n "type": "card"\n }\n ],\n "has_more": false,\n "url": "/v1/customers/cus_NLMwePQlYvgJeA/payment_methods"\n}' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_Nm7oarTnR02mSz message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:41:30] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 - +INFO:root:2023-04-14 22:41:35.100649 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:41:35.106944 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:41:35.117959 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:41:35.127234 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:41:35] "POST /myclass/api/get_product_service/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:41:35] "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_NLMwePQlYvgJeA/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_NLMwePQlYvgJeA/payment_methods?type=card response_code=200 +DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "pm_1MagEkAbmaEugrFT5drJGGgS",\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": "la plume de pierrot",\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": "IE",\n "exp_month": 12,\n "exp_year": 2023,\n "fingerprint": "HS92xLRWsDeuSLhN",\n "funding": "credit",\n "generated_from": null,\n "last4": "3220",\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": 1676210942,\n "customer": "cus_NLMwePQlYvgJeA",\n "livemode": false,\n "metadata": {},\n "type": "card"\n }\n ],\n "has_more": false,\n "url": "/v1/customers/cus_NLMwePQlYvgJeA/payment_methods"\n}' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_GqCiTmsjUjUznE message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:41:36] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 - +INFO:root:2023-04-14 22:41:36.200354 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:41:36.212322 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:41:36] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:root:2023-04-14 22:42:03.444308 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:42:03.448818 : 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_1MagFcAbmaEugrFTtVSSQg3U +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_1MagFcAbmaEugrFTtVSSQg3U response_code=200 +DEBUG:stripe:body='{\n "id": "sub_1MagFcAbmaEugrFTtVSSQg3U",\n "object": "subscription",\n "application": null,\n "application_fee_percent": null,\n "automatic_tax": {\n "enabled": false\n },\n "billing_cycle_anchor": 1676210996,\n "billing_thresholds": null,\n "cancel_at": null,\n "cancel_at_period_end": false,\n "canceled_at": 1679930201,\n "cancellation_details": {\n "comment": null,\n "feedback": null,\n "reason": "payment_failed"\n },\n "collection_method": "charge_automatically",\n "created": 1676210996,\n "currency": "eur",\n "current_period_end": 1681308596,\n "current_period_start": 1678630196,\n "customer": "cus_NLMwePQlYvgJeA",\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": 1679930201,\n "items": {\n "object": "list",\n "data": [\n {\n "id": "si_NLMz8iMYugPQgy",\n "object": "subscription_item",\n "billing_thresholds": null,\n "created": 1676210997,\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": 10,\n "subscription": "sub_1MagFcAbmaEugrFTtVSSQg3U",\n "tax_rates": []\n }\n ],\n "has_more": false,\n "total_count": 1,\n "url": "/v1/subscription_items?subscription=sub_1MagFcAbmaEugrFTtVSSQg3U"\n },\n "latest_invoice": "in_1MkpeMAbmaEugrFTXE8N2fmJ",\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": 10,\n "schedule": null,\n "start_date": 1676210996,\n "status": "canceled",\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_BHYi1dfpnR3s0M message='Dashboard link for request' +INFO:stripe:message='Request to Stripe api' method=post path=https://api.stripe.com/v1/subscriptions/sub_1MagFcAbmaEugrFTtVSSQg3U +DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=proration_behavior=create_prorations&items[0][id]=si_NLMz8iMYugPQgy&items[0][price]=price_1MT3FLAbmaEugrFTDgw7MVgb&items[0][quantity]=12 +INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/subscriptions/sub_1MagFcAbmaEugrFTtVSSQg3U response_code=404 +DEBUG:stripe:body='{\n "error": {\n "message": "You cannot update a subscription that is `canceled` or `incomplete_expired`.",\n "request_log_url": "https://dashboard.stripe.com/test/logs/req_7ErMflaOseH9Ca?t=1681504925",\n "type": "invalid_request_error"\n }\n}\n' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_7ErMflaOseH9Ca message='Dashboard link for request' +INFO:stripe:error_code=None error_message='You cannot update a subscription that is `canceled` or `incomplete_expired`.' error_param=None error_type=invalid_request_error message='Stripe API error received' +INFO:root:2023-04-14 22:42:04.709479 : strip_update_subscription_plan -Request req_7ErMflaOseH9Ca: You cannot update a subscription that is `canceled` or `incomplete_expired`. - ERRORRRR AT Line : 973 +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:42:04] "POST /myclass/api/strip_update_subscription_plan/ HTTP/1.1" 200 - +DEBUG:xhtml2pdf:pisaDocument options: + src = '\n\n\n\n\t
\n\t\tMysy Training Logo \n\t
\n\t\n\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t\t
\n\t\t\t\t\n\t\t\t\t\tLa plume de pierrot
\n\t\t\t\t\t2 place du test
\n\t\t\t\t\t75001 Paris
\n\t\t\t\t\tFrance
\n\n\t\t\t\t
\n\n\n\t\t\t\t\n\n\t\t\t\t\tFacture n° FACT_234000227\n\n\n\t\t\t\t
\n\t\t\t\t
\n\n\n\t\t\t\t\n\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\n\t\t\t\t
Date de facture: 14/04/2023 Date échéance : 14/04/2023
\n\n\t\t\t\t\n\t\t\t\t\tOrigine : MySy_00ARae\n\t\t\t\t\n\n\t\t\t\t
 
\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t
DescriptionQuantitéPrix unitaireMontant
Standard1250600.0
\n\t\t\t\t\n\n\t\t\t\t
 
\n\n\t\t\t\n\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t
    Montant HT: 600.0
    TVA 20% : 120.0
    Montant TTC : 720.0
\n\n\n\t\t\t
\n\t\t\t
 
\n\t\t\t
 
\n\t\t\t
 
\n\n\n\n\t\t\n\n\t\n\t
\n\t
\n\t\t\n\n\t\t\t

MySy Training
\n\n\t\t\t\tCour du Havre 1, 75008, Paris
\n\n\t\t\t\tMySy Training Technology (MTT), société par actions simplifiée au capital de 1000 euros, dont le siège\n\t\t\t\tsocial est\n\t\t\t\tsitué 2, place des magnolias, 77680, Roissy en Brie, immatriculée au Registre du Commerce et des\n\t\t\t\tSociétés sous le numéro 917 500 860 R.C.S. Melun\n\t\t\t

\n\t\t\n\t
\n\n\n' + dest = <_io.BufferedRandom name='./Invoices/invoice_FACT_234000227.pdf'> + path = None + link_callback = None + xhtml = False + context_meta = None +DEBUG:xhtml2pdf:FileObject 'https://img.mysy-training.com/MYSY-LOGO-BLUE.png', Basepath: 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\__dummy__' +DEBUG:xhtml2pdf:URLParts: (ParseResult(scheme='https', netloc='img.mysy-training.com', path='/MYSY-LOGO-BLUE.png', params='', query='', fragment=''), 'https') +DEBUG:xhtml2pdf:Parsing img tag, src: +DEBUG:xhtml2pdf:Attrs: {'src': , 'width': 75.0, 'height': None, 'align': None, 'id': None} +DEBUG:xhtml2pdf:Sending request for https://img.mysy-training.com/MYSY-LOGO-BLUE.png with httplib +DEBUG:xhtml2pdf:Uri parsed: https://img.mysy-training.com/MYSY-LOGO-BLUE.png +DEBUG:PIL.PngImagePlugin:STREAM b'IHDR' 16 13 +DEBUG:PIL.PngImagePlugin:STREAM b'tEXt' 41 25 +DEBUG:PIL.PngImagePlugin:STREAM b'IDAT' 78 6645 +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:Col widths: [None, None] +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:Col 0 has width 0.0 +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:Col 1 has width 0.0 +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:Col 2 has width 0.0 +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:Col 3 has width 0.0 +DEBUG:xhtml2pdf:Col widths: [None, None, None, None] +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:Col widths: [None, None, None, None] +DEBUG:PIL.PngImagePlugin:STREAM b'IHDR' 16 13 +DEBUG:PIL.PngImagePlugin:STREAM b'tEXt' 41 25 +DEBUG:PIL.PngImagePlugin:STREAM b'IDAT' 78 6645 +DEBUG:paramiko.transport:starting thread (client mode): 0x9cd65660 +DEBUG:paramiko.transport:Local version/idstring: SSH-2.0-paramiko_3.1.0 +DEBUG:paramiko.transport:Remote version/idstring: SSH-2.0-OpenSSH_8.4p1 Debian-5+deb11u1 +INFO:paramiko.transport:Connected (version 2.0, client OpenSSH_8.4p1) +DEBUG:paramiko.transport:=== Key exchange possibilities === +DEBUG:paramiko.transport:kex algos: curve25519-sha256, curve25519-sha256@libssh.org, ecdh-sha2-nistp256, ecdh-sha2-nistp384, ecdh-sha2-nistp521, diffie-hellman-group-exchange-sha256, diffie-hellman-group16-sha512, diffie-hellman-group18-sha512, diffie-hellman-group14-sha256 +DEBUG:paramiko.transport:server key: rsa-sha2-512, rsa-sha2-256, ssh-rsa, ecdsa-sha2-nistp256, ssh-ed25519 +DEBUG:paramiko.transport:client encrypt: chacha20-poly1305@openssh.com, aes128-ctr, aes192-ctr, aes256-ctr, aes128-gcm@openssh.com, aes256-gcm@openssh.com +DEBUG:paramiko.transport:server encrypt: chacha20-poly1305@openssh.com, aes128-ctr, aes192-ctr, aes256-ctr, aes128-gcm@openssh.com, aes256-gcm@openssh.com +DEBUG:paramiko.transport:client mac: umac-64-etm@openssh.com, umac-128-etm@openssh.com, hmac-sha2-256-etm@openssh.com, hmac-sha2-512-etm@openssh.com, hmac-sha1-etm@openssh.com, umac-64@openssh.com, umac-128@openssh.com, hmac-sha2-256, hmac-sha2-512, hmac-sha1 +DEBUG:paramiko.transport:server mac: umac-64-etm@openssh.com, umac-128-etm@openssh.com, hmac-sha2-256-etm@openssh.com, hmac-sha2-512-etm@openssh.com, hmac-sha1-etm@openssh.com, umac-64@openssh.com, umac-128@openssh.com, hmac-sha2-256, hmac-sha2-512, hmac-sha1 +DEBUG:paramiko.transport:client compress: none, zlib@openssh.com +DEBUG:paramiko.transport:server compress: none, zlib@openssh.com +DEBUG:paramiko.transport:client lang: +DEBUG:paramiko.transport:server lang: +DEBUG:paramiko.transport:kex follows: False +DEBUG:paramiko.transport:=== Key exchange agreements === +DEBUG:paramiko.transport:Kex: curve25519-sha256@libssh.org +DEBUG:paramiko.transport:HostKey: ssh-ed25519 +DEBUG:paramiko.transport:Cipher: aes128-ctr +DEBUG:paramiko.transport:MAC: hmac-sha2-256 +DEBUG:paramiko.transport:Compression: none +DEBUG:paramiko.transport:=== End of kex handshake === +DEBUG:paramiko.transport:kex engine KexCurve25519 specified hash_algo +DEBUG:paramiko.transport:Switch to new keys ... +DEBUG:paramiko.transport:Attempting password auth... +DEBUG:paramiko.transport:Got EXT_INFO: {'server-sig-algs': b'ssh-ed25519,sk-ssh-ed25519@openssh.com,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ecdsa-sha2-nistp256@openssh.com,webauthn-sk-ecdsa-sha2-nistp256@openssh.com'} +DEBUG:paramiko.transport:userauth is OK +INFO:paramiko.transport:Authentication (password) successful! +DEBUG:paramiko.transport:[chan 0] Max packet in: 32768 bytes +DEBUG:paramiko.transport:Received global request "hostkeys-00@openssh.com" +DEBUG:paramiko.transport:Rejecting "hostkeys-00@openssh.com" global request from server. +DEBUG:paramiko.transport:[chan 0] Max packet out: 32768 bytes +DEBUG:paramiko.transport:Secsh channel 0 opened. +DEBUG:paramiko.transport:[chan 0] Sesch channel 0 request ok +INFO:paramiko.transport.sftp:[chan 0] Opened sftp connection (server version 3) +DEBUG:paramiko.transport.sftp:[chan 0] open(b'/var/www/html/sftp_iexercice/mysy_invoices_dev/invoice_FACT_234000227.pdf', 'wb') +DEBUG:paramiko.transport.sftp:[chan 0] open(b'/var/www/html/sftp_iexercice/mysy_invoices_dev/invoice_FACT_234000227.pdf', 'wb') -> 00000000 +DEBUG:paramiko.transport.sftp:[chan 0] close(00000000) +DEBUG:paramiko.transport.sftp:[chan 0] stat(b'/var/www/html/sftp_iexercice/mysy_invoices_dev/invoice_FACT_234000227.pdf') +INFO:root:2023-04-14 22:42:07.532962 : convertHtmlToPdf DEPLACEMENT DE ./Invoices/invoice_FACT_234000227.pdf VERS /var/www/html/sftp_iexercice/mysy_invoices_dev/invoice_FACT_234000227.pdf EST OKKKK +INFO:paramiko.transport.sftp:[chan 0] sftp session closed. +DEBUG:paramiko.transport:[chan 0] EOF sent (0) +DEBUG:paramiko.transport:EOF in transport thread +INFO:root:2023-04-14 22:42:07.535481 : Impression facture N° FACT_234000227 OK +INFO:root:2023-04-14 22:42:07.575490 : UpdataPartnerRankingClass - Le RANKING de 4 ont été mise à jour avec la valeur {'display_rank': '20', 'date_update': '2023-04-14 22:42:07.558453'} +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:42:07] "POST /myclass/api/createOrder/ HTTP/1.1" 200 - +INFO:root:2023-04-14 22:42:07.885598 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:42:08] "POST /myclass/api/Check_MySy_LMS_Account/ HTTP/1.1" 200 - +INFO:root:2023-04-14 22:42:47.668675 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:42:47.675332 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:42:47] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-04-14 22:42:47.681333 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:42:47.686163 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:42:47.696260 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:42:47] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:42:47] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:42:47] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-04-14 22:42:48.624426 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:42:48] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\lms_chamilo\\mysy_lms.py', reloading +INFO:werkzeug: * Restarting with stat +INFO:root:2023-04-14 22:46:38.456852 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-04-14 22:46:38.456852 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-04-14 22:46:38.456852 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-04-14 22:46:38.456852 : ++ FLASK PORT 5001 ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 105-942-311 +INFO:root:2023-04-14 22:47:12.842106 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:47:12.848122 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:47:12.853121 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:47:12.858338 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:47:12] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-04-14 22:47:12.877997 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:47:12] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:47:12] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-04-14 22:47:13.842155 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:47:13] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-04-14 22:47:14.214935 : LMS_Get_Partner_Data -'mysy_lms_user_id' - Line : 1852 +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:47:14] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:root:2023-04-14 22:47:16.984396 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:47:16.989497 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:47:16.995662 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:47:16] "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_NLMwePQlYvgJeA/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_NLMwePQlYvgJeA/payment_methods?type=card response_code=200 +DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "pm_1MagEkAbmaEugrFT5drJGGgS",\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": "la plume de pierrot",\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": "IE",\n "exp_month": 12,\n "exp_year": 2023,\n "fingerprint": "HS92xLRWsDeuSLhN",\n "funding": "credit",\n "generated_from": null,\n "last4": "3220",\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": 1676210942,\n "customer": "cus_NLMwePQlYvgJeA",\n "livemode": false,\n "metadata": {},\n "type": "card"\n }\n ],\n "has_more": false,\n "url": "/v1/customers/cus_NLMwePQlYvgJeA/payment_methods"\n}' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_5gFEzOxI9AkIDc message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:47:17] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 - +INFO:root:2023-04-14 22:47:22.548913 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:47:22.553085 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:47:22.561600 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:47:22.567715 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:47:22] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:47:22] "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_NLMwePQlYvgJeA/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_NLMwePQlYvgJeA/payment_methods?type=card response_code=200 +DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "pm_1MagEkAbmaEugrFT5drJGGgS",\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": "la plume de pierrot",\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": "IE",\n "exp_month": 12,\n "exp_year": 2023,\n "fingerprint": "HS92xLRWsDeuSLhN",\n "funding": "credit",\n "generated_from": null,\n "last4": "3220",\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": 1676210942,\n "customer": "cus_NLMwePQlYvgJeA",\n "livemode": false,\n "metadata": {},\n "type": "card"\n }\n ],\n "has_more": false,\n "url": "/v1/customers/cus_NLMwePQlYvgJeA/payment_methods"\n}' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_aTOLSmKXaDJasG message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:47:23] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 - +INFO:root:2023-04-14 22:47:23.570091 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:47:23.582133 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:47:23] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:root:2023-04-14 22:47:42.430080 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:47:42.434222 : 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_1MagFcAbmaEugrFTtVSSQg3U +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_1MagFcAbmaEugrFTtVSSQg3U response_code=200 +DEBUG:stripe:body='{\n "id": "sub_1MagFcAbmaEugrFTtVSSQg3U",\n "object": "subscription",\n "application": null,\n "application_fee_percent": null,\n "automatic_tax": {\n "enabled": false\n },\n "billing_cycle_anchor": 1676210996,\n "billing_thresholds": null,\n "cancel_at": null,\n "cancel_at_period_end": false,\n "canceled_at": 1679930201,\n "cancellation_details": {\n "comment": null,\n "feedback": null,\n "reason": "payment_failed"\n },\n "collection_method": "charge_automatically",\n "created": 1676210996,\n "currency": "eur",\n "current_period_end": 1681308596,\n "current_period_start": 1678630196,\n "customer": "cus_NLMwePQlYvgJeA",\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": 1679930201,\n "items": {\n "object": "list",\n "data": [\n {\n "id": "si_NLMz8iMYugPQgy",\n "object": "subscription_item",\n "billing_thresholds": null,\n "created": 1676210997,\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": 10,\n "subscription": "sub_1MagFcAbmaEugrFTtVSSQg3U",\n "tax_rates": []\n }\n ],\n "has_more": false,\n "total_count": 1,\n "url": "/v1/subscription_items?subscription=sub_1MagFcAbmaEugrFTtVSSQg3U"\n },\n "latest_invoice": "in_1MkpeMAbmaEugrFTXE8N2fmJ",\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": 10,\n "schedule": null,\n "start_date": 1676210996,\n "status": "canceled",\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_uZTzmYCGgxAvQn message='Dashboard link for request' +INFO:stripe:message='Request to Stripe api' method=post path=https://api.stripe.com/v1/subscriptions/sub_1MagFcAbmaEugrFTtVSSQg3U +DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=proration_behavior=create_prorations&items[0][id]=si_NLMz8iMYugPQgy&items[0][price]=price_1MT3FmAbmaEugrFTZ5vyJRcZ&items[0][quantity]=10 +INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/subscriptions/sub_1MagFcAbmaEugrFTtVSSQg3U response_code=404 +DEBUG:stripe:body='{\n "error": {\n "message": "You cannot update a subscription that is `canceled` or `incomplete_expired`.",\n "request_log_url": "https://dashboard.stripe.com/test/logs/req_6TdUskQn4J23Du?t=1681505264",\n "type": "invalid_request_error"\n }\n}\n' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_6TdUskQn4J23Du message='Dashboard link for request' +INFO:stripe:error_code=None error_message='You cannot update a subscription that is `canceled` or `incomplete_expired`.' error_param=None error_type=invalid_request_error message='Stripe API error received' +INFO:root:2023-04-14 22:47:43.147707 : strip_update_subscription_plan -Request req_6TdUskQn4J23Du: You cannot update a subscription that is `canceled` or `incomplete_expired`. - ERRORRRR AT Line : 973 +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:47:43] "POST /myclass/api/strip_update_subscription_plan/ HTTP/1.1" 200 - +DEBUG:xhtml2pdf:pisaDocument options: + src = '\n\n\n\n\t
\n\t\tMysy Training Logo \n\t
\n\t\n\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t\t
\n\t\t\t\t\n\t\t\t\t\tLa plume de pierrot
\n\t\t\t\t\t2 place du test
\n\t\t\t\t\t75001 Paris
\n\t\t\t\t\tFrance
\n\n\t\t\t\t
\n\n\n\t\t\t\t\n\n\t\t\t\t\tFacture n° FACT_234000228\n\n\n\t\t\t\t
\n\t\t\t\t
\n\n\n\t\t\t\t\n\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\n\t\t\t\t
Date de facture: 14/04/2023 Date échéance : 14/04/2023
\n\n\t\t\t\t\n\t\t\t\t\tOrigine : MySy_00_sCj\n\t\t\t\t\n\n\t\t\t\t
 
\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t
DescriptionQuantitéPrix unitaireMontant
Gold1090900.0
\n\t\t\t\t\n\n\t\t\t\t
 
\n\n\t\t\t\n\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t
    Montant HT: 900.0
    TVA 20% : 180.0
    Montant TTC : 1080.0
\n\n\n\t\t\t
\n\t\t\t
 
\n\t\t\t
 
\n\t\t\t
 
\n\n\n\n\t\t\n\n\t\n\t
\n\t
\n\t\t\n\n\t\t\t

MySy Training
\n\n\t\t\t\tCour du Havre 1, 75008, Paris
\n\n\t\t\t\tMySy Training Technology (MTT), société par actions simplifiée au capital de 1000 euros, dont le siège\n\t\t\t\tsocial est\n\t\t\t\tsitué 2, place des magnolias, 77680, Roissy en Brie, immatriculée au Registre du Commerce et des\n\t\t\t\tSociétés sous le numéro 917 500 860 R.C.S. Melun\n\t\t\t

\n\t\t\n\t
\n\n\n' + dest = <_io.BufferedRandom name='./Invoices/invoice_FACT_234000228.pdf'> + path = None + link_callback = None + xhtml = False + context_meta = None +DEBUG:xhtml2pdf:FileObject 'https://img.mysy-training.com/MYSY-LOGO-BLUE.png', Basepath: 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\__dummy__' +DEBUG:xhtml2pdf:URLParts: (ParseResult(scheme='https', netloc='img.mysy-training.com', path='/MYSY-LOGO-BLUE.png', params='', query='', fragment=''), 'https') +DEBUG:xhtml2pdf:Parsing img tag, src: +DEBUG:xhtml2pdf:Attrs: {'src': , 'width': 75.0, 'height': None, 'align': None, 'id': None} +DEBUG:xhtml2pdf:Sending request for https://img.mysy-training.com/MYSY-LOGO-BLUE.png with httplib +DEBUG:xhtml2pdf:Uri parsed: https://img.mysy-training.com/MYSY-LOGO-BLUE.png +DEBUG:PIL.PngImagePlugin:STREAM b'IHDR' 16 13 +DEBUG:PIL.PngImagePlugin:STREAM b'tEXt' 41 25 +DEBUG:PIL.PngImagePlugin:STREAM b'IDAT' 78 6645 +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:Col widths: [None, None] +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:Col 0 has width 0.0 +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:Col 1 has width 0.0 +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:Col 2 has width 0.0 +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:Col 3 has width 0.0 +DEBUG:xhtml2pdf:Col widths: [None, None, None, None] +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:Col widths: [None, None, None, None] +DEBUG:PIL.PngImagePlugin:STREAM b'IHDR' 16 13 +DEBUG:PIL.PngImagePlugin:STREAM b'tEXt' 41 25 +DEBUG:PIL.PngImagePlugin:STREAM b'IDAT' 78 6645 +DEBUG:paramiko.transport:starting thread (client mode): 0x33ef16c0 +DEBUG:paramiko.transport:Local version/idstring: SSH-2.0-paramiko_3.1.0 +DEBUG:paramiko.transport:Remote version/idstring: SSH-2.0-OpenSSH_8.4p1 Debian-5+deb11u1 +INFO:paramiko.transport:Connected (version 2.0, client OpenSSH_8.4p1) +DEBUG:paramiko.transport:=== Key exchange possibilities === +DEBUG:paramiko.transport:kex algos: curve25519-sha256, curve25519-sha256@libssh.org, ecdh-sha2-nistp256, ecdh-sha2-nistp384, ecdh-sha2-nistp521, diffie-hellman-group-exchange-sha256, diffie-hellman-group16-sha512, diffie-hellman-group18-sha512, diffie-hellman-group14-sha256 +DEBUG:paramiko.transport:server key: rsa-sha2-512, rsa-sha2-256, ssh-rsa, ecdsa-sha2-nistp256, ssh-ed25519 +DEBUG:paramiko.transport:client encrypt: chacha20-poly1305@openssh.com, aes128-ctr, aes192-ctr, aes256-ctr, aes128-gcm@openssh.com, aes256-gcm@openssh.com +DEBUG:paramiko.transport:server encrypt: chacha20-poly1305@openssh.com, aes128-ctr, aes192-ctr, aes256-ctr, aes128-gcm@openssh.com, aes256-gcm@openssh.com +DEBUG:paramiko.transport:client mac: umac-64-etm@openssh.com, umac-128-etm@openssh.com, hmac-sha2-256-etm@openssh.com, hmac-sha2-512-etm@openssh.com, hmac-sha1-etm@openssh.com, umac-64@openssh.com, umac-128@openssh.com, hmac-sha2-256, hmac-sha2-512, hmac-sha1 +DEBUG:paramiko.transport:server mac: umac-64-etm@openssh.com, umac-128-etm@openssh.com, hmac-sha2-256-etm@openssh.com, hmac-sha2-512-etm@openssh.com, hmac-sha1-etm@openssh.com, umac-64@openssh.com, umac-128@openssh.com, hmac-sha2-256, hmac-sha2-512, hmac-sha1 +DEBUG:paramiko.transport:client compress: none, zlib@openssh.com +DEBUG:paramiko.transport:server compress: none, zlib@openssh.com +DEBUG:paramiko.transport:client lang: +DEBUG:paramiko.transport:server lang: +DEBUG:paramiko.transport:kex follows: False +DEBUG:paramiko.transport:=== Key exchange agreements === +DEBUG:paramiko.transport:Kex: curve25519-sha256@libssh.org +DEBUG:paramiko.transport:HostKey: ssh-ed25519 +DEBUG:paramiko.transport:Cipher: aes128-ctr +DEBUG:paramiko.transport:MAC: hmac-sha2-256 +DEBUG:paramiko.transport:Compression: none +DEBUG:paramiko.transport:=== End of kex handshake === +DEBUG:paramiko.transport:kex engine KexCurve25519 specified hash_algo +DEBUG:paramiko.transport:Switch to new keys ... +DEBUG:paramiko.transport:Attempting password auth... +DEBUG:paramiko.transport:Got EXT_INFO: {'server-sig-algs': b'ssh-ed25519,sk-ssh-ed25519@openssh.com,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ecdsa-sha2-nistp256@openssh.com,webauthn-sk-ecdsa-sha2-nistp256@openssh.com'} +DEBUG:paramiko.transport:userauth is OK +INFO:paramiko.transport:Authentication (password) successful! +DEBUG:paramiko.transport:[chan 0] Max packet in: 32768 bytes +DEBUG:paramiko.transport:Received global request "hostkeys-00@openssh.com" +DEBUG:paramiko.transport:Rejecting "hostkeys-00@openssh.com" global request from server. +DEBUG:paramiko.transport:[chan 0] Max packet out: 32768 bytes +DEBUG:paramiko.transport:Secsh channel 0 opened. +DEBUG:paramiko.transport:[chan 0] Sesch channel 0 request ok +INFO:paramiko.transport.sftp:[chan 0] Opened sftp connection (server version 3) +DEBUG:paramiko.transport.sftp:[chan 0] open(b'/var/www/html/sftp_iexercice/mysy_invoices_dev/invoice_FACT_234000228.pdf', 'wb') +DEBUG:paramiko.transport.sftp:[chan 0] open(b'/var/www/html/sftp_iexercice/mysy_invoices_dev/invoice_FACT_234000228.pdf', 'wb') -> 00000000 +DEBUG:paramiko.transport.sftp:[chan 0] close(00000000) +DEBUG:paramiko.transport.sftp:[chan 0] stat(b'/var/www/html/sftp_iexercice/mysy_invoices_dev/invoice_FACT_234000228.pdf') +INFO:root:2023-04-14 22:47:47.408061 : convertHtmlToPdf DEPLACEMENT DE ./Invoices/invoice_FACT_234000228.pdf VERS /var/www/html/sftp_iexercice/mysy_invoices_dev/invoice_FACT_234000228.pdf EST OKKKK +INFO:paramiko.transport.sftp:[chan 0] sftp session closed. +DEBUG:paramiko.transport:[chan 0] EOF sent (0) +DEBUG:paramiko.transport:EOF in transport thread +INFO:root:2023-04-14 22:47:47.409113 : Impression facture N° FACT_234000228 OK +INFO:root:2023-04-14 22:47:47.436717 : UpdataPartnerRankingClass - Le RANKING de 4 ont été mise à jour avec la valeur {'display_rank': '30', 'date_update': '2023-04-14 22:47:47.422240'} +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:47:47] "POST /myclass/api/createOrder/ HTTP/1.1" 200 - +INFO:root:2023-04-14 22:47:47.712799 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:47:48] "POST /myclass/api/Check_MySy_LMS_Account/ HTTP/1.1" 200 - +INFO:root:2023-04-14 22:48:08.216601 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:48:08.223281 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:48:08.228568 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:48:08] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-04-14 22:48:08.237041 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-14 22:48:08.243586 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:48:08] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:48:08] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:48:08] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-04-14 22:48:09.298896 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:48:09] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - diff --git a/email_mgt.py b/email_mgt.py index cb8bd57..c72a3e5 100644 --- a/email_mgt.py +++ b/email_mgt.py @@ -63,11 +63,11 @@ def send_user_account_mail_old(message, account_mail): my_url = "" if (MYSY_GV.MYSY_ENV == "PROD"): - my_url = "https://apimysy.iexercice.com/myclass/api/valide_user_account/"+str(message) + my_url = "https://apimysy.mysy-training.com/myclass/api/valide_user_account/"+str(message) elif (MYSY_GV.MYSY_ENV == "DEV"): my_url = "http://localhost:"+str(MYSY_GV.MYSY_PORT_DEV)+"/myclass/api/valide_user_account/"+str(message) elif (MYSY_GV.MYSY_ENV == "REC"): - my_url = "https://devapimysy.iexercice.com/myclass/api/valide_user_account/" + str(message) + my_url = "https://devapimysy.mysy-training.com/myclass/api/valide_user_account/" + str(message) send_smtp_email = sib_api_v3_sdk.SendSmtpEmail(template_id=15, params={"mysyurl": my_url, @@ -111,11 +111,11 @@ def send_user_thks_mail_old(message, account_mail): my_url = "" if (MYSY_GV.MYSY_ENV == "PROD"): - my_url = "https://apimysy.iexercice.com/myclass/api/valide_user_account/" + str(message) + my_url = "https://apimysy.mysy-training.com/myclass/api/valide_user_account/" + str(message) elif (MYSY_GV.MYSY_ENV == "DEV"): my_url = "http://localhost:"+str(MYSY_GV.MYSY_PORT_DEV)+"/myclass/api/valide_user_account/" + str(message) elif (MYSY_GV.MYSY_ENV == "REC"): - my_url = "https://devapimysy.iexercice.com/myclass/api/valide_user_account/" + str(message) + my_url = "https://devapimysy.mysy-training.com/myclass/api/valide_user_account/" + str(message) @@ -144,11 +144,11 @@ def send_partner_account_mail_old(message, account_mail): my_url = "" if (MYSY_GV.MYSY_ENV == "PROD"): - my_url = "https://apimysy.iexercice.com/myclass/api/valide_partnair_account/" + str(message) + my_url = "https://apimysy.mysy-training.com/myclass/api/valide_partnair_account/" + str(message) elif (MYSY_GV.MYSY_ENV == "DEV"): my_url = "http://localhost:"+str(MYSY_GV.MYSY_PORT_DEV)+"/myclass/api/valide_partnair_account/"+str(message) elif (MYSY_GV.MYSY_ENV == "REC"): - my_url = "https://devapimysy.iexercice.com/myclass/api/valide_partnair_account/"+str(message) + my_url = "https://devapimysy.mysy-training.com/myclass/api/valide_partnair_account/"+str(message) print(" mail enoye à toaddrs : "+toaddrs) @@ -1121,11 +1121,11 @@ def send_user_account_mail(message, account_mail): my_url = "" if (MYSY_GV.MYSY_ENV == "PROD"): - my_url = "https://apimysy.iexercice.com/myclass/api/valide_user_account/"+str(message) + my_url = "https://apimysy.mysy-training.com/myclass/api/valide_user_account/"+str(message) elif (MYSY_GV.MYSY_ENV == "DEV"): my_url = "http://localhost:"+str(MYSY_GV.MYSY_PORT_DEV)+"/myclass/api/valide_user_account/"+str(message) elif (MYSY_GV.MYSY_ENV == "REC"): - my_url = "https://devapimysy.iexercice.com/myclass/api/valide_user_account/" + str(message) + my_url = "https://devapimysy.mysy-training.com/myclass/api/valide_user_account/" + str(message) @@ -1190,11 +1190,11 @@ def send_partner_account_mail(message, account_mail): my_url = "" if (MYSY_GV.MYSY_ENV == "PROD"): - my_url = "https://apimysy.iexercice.com/myclass/api/valide_partnair_account/" + str(message) + my_url = "https://apimysy.mysy-training.com/myclass/api/valide_partnair_account/" + str(message) elif (MYSY_GV.MYSY_ENV == "DEV"): my_url = "http://localhost:"+str(MYSY_GV.MYSY_PORT_DEV)+"/myclass/api/valide_partnair_account/"+str(message) elif (MYSY_GV.MYSY_ENV == "REC"): - my_url = "https://devapimysy.iexercice.com/myclass/api/valide_partnair_account/" + str(message) + my_url = "https://devapimysy.mysy-training.com/myclass/api/valide_partnair_account/" + str(message) @@ -1327,11 +1327,11 @@ def send_user_thks_mail(message, account_mail): my_url = "" if (MYSY_GV.MYSY_ENV == "PROD"): - my_url = "https://apimysy.iexercice.com/myclass/api/valide_user_account/" + str(message) + my_url = "https://apimysy.mysy-training.com/myclass/api/valide_user_account/" + str(message) elif (MYSY_GV.MYSY_ENV == "DEV"): my_url = "http://localhost:"+str(MYSY_GV.MYSY_PORT_DEV)+"/myclass/api/valide_user_account/" + str(message) elif (MYSY_GV.MYSY_ENV == "REC"): - my_url = "https://devapimysy.iexercice.com/myclass/api/valide_user_account/" + str(message) + my_url = "https://devapimysy.mysy-training.com/myclass/api/valide_user_account/" + str(message) """ @@ -1733,11 +1733,11 @@ def SendEmargementMail( diction): #myurl = "http://127.0.0.1:5001/myclass/api/UserEmargementValidation/"+str(val_emarge['_id'])+"/1" if (MYSY_GV.MYSY_ENV == "PROD"): - myurl = "https://apimysy.iexercice.com/myclass/api/UserEmargementValidation/" + str(val_emarge['_id']) + "/1" + myurl = "https://apimysy.mysy-training.com/myclass/api/UserEmargementValidation/" + str(val_emarge['_id']) + "/1" elif (MYSY_GV.MYSY_ENV == "DEV"): myurl = "http://127.0.0.1:5001/myclass/api/UserEmargementValidation/"+str(val_emarge['_id'])+"/1" elif (MYSY_GV.MYSY_ENV == "REC"): - myurl = "https://devapimysy.iexercice.com/myclass/api/UserEmargementValidation/" + str(val_emarge['_id']) + "/1" + myurl = "https://devapimysy.mysy-training.com/myclass/api/UserEmargementValidation/" + str(val_emarge['_id']) + "/1" body = { @@ -1771,12 +1771,12 @@ def SendEmargementMail( diction): myurl = "http://127.0.0.1:5001/myclass/api/UserEmargementValidation/" + str(val_emarge['_id']) + "/2" if (MYSY_GV.MYSY_ENV == "PROD"): - myurl = "https://apimysy.iexercice.com/myclass/api/UserEmargementValidation/" + str( + myurl = "https://apimysy.mysy-training.com/myclass/api/UserEmargementValidation/" + str( val_emarge['_id']) + "/2" elif (MYSY_GV.MYSY_ENV == "DEV"): myurl = "http://127.0.0.1:5001/myclass/api/UserEmargementValidation/" + str(val_emarge['_id']) + "/2" elif (MYSY_GV.MYSY_ENV == "REC"): - myurl = "https://devapimysy.iexercice.com/myclass/api/UserEmargementValidation/" + str( + myurl = "https://devapimysy.mysy-training.com/myclass/api/UserEmargementValidation/" + str( val_emarge['_id']) + "/2" diff --git a/lms_chamilo/mysy_lms.py b/lms_chamilo/mysy_lms.py index 5c8c410..154435b 100644 --- a/lms_chamilo/mysy_lms.py +++ b/lms_chamilo/mysy_lms.py @@ -246,6 +246,8 @@ def Create_MySy_LMS_User(diction): ## Si l'insertion dans la table user s'est bien passé, alors on ajoute le user_id à la table 'access_url_rel_user' Cette table permet faire la recherche et d'envoyer des email dans le LMS. Ainsi un utilisateur saisira juste les 3 première lettre du 'send to' + /!\ On l'ajout d'abord par defaut pour le l'url racine. + /!\ On va l'ajouter une 2ieme fois si le compte partenaire necessite la creation d'un nouvel url. """ my_query_access_url_rel_user = "INSERT INTO access_url_rel_user SET access_url_id='1' , user_id='" + str( new_lms_user_id) + "' " @@ -280,10 +282,41 @@ def Create_MySy_LMS_User(diction): local_status, local_message, local_value = Update_Pack_MySy_LMS_User(new_dicton) if( local_status is False): - mycommon.myprint(str(inspect.stack()[0][3]) + " - WARNING : impossible de créer les varibblers") + mycommon.myprint(str(inspect.stack()[0][3]) + " - WARNING : impossible de créer les varible MySy dans le LMS") lastrowid = cur.lastrowid + + """ + A present que le compte est créé, on va créer l'url / virtualhost et affecter l'utilisateur à ce virtualHost + """ + virutal_host_id = "" + virutal_host_url = "" + local_data = {} + local_data['token'] = my_token + local_status, local_message, local_virtualhost_id, local_virtualhost_full_url = LMS_Create_VirtualHost(local_data) + if (local_status is False): + mycommon.myprint(str(inspect.stack()[0][3]) + " - WARNING : impossible de créer le virtualHost dans le LMS ") + else: + """ + /!\ On va l'ajouter une 2ieme fois si le compte partenaire necessite la creation d'un nouvel url. + """ + virutal_host_id = local_virtualhost_id + virutal_host_url = local_virtualhost_full_url + my_query_access_url_rel_user = "INSERT INTO access_url_rel_user SET access_url_id='"+ str(virutal_host_id)+"' , user_id='" + str(new_lms_user_id) + "' " + print(" ### my_query_access_url_rel_user = ", my_query_access_url_rel_user) + try: + + # cur.execute("INSERT INTO employees (first_name,last_name) VALUES (?, ?)", ("Maria", "DB")) + cur.execute(my_query_access_url_rel_user) + except mariadb.Error as e: + # print(f"Error: {e}") + mycommon.myprint(str(inspect.stack()[0][3]) + " WARNING - impossible d'ajouter le user '" + str( + new_lms_user_id) + "' à la table access_url_rel_user pour la recheche et l'envoi des email") + + conn.commit() + + conn.close() # Crementation de la sequence de l'objet "lms_user_id" dans la collection : "mysy_sequence" @@ -1012,8 +1045,8 @@ def Check_MySy_LMS_Account(diction): local_status, local_retval, new_lms_use_id = Create_MySy_LMS_User(new_diction) if (local_status is False): - mycommon.myprint(str(inspect.stack()[0][3]) + " - Impossible de créer le compte LSM ") - return False, str(inspect.stack()[0][3]) + " - Impossible de créer le compte LSM " + mycommon.myprint(str(inspect.stack()[0][3]) + " - Impossible de créer le compte LMS ") + return False, str(inspect.stack()[0][3]) + " - Impossible de créer le compte LMS " # Apres la creation du compte LSM, on met à jour le compte mysy avec la valeur du champs : mysy_lms_user_id mysy_coll_query = {} @@ -1853,4 +1886,170 @@ def LMS_Get_Partner_Data(diction): except Exception as e: exc_type, exc_obj, exc_tb = sys.exc_info() mycommon.myprint(str(inspect.stack()[0][3]) + " -" + str(e) + " - Line : " + str(exc_tb.tb_lineno)) - return False, " Impossible de recuperer les données LMS du partner" \ No newline at end of file + return False, " Impossible de recuperer les données LMS du partner" + + +""" +Une fois un compte LMS créé, cette fonction donne la possibilité de créer +une virtualhost associé à cet utilisateur +Le virtualhost revient à créer dans base de donnée de chamilo, la table "access_url" un enregistrement +- url, +- description +- active, +- date heure creation +""" +def LMS_Create_VirtualHost(diction): + try: + virtualHost_Id = "" + virtualHost_url = "" + ''' + # Verification que les champs reçus dans l'API sont bien dans la liste des champs autorisés + # Cela evite le cas ou une entité tierce ajouter les valeurs inconnu dans l'API + # Ici on doit mettre tous les champs possible (obligatoire ou non) de la BDD dans la liste + # field_list. + ''' + field_list = ['token'] + incom_keys = diction.keys() + for val in incom_keys: + if val not in field_list: + mycommon.myprint(str( + inspect.stack()[0][3]) + " Le champ '" + val + "' n'existe pas, Creation virtualhost annulée") + return False, " Les informations fournies sont incorrecte", virtualHost_Id, virtualHost_url + + ''' + Une fois qu'on a controlé que toutes les clés mise dans l'API sont correcte. etape precedente, + On controle que les champs obligatoires sont presents dans la liste + ''' + field_list_obligatoire = ['token'] + for val in field_list_obligatoire: + if val not in diction: + mycommon.myprint( + str(inspect.stack()[0][3]) + " - La valeur '" + val + "' n'est pas presente dans liste ") + return False, " Les informations fournies sont incorrecte", virtualHost_Id, virtualHost_url + + my_token = "" + if ("token" in diction.keys()): + if diction['token']: + my_token = diction['token'] + + partner_recid = mycommon.get_parnter_recid_from_token(my_token) + if (partner_recid is False): + mycommon.myprint( + str(inspect.stack()[0][3]) + " - partner_recid KO : Impossible d'importer la liste des participants ") + return False, " Les information de connexion sont incorrectes.", virtualHost_Id, virtualHost_url + + # Recuperation des données du partenaire + local_status, my_partner = mycommon.get_partner_data_from_recid(partner_recid) + if (local_status is False): + mycommon.myprint(str(inspect.stack()[0][3]) + " - impossible de recuperer les données du partenaire") + return False, str(inspect.stack()[0][3]) + " - impossible de recuperer les données du partenaire", virtualHost_Id, virtualHost_url + + if ("nom" not in my_partner.keys()): + mycommon.myprint( + str(inspect.stack()[0][3]) + " - Le nom du partenaire est incorrect ") + return False, " Le nom du partenaire est incorrect ", virtualHost_Id, virtualHost_url + + part_nom = my_partner['nom'] + """ + /!\ : la regle pour definir l'url (url.iexercice.com) est : + 1 - on prend le nom, on enleve tous les caratères non acceptés dans une url + 2 - on met tout en minuscule + 3 - Du mot restant, on prends les 10 premiers caractère. + 4 - l'url global = prefixe_url.GV.LMS_BAS_URL + + ex : pour un qui est : "MySy Demo 2303" + prefixe url = mysydemo23 + l'url final est : mysydemo23.iexerice.com + """ + + lms_prefixe_url = ''.join(filter(str.isalnum, part_nom)) + lms_prefixe_url = str(lms_prefixe_url)[0:10] + if(len(lms_prefixe_url) < 3 ): + mycommon.myprint( + str(inspect.stack()[0][3]) + " - le lms_prefixe_url est trop court. Le nom du client comporte moins de 3 caractères alphanumerique") + return False, " Impossible de créer l'url dans le LMS. Le lms_prefixe_url est trop court. Le nom du client comporte moins de 3 caractères alphanumerique ", virtualHost_Id, virtualHost_url + + print(" #### lms_prefixe_url = ", lms_prefixe_url) + + conn = mariadb.connect( + user=MYSY_GV.MYSY_MARIADB_USER, + password=MYSY_GV.MYSY_MARIADB_USER_PASS, + host=MYSY_GV.MYSY_MARIADB_HOST, + port=MYSY_GV.MYSY_MARIADB_PORT, + database=MYSY_GV.MYSY_LMS_BDD + ) + + cur = conn.cursor() + + # Verification d'abord si l'url existe. + query_compte_exist = " Select count(*), url From access_url WHERE url LIKE '%" + lms_prefixe_url + ".%' " + print(" ### query_compte_exist = ", query_compte_exist) + query_compte_exist_exec = cur.execute(query_compte_exist) + + query_compte_exist_exec = "" + query_compte_exist_exec_val = "0" + existing_url = "" + for query_compte_exist_exec in cur: + query_compte_exist_exec_val = query_compte_exist_exec[0] + if (int(mycommon.tryInt(query_compte_exist_exec_val)) > 0): + existing_url = query_compte_exist_exec[1] + conn.commit() + + if(len(existing_url) > 0 ): + mycommon.myprint( + str(inspect.stack()[0][ + 3]) + " - L'url '"+str(existing_url)+"' existe deja. Impossible de créer une nouvelle url") + return False, " L'url '"+str(existing_url)+"' existe deja. Impossible de créer une nouvelle url ", virtualHost_Id, virtualHost_url + + print(" #### le prefixe d'url : '"+str(lms_prefixe_url)+"' N'EXISTE PAS. On va créer l'url") + registration_date = datetime.now().strftime("%Y-%m-%d %H:%M:%S") + full_url = str("http://"+str(lms_prefixe_url)+"."+str(MYSY_GV.LMS_BAS_URL)).lower() + + virtualHost_url = full_url + my_query = " INSERT INTO access_url (url, description, active, created_by, tms, url_type) "\ + " VALUES('"+str(full_url)+"', 'Url pour "+str(part_nom)+"', '1', '1', '"+str(registration_date)+"', NULL);" + + try: + print(" ### my_query iiii = ", my_query) + cur.execute(my_query) + except mariadb.Error as e: + # print(f"Error: {e}") + mycommon.myprint(" Impossible de créer l'url LMS " + str({e})) + return False, "Impossible de créer l'url LMS " + str({e}), virtualHost_Id, virtualHost_url + + conn.commit() + + if( cur.lastrowid ): + virtualHost_Id = cur.lastrowid + + + print(f"Last Inserted ID: {cur.lastrowid}") + conn.close() + + """ Une fois que l'url/virtualhost a été crée, on met à jour le compte partnair dans MySy + """ + # Apres la creation du compte LSM, on met à jour le compte mysy avec la valeur du champs : mysy_lms_user_id + mysy_coll_query = {} + mysy_coll_query['lms_virtualhost_id'] = str(virtualHost_Id) + mysy_coll_query['lms_virtualhost_url'] = str(virtualHost_url) + mysy_coll_query['date_update'] = str(datetime.now()) + ret_val = MYSY_GV.dbname['partnair_account'].find_one_and_update( + {'token': diction['token'], 'active': '1', 'locked': '0'}, + {"$set": mysy_coll_query}, + upsert=False, + return_document=ReturnDocument.AFTER + ) + + if (ret_val['_id'] is False): + mycommon.myprint( + str(inspect.stack()[0][ + 3]) + " : WARNING : Impossible de mettre à jour le compte MySy avec le lms_virtualhost_url = ", + str(virtualHost_url)) + + + return True, " L'url LMS a été correctement crée", virtualHost_Id, virtualHost_url + + except Exception as e: + exc_type, exc_obj, exc_tb = sys.exc_info() + mycommon.myprint(str(inspect.stack()[0][3]) + " -" + str(e) + " - Line : " + str(exc_tb.tb_lineno)) + return False, " Impossible de créer une url (virtualhost) ", False, False \ No newline at end of file diff --git a/main.py b/main.py index 953c95f..211d6a5 100644 --- a/main.py +++ b/main.py @@ -2823,6 +2823,21 @@ def LMS_Get_Partner_Data(): localStatus, message = mysy_lms.LMS_Get_Partner_Data(payload) return jsonify(status=localStatus, message=message ) + +""" +API de créer de l'url du lms +""" +@app.route('/myclass/api/LMS_Create_VirtualHost/', methods=['POST','GET']) +@crossdomain(origin='*') +def LMS_Create_VirtualHost(): + # On recupere le corps (payload) de la requete + payload = request.form.to_dict() + print(" ### LMS_Create_VirtualHost : payload = ",payload) + localStatus, message, virtualHost_Id, full_url = mysy_lms.LMS_Create_VirtualHost(payload) + return jsonify(status=localStatus, message=message, virtualHost_Id= virtualHost_Id, full_url=full_url) + + + if __name__ == '__main__': print(" debut api") context = SSL.Context(SSL.SSLv23_METHOD) diff --git a/tools_cherif/tools_cherif.py b/tools_cherif/tools_cherif.py index ff8a40b..7e31ba1 100644 --- a/tools_cherif/tools_cherif.py +++ b/tools_cherif/tools_cherif.py @@ -809,13 +809,14 @@ def test_web_service(diction): def test_web_service2(diction): try: + print(" #### ENVIRONNEMENT = "+str(MYSY_GV.MYSY_ENV)+" ") if( diction ): print(" ### diction dans la fonction = ", diction) else: print(" ### diction dans la fonction est vide") - return True, "Test WebService OK Diction = "+str(diction) + return True, "ENV = "+str(MYSY_GV.MYSY_ENV)+" Test WebService OK Diction = "+str(diction) except Exception as e: exc_type, exc_obj, exc_tb = sys.exc_info()