diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index ac6cd4b..a68544a 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -1,14 +1,12 @@
-
+
-
-
@@ -93,7 +91,14 @@
1681138622687
-
+
+ 1681505500999
+
+
+
+ 1681505500999
+
+
@@ -111,6 +116,7 @@
-
+
+
\ No newline at end of file
diff --git a/GlobalVariable.py b/GlobalVariable.py
index 103ba80..654e572 100644
--- a/GlobalVariable.py
+++ b/GlobalVariable.py
@@ -342,4 +342,4 @@ 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
+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 3a0b18c..46deb31 100644
--- a/Log/log_file.log
+++ b/Log/log_file.log
@@ -1561668,3 +1561668,2159 @@ INFO:werkzeug:127.0.0.1 - - [14/Apr/2023 22:48:08] "POST /myclass/api/LMS_Get_Pa
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 -
+INFO:root:2023-04-15 11:30:38.864820 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-04-15 11:30:38.865822 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-04-15 11:30:38.865822 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-04-15 11:30:38.865822 : ++ FLASK PORT 5001 ++
+INFO:werkzeug:[31m[1mWARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.[0m
+ * Running on http://localhost:5001
+INFO:werkzeug:[33mPress CTRL+C to quit[0m
+INFO:werkzeug: * Restarting with stat
+INFO:root:2023-04-15 11:30:50.151201 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-04-15 11:30:50.152199 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-04-15 11:30:50.152199 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-04-15 11:30:50.152199 : ++ FLASK PORT 5001 ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 954-387-124
+INFO:root:2023-04-15 11:31:23.518511 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 11:31:23.520016 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 11:31:23.521521 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 11:31:23] "POST /myclass/api/get_List_domaine_formation/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 11:31:23] "POST /myclass/api/Get_Suggested_Fr_Cities/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 11:31:23] "POST /myclass/api/Get_Suggested_Word/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 11:31:24.370496 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 11:31:24.373503 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 11:31:24] "POST /myclass/api/get_all_class/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 11:31:24.827543 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 11:31:24.830542 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 11:31:24.834511 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 11:31:24.836933 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 11:31:24.841194 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 11:31:24.845949 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 11:31:24] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 11:31:24] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 11:31:24.853866 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 11:31:24] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 11:31:24] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 11:31:24] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 11:31:24.861661 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 11:31:24] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 11:31:24] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 11:31:24.869315 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 11:31:24.871354 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 11:31:24] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 11:31:24.876248 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 11:31:24] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 11:31:24] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 11:31:24.883838 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 11:31:24] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 11:31:24.886034 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 11:31:24] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 11:31:24.893041 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 11:31:24] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 11:31:24.899454 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 11:31:24] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 11:31:24.905463 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 11:31:24] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 11:31:24.908199 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 11:31:24] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 11:31:24.916202 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 11:31:24] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 11:31:24.922434 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 11:31:24] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 11:31:24.930603 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 11:31:24] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 11:31:24] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 11:38:00.341011 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 11:38:01.380045 : partner_login Connexion partnair mysylaplumedepierrot@gmail.com : OK, Date : 2023-04-15 11:38:00.342047 , _id = 63e8f2745d4b4085b83f3aec
+INFO:root:2023-04-15 11:38:01.384045 : partner_login Connexion partener_token : OK , _id = 63e8f2c17b7f1fbbc5ee9419
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 11:38:01] "POST /myclass/api/partner_login/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 11:38:01.602995 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 11:38:01.606689 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 11:38:01.611034 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 11:38:01] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 11:38:01.619401 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 11:38:01.623716 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 11:38:01] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 11:38:01] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 11:38:01] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 11:38:02.001504 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 11:38:02] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 12:45:13.308997 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 12:45:13.316999 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 12:45:13.325998 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 12:45:13] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 12:45:13.337011 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 12:45:13.344459 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 12:45:13] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 12:45:13] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 12:45:13.392187 : LMS_Get_Partner_Data -'mysy_lms_user_id' - Line : 1852
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 12:45:13] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 12:45:14.134248 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 12:45:14] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 12:45:20.480455 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 12:45:20] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 12:45:21.611109 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 12:45:21.616164 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 12:45:21.621078 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 12:45:21] "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_RzBxJirqCMz1bH message='Dashboard link for request'
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 12:45:22] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 12:45:24.825012 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 12:45:24.827021 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 12:45:24.833533 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 12:45:24.838558 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 12:45:24] "POST /myclass/api/get_product_service/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 12:45:24] "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_mjDFe2qenStRCj message='Dashboard link for request'
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 12:45:25] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 12:45:25.225907 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 12:45:25.231135 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 12:45:25] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 12:45:34.118981 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 12:45:34.124717 : 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_IHgkFRLzN9Ah6z 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]=3
+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_CNcRhSVT2OXtO4?t=1681555535",\n "type": "invalid_request_error"\n }\n}\n' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_CNcRhSVT2OXtO4 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-15 12:45:34.713222 : strip_update_subscription_plan -Request req_CNcRhSVT2OXtO4: You cannot update a subscription that is `canceled` or `incomplete_expired`. - ERRORRRR AT Line : 973
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 12:45:34] "POST /myclass/api/strip_update_subscription_plan/ HTTP/1.1" 200 -
+DEBUG:xhtml2pdf:pisaDocument options:
+ src = '\n\n\n
\n\t\n\t\t

\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_234000229\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\tDate de facture: 15/04/2023 | \n\t\t\t\t\t\tDate échéance : 15/04/2023 | \n\t\t\t\t\t
\n\n\t\t\t\t
\n\n\t\t\t\t
\n\t\t\t\t\tOrigine : MySy_00pkSG\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\tDescription | \n\t\t\t\t\t\t\tQuantité | \n\t\t\t\t\t\t\tPrix unitaire | \n\t\t\t\t\t\t\tMontant | \n\t\t\t\t\t\t
\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tStandard | \n\t\t\t\t\t\t\t3 | \n\t\t\t\t\t\t\t50 | \n\t\t\t\t\t\t\t150.0 | \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
\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\tMontant HT: | \n\t\t\t\t\t150.0 | \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\tTVA 20% : | \n\t\t\t\t\t30.0 | \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\tMontant TTC : | \n\t\t\t\t\t180.0 | \n\t\t\t\t
\n\t\t\t
\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\n\n'
+ dest = <_io.BufferedRandom name='./Invoices/invoice_FACT_234000229.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): 0xa24d65f0
+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_234000229.pdf', 'wb')
+DEBUG:paramiko.transport.sftp:[chan 0] open(b'/var/www/html/sftp_iexercice/mysy_invoices_dev/invoice_FACT_234000229.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_234000229.pdf')
+INFO:root:2023-04-15 12:45:39.931642 : convertHtmlToPdf DEPLACEMENT DE ./Invoices/invoice_FACT_234000229.pdf VERS /var/www/html/sftp_iexercice/mysy_invoices_dev/invoice_FACT_234000229.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-15 12:45:39.933621 : Impression facture N° FACT_234000229 OK
+INFO:root:2023-04-15 12:45:39.959892 : UpdataPartnerRankingClass - Le RANKING de 4 ont été mise à jour avec la valeur {'display_rank': '20', 'date_update': '2023-04-15 12:45:39.944860'}
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 12:45:39] "POST /myclass/api/createOrder/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 12:45:40.103433 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 12:45:41] "POST /myclass/api/Check_MySy_LMS_Account/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 12:45:49.444012 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 12:45:49.448016 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 12:45:49.451013 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 12:45:49] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 12:45:49.457022 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 12:45:49.464769 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 12:45:49] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 12:45:49] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 12:45:49] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 12:45:50.118431 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 12:45:50] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 12:51:32.827234 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 12:51:32.830400 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 12:51:32.832420 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 12:51:32] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 12:51:32.837420 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 12:51:32.845056 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 12:51:32] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 12:51:32] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 12:51:32.852084 : LMS_Get_Partner_Data -'mysy_lms_user_id' - Line : 1852
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 12:51:32] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 12:51:33.396054 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 12:51:33] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 12:51:36.095504 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 12:51:36.098532 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 12:51:36.103588 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 12:51:36] "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_lEPOzNCM23QT4r message='Dashboard link for request'
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 12:51:36] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 12:51:37.873572 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 12:51:37.876743 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 12:51:37.880861 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 12:51:37.883861 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 12:51:37] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 12:51:37] "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_ZdVXK9QessULUf message='Dashboard link for request'
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 12:51:38] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 12:51:38.226637 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 12:51:38.232214 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 12:51:38] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 12:51:42.875108 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 12:51:42.878922 : 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_ngaN9QDbMKum4G 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]=2
+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_BN2L5hFxeTjaLL?t=1681555904",\n "type": "invalid_request_error"\n }\n}\n' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_BN2L5hFxeTjaLL 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-15 12:51:43.453715 : strip_update_subscription_plan -Request req_BN2L5hFxeTjaLL: You cannot update a subscription that is `canceled` or `incomplete_expired`. - ERRORRRR AT Line : 973
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 12:51:43] "POST /myclass/api/strip_update_subscription_plan/ HTTP/1.1" 200 -
+DEBUG:xhtml2pdf:pisaDocument options:
+ src = '\n\n\n\n\t\n\t\t

\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_234000230\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\tDate de facture: 15/04/2023 | \n\t\t\t\t\t\tDate échéance : 15/04/2023 | \n\t\t\t\t\t
\n\n\t\t\t\t
\n\n\t\t\t\t
\n\t\t\t\t\tOrigine : MySy_00Sbox\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\tDescription | \n\t\t\t\t\t\t\tQuantité | \n\t\t\t\t\t\t\tPrix unitaire | \n\t\t\t\t\t\t\tMontant | \n\t\t\t\t\t\t
\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tGold | \n\t\t\t\t\t\t\t2 | \n\t\t\t\t\t\t\t90 | \n\t\t\t\t\t\t\t180.0 | \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
\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\tMontant HT: | \n\t\t\t\t\t180.0 | \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\tTVA 20% : | \n\t\t\t\t\t36.0 | \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\tMontant TTC : | \n\t\t\t\t\t216.0 | \n\t\t\t\t
\n\t\t\t
\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\n\n'
+ dest = <_io.BufferedRandom name='./Invoices/invoice_FACT_234000230.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): 0xa1f731c0
+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_234000230.pdf', 'wb')
+DEBUG:paramiko.transport.sftp:[chan 0] open(b'/var/www/html/sftp_iexercice/mysy_invoices_dev/invoice_FACT_234000230.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_234000230.pdf')
+INFO:root:2023-04-15 12:51:47.064472 : convertHtmlToPdf DEPLACEMENT DE ./Invoices/invoice_FACT_234000230.pdf VERS /var/www/html/sftp_iexercice/mysy_invoices_dev/invoice_FACT_234000230.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-15 12:51:47.065473 : Impression facture N° FACT_234000230 OK
+INFO:root:2023-04-15 12:51:47.084483 : UpdataPartnerRankingClass - Le RANKING de 4 ont été mise à jour avec la valeur {'display_rank': '30', 'date_update': '2023-04-15 12:51:47.078484'}
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 12:51:47] "POST /myclass/api/createOrder/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 12:51:47.388772 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 12:51:48] "POST /myclass/api/Check_MySy_LMS_Account/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 12:51:58.785656 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 12:51:58.790146 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 12:51:58.794155 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 12:51:58] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 12:51:58.799291 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 12:51:58.803305 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 12:51:58] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 12:51:58] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 12:51:58] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 12:51:59.573702 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 12:51:59] "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-15 13:45:56.345579 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-04-15 13:45:56.346585 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-04-15 13:45:56.346585 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-04-15 13:45:56.346585 : ++ FLASK PORT 5001 ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 954-387-124
+INFO:root:2023-04-15 13:47:19.028887 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 13:47:19.032027 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 13:47:19.035210 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 13:47:19.038672 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 13:47:19] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 13:47:19.046768 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 13:47:19] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 13:47:19] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 13:47:19.779751 : LMS_Get_Partner_Data -'mysy_lms_user_id' - Line : 1852
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 13:47:19] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 13:47:19.857185 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 13:47:19] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 13:47:22.074595 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 13:47:22.077815 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 13:47:22.081355 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 13:47:22] "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_qGtxWBGNxW1CqO message='Dashboard link for request'
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 13:47:22] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 13:47:23.961777 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 13:47:23.965916 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 13:47:23.969930 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 13:47:23.973575 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 13:47:23] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 13:47:23] "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_DLGMKxtNO0wXqH message='Dashboard link for request'
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 13:47:24] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 13:47:24.353684 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 13:47:24.359124 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 13:47:24] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 13:47:29.099899 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 13:47:29.103487 : 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_kt0wfgFFr6iX0S 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]=2
+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_VgT1xC0rfqlxlx?t=1681559250",\n "type": "invalid_request_error"\n }\n}\n' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_VgT1xC0rfqlxlx 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-15 13:47:29.687995 : strip_update_subscription_plan -Request req_VgT1xC0rfqlxlx: You cannot update a subscription that is `canceled` or `incomplete_expired`. - ERRORRRR AT Line : 973
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 13:47:29] "POST /myclass/api/strip_update_subscription_plan/ HTTP/1.1" 200 -
+DEBUG:xhtml2pdf:pisaDocument options:
+ src = '\n\n\n\n\t\n\t\t

\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_234000231\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\tDate de facture: 15/04/2023 | \n\t\t\t\t\t\tDate échéance : 15/04/2023 | \n\t\t\t\t\t
\n\n\t\t\t\t
\n\n\t\t\t\t
\n\t\t\t\t\tOrigine : MySy_00Y5Ap\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\tDescription | \n\t\t\t\t\t\t\tQuantité | \n\t\t\t\t\t\t\tPrix unitaire | \n\t\t\t\t\t\t\tMontant | \n\t\t\t\t\t\t
\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tStandard | \n\t\t\t\t\t\t\t2 | \n\t\t\t\t\t\t\t50 | \n\t\t\t\t\t\t\t100.0 | \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
\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\tMontant HT: | \n\t\t\t\t\t100.0 | \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\tTVA 20% : | \n\t\t\t\t\t20.0 | \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\tMontant TTC : | \n\t\t\t\t\t120.0 | \n\t\t\t\t
\n\t\t\t
\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\n\n'
+ dest = <_io.BufferedRandom name='./Invoices/invoice_FACT_234000231.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): 0xa76f5660
+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_234000231.pdf', 'wb')
+DEBUG:paramiko.transport.sftp:[chan 0] open(b'/var/www/html/sftp_iexercice/mysy_invoices_dev/invoice_FACT_234000231.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_234000231.pdf')
+INFO:root:2023-04-15 13:47:33.564937 : convertHtmlToPdf DEPLACEMENT DE ./Invoices/invoice_FACT_234000231.pdf VERS /var/www/html/sftp_iexercice/mysy_invoices_dev/invoice_FACT_234000231.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-15 13:47:33.566936 : Impression facture N° FACT_234000231 OK
+INFO:root:2023-04-15 13:47:33.609194 : UpdataPartnerRankingClass - Le RANKING de 4 ont été mise à jour avec la valeur {'display_rank': '20', 'date_update': '2023-04-15 13:47:33.585471'}
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 13:47:33] "POST /myclass/api/createOrder/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 13:47:34.179686 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 13:47:35] "POST /myclass/api/Check_MySy_LMS_Account/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 13:47:48.179755 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 13:47:48.183774 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 13:47:48.187357 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 13:47:48] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 13:47:48.192017 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 13:47:48.197452 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 13:47:48] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 13:47:48] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 13:47:48] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 13:47:48.893316 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 13:47: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-15 13:55:38.642212 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-04-15 13:55:38.642212 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-04-15 13:55:38.642212 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-04-15 13:55:38.642212 : ++ FLASK PORT 5001 ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 954-387-124
+INFO:root:2023-04-15 13:56:09.143454 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 13:56:09.146467 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 13:56:09.154455 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 13:56:09] "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_lTTY5P7AtbzvcF message='Dashboard link for request'
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 13:56:09] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 13:56:11.130841 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 13:56:11.134258 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 13:56:11.138314 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 13:56:11.142321 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 13:56:11] "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:werkzeug:127.0.0.1 - - [15/Apr/2023 13:56:11] "POST /myclass/api/get_product_service/ HTTP/1.1" 200 -
+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_bf3740C7i8fg1g message='Dashboard link for request'
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 13:56:11] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 13:56:11.487142 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 13:56:11.492324 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 13:56:11] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 13:56:15.687546 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 13:56:15.690786 : 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_5Ft3mKVBfCzGwy 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]=2
+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_UrImqvU2MXYJc6?t=1681559777",\n "type": "invalid_request_error"\n }\n}\n' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_UrImqvU2MXYJc6 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-15 13:56:16.768950 : strip_update_subscription_plan -Request req_UrImqvU2MXYJc6: You cannot update a subscription that is `canceled` or `incomplete_expired`. - ERRORRRR AT Line : 973
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 13:56:16] "POST /myclass/api/strip_update_subscription_plan/ HTTP/1.1" 200 -
+DEBUG:xhtml2pdf:pisaDocument options:
+ src = '\n\n\n\n\t\n\t\t

\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_234000232\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\tDate de facture: 15/04/2023 | \n\t\t\t\t\t\tDate échéance : 15/04/2023 | \n\t\t\t\t\t
\n\n\t\t\t\t
\n\n\t\t\t\t
\n\t\t\t\t\tOrigine : MySy_001pAr\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\tDescription | \n\t\t\t\t\t\t\tQuantité | \n\t\t\t\t\t\t\tPrix unitaire | \n\t\t\t\t\t\t\tMontant | \n\t\t\t\t\t\t
\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tGold | \n\t\t\t\t\t\t\t2 | \n\t\t\t\t\t\t\t90 | \n\t\t\t\t\t\t\t180.0 | \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
\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\tMontant HT: | \n\t\t\t\t\t180.0 | \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\tTVA 20% : | \n\t\t\t\t\t36.0 | \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\tMontant TTC : | \n\t\t\t\t\t216.0 | \n\t\t\t\t
\n\t\t\t
\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\n\n'
+ dest = <_io.BufferedRandom name='./Invoices/invoice_FACT_234000232.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): 0x8dcf15d0
+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_234000232.pdf', 'wb')
+DEBUG:paramiko.transport.sftp:[chan 0] open(b'/var/www/html/sftp_iexercice/mysy_invoices_dev/invoice_FACT_234000232.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_234000232.pdf')
+INFO:root:2023-04-15 13:56:19.196626 : convertHtmlToPdf DEPLACEMENT DE ./Invoices/invoice_FACT_234000232.pdf VERS /var/www/html/sftp_iexercice/mysy_invoices_dev/invoice_FACT_234000232.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-15 13:56:19.197625 : Impression facture N° FACT_234000232 OK
+INFO:root:2023-04-15 13:56:19.212908 : UpdataPartnerRankingClass - Le RANKING de 4 ont été mise à jour avec la valeur {'display_rank': '30', 'date_update': '2023-04-15 13:56:19.205378'}
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 13:56:19] "POST /myclass/api/createOrder/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 13:56:19.302777 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 13:56:20] "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-15 13:58:36.790301 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-04-15 13:58:36.790301 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-04-15 13:58:36.790301 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-04-15 13:58:36.790301 : ++ FLASK PORT 5001 ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 954-387-124
+INFO:root:2023-04-15 13:59:44.057260 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 13:59:44.060463 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 13:59:44.064041 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 13:59:44.067108 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 13:59:44] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 13:59:44.085518 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 13:59:44] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 13:59:44] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 13:59:44.884838 : LMS_Get_Partner_Data -'mysy_lms_user_id' - Line : 1854
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 13:59:44] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 13:59:44.964599 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 13:59:44] "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-15 14:01:34.066399 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-04-15 14:01:34.066399 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-04-15 14:01:34.067390 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-04-15 14:01:34.067390 : ++ FLASK PORT 5001 ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 954-387-124
+INFO:root:2023-04-15 14:02:10.733654 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 14:02:10.736604 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 14:02:10.744675 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:02: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_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_6zCMgwoc4YXzuG message='Dashboard link for request'
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:02:11] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 14:02:12.979740 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 14:02:12.982728 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 14:02:12.986694 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 14:02:12.989710 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:02:12] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:02:12] "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_4m5DqUXaryKGwA message='Dashboard link for request'
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:02:13] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 14:02:13.362083 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 14:02:13.368204 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:02:13] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 14:02:17.186470 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 14:02:17.190283 : 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_ntCf3LryDdLvXZ 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]=1
+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_BTlBG53t3byoJL?t=1681560138",\n "type": "invalid_request_error"\n }\n}\n' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_BTlBG53t3byoJL 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-15 14:02:18.280751 : strip_update_subscription_plan -Request req_BTlBG53t3byoJL: You cannot update a subscription that is `canceled` or `incomplete_expired`. - ERRORRRR AT Line : 973
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:02:18] "POST /myclass/api/strip_update_subscription_plan/ HTTP/1.1" 200 -
+DEBUG:xhtml2pdf:pisaDocument options:
+ src = '\n\n\n\n\t\n\t\t

\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_234000233\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\tDate de facture: 15/04/2023 | \n\t\t\t\t\t\tDate échéance : 15/04/2023 | \n\t\t\t\t\t
\n\n\t\t\t\t
\n\n\t\t\t\t
\n\t\t\t\t\tOrigine : MySy_00yiCZ\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\tDescription | \n\t\t\t\t\t\t\tQuantité | \n\t\t\t\t\t\t\tPrix unitaire | \n\t\t\t\t\t\t\tMontant | \n\t\t\t\t\t\t
\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tStandard | \n\t\t\t\t\t\t\t1 | \n\t\t\t\t\t\t\t50 | \n\t\t\t\t\t\t\t50.0 | \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
\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\tMontant HT: | \n\t\t\t\t\t50.0 | \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\tTVA 20% : | \n\t\t\t\t\t10.0 | \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\tMontant TTC : | \n\t\t\t\t\t60.0 | \n\t\t\t\t
\n\t\t\t
\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\n\n'
+ dest = <_io.BufferedRandom name='./Invoices/invoice_FACT_234000233.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): 0x90d21630
+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_234000233.pdf', 'wb')
+DEBUG:paramiko.transport.sftp:[chan 0] open(b'/var/www/html/sftp_iexercice/mysy_invoices_dev/invoice_FACT_234000233.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_234000233.pdf')
+INFO:root:2023-04-15 14:02:21.624987 : convertHtmlToPdf DEPLACEMENT DE ./Invoices/invoice_FACT_234000233.pdf VERS /var/www/html/sftp_iexercice/mysy_invoices_dev/invoice_FACT_234000233.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-15 14:02:21.624987 : Impression facture N° FACT_234000233 OK
+INFO:root:2023-04-15 14:02:21.640196 : UpdataPartnerRankingClass - Le RANKING de 4 ont été mise à jour avec la valeur {'display_rank': '20', 'date_update': '2023-04-15 14:02:21.632888'}
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:02:21] "POST /myclass/api/createOrder/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 14:02:21.725672 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:02:22] "POST /myclass/api/Check_MySy_LMS_Account/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 14:02:24.385181 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 14:02:24.391178 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 14:02:24.395181 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:02:24] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 14:02:24.402878 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 14:02:24.408882 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:02:24] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:02:24] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:02:24] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 14:02:25.195838 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:02:25] "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\\GlobalVariable.py', reloading
+INFO:werkzeug: * Restarting with stat
+INFO:root:2023-04-15 14:05:41.367566 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-04-15 14:05:41.368571 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-04-15 14:05:41.368571 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-04-15 14:05:41.368571 : ++ FLASK PORT 5001 ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 954-387-124
+INFO:root:2023-04-15 14:06:22.663958 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 14:06:22.666965 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 14:06:22.670063 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 14:06:22.673320 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:06:22] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 14:06:22.682738 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:06:22] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:06:22] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 14:06:23.290163 : LMS_Get_Partner_Data -'mysy_lms_user_id' - Line : 1854
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:06:23] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 14:06:23.417560 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:06:23] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 14:06:24.756791 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 14:06:24.761541 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 14:06:24.765352 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:06:24] "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_TdgHCDtPQesg1b message='Dashboard link for request'
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:06:25] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 14:06:27.210399 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 14:06:27.213715 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 14:06:27.216267 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:06:27] "POST /myclass/api/get_product_service/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 14:06:27.224004 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:06:27] "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_OookiBoCHcI6UZ message='Dashboard link for request'
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:06:27] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 14:06:27.571754 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 14:06:27.577187 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:06:27] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 14:06:30.954629 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 14:06:30.957628 : 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_P26uGheLIBIiUR 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]=2
+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_kP0wWm6E45185y?t=1681560392",\n "type": "invalid_request_error"\n }\n}\n' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_kP0wWm6E45185y 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-15 14:06:31.545112 : strip_update_subscription_plan -Request req_kP0wWm6E45185y: You cannot update a subscription that is `canceled` or `incomplete_expired`. - ERRORRRR AT Line : 973
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:06:31] "POST /myclass/api/strip_update_subscription_plan/ HTTP/1.1" 200 -
+DEBUG:xhtml2pdf:pisaDocument options:
+ src = '\n\n\n\n\t\n\t\t

\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_234000234\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\tDate de facture: 15/04/2023 | \n\t\t\t\t\t\tDate échéance : 15/04/2023 | \n\t\t\t\t\t
\n\n\t\t\t\t
\n\n\t\t\t\t
\n\t\t\t\t\tOrigine : MySy_00jaKG\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\tDescription | \n\t\t\t\t\t\t\tQuantité | \n\t\t\t\t\t\t\tPrix unitaire | \n\t\t\t\t\t\t\tMontant | \n\t\t\t\t\t\t
\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tGold | \n\t\t\t\t\t\t\t2 | \n\t\t\t\t\t\t\t90 | \n\t\t\t\t\t\t\t180.0 | \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
\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\tMontant HT: | \n\t\t\t\t\t180.0 | \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\tTVA 20% : | \n\t\t\t\t\t36.0 | \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\tMontant TTC : | \n\t\t\t\t\t216.0 | \n\t\t\t\t
\n\t\t\t
\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\n\n'
+ dest = <_io.BufferedRandom name='./Invoices/invoice_FACT_234000234.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): 0x6d285660
+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_234000234.pdf', 'wb')
+DEBUG:paramiko.transport.sftp:[chan 0] open(b'/var/www/html/sftp_iexercice/mysy_invoices_dev/invoice_FACT_234000234.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_234000234.pdf')
+INFO:root:2023-04-15 14:06:35.098299 : convertHtmlToPdf DEPLACEMENT DE ./Invoices/invoice_FACT_234000234.pdf VERS /var/www/html/sftp_iexercice/mysy_invoices_dev/invoice_FACT_234000234.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-15 14:06:35.099299 : Impression facture N° FACT_234000234 OK
+INFO:root:2023-04-15 14:06:35.119411 : UpdataPartnerRankingClass - Le RANKING de 4 ont été mise à jour avec la valeur {'display_rank': '30', 'date_update': '2023-04-15 14:06:35.109669'}
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:06:35] "POST /myclass/api/createOrder/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 14:06:35.289375 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:06:35] "POST /myclass/api/Check_MySy_LMS_Account/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 14:06:40.765001 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 14:06:40.768295 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 14:06:40.769834 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:06:40] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 14:06:40.775803 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 14:06:40.782318 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:06:40] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:06:40] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:06:40] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 14:06:41.448243 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:06:41] "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-15 14:07:36.653518 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-04-15 14:07:36.653518 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-04-15 14:07:36.653518 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-04-15 14:07:36.653518 : ++ FLASK PORT 5001 ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 954-387-124
+INFO:root:2023-04-15 14:08:30.068148 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 14:08:30.071353 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 14:08:30.074754 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 14:08:30.078282 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 14:08:30.088284 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:08:30] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:08:30] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:08:30] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 14:08:30.911046 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:08:30] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 14:08:31.012631 : LMS_Get_Partner_Data -'mysy_lms_user_id' - Line : 1852
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:08:31] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 14:08:35.980545 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 14:08:35.983311 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 14:08:35.987604 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:08: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_uV4PpXzlfT4cEe message='Dashboard link for request'
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:08:36] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 14:08:38.120973 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 14:08:38.124465 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 14:08:38.128632 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:08:38] "POST /myclass/api/get_product_service/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 14:08:38.133617 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:08:38] "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_2HCeY4oZJHq2KH message='Dashboard link for request'
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:08:38] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 14:08:38.464700 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 14:08:38.469673 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:08:38] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 14:08:42.551711 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 14:08:42.555748 : 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_PXN9u2U6psGjPJ 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]=3
+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_mif1Z3ilS05gCl?t=1681560524",\n "type": "invalid_request_error"\n }\n}\n' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_mif1Z3ilS05gCl 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-15 14:08:43.121220 : strip_update_subscription_plan -Request req_mif1Z3ilS05gCl: You cannot update a subscription that is `canceled` or `incomplete_expired`. - ERRORRRR AT Line : 973
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:08:43] "POST /myclass/api/strip_update_subscription_plan/ HTTP/1.1" 200 -
+DEBUG:xhtml2pdf:pisaDocument options:
+ src = '\n\n\n\n\t\n\t\t

\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_234000235\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\tDate de facture: 15/04/2023 | \n\t\t\t\t\t\tDate échéance : 15/04/2023 | \n\t\t\t\t\t
\n\n\t\t\t\t
\n\n\t\t\t\t
\n\t\t\t\t\tOrigine : MySy_00xr_t\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\tDescription | \n\t\t\t\t\t\t\tQuantité | \n\t\t\t\t\t\t\tPrix unitaire | \n\t\t\t\t\t\t\tMontant | \n\t\t\t\t\t\t
\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tStandard | \n\t\t\t\t\t\t\t3 | \n\t\t\t\t\t\t\t50 | \n\t\t\t\t\t\t\t150.0 | \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
\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\tMontant HT: | \n\t\t\t\t\t150.0 | \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\tTVA 20% : | \n\t\t\t\t\t30.0 | \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\tMontant TTC : | \n\t\t\t\t\t180.0 | \n\t\t\t\t
\n\t\t\t
\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\n\n'
+ dest = <_io.BufferedRandom name='./Invoices/invoice_FACT_234000235.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): 0x64dc16f0
+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_234000235.pdf', 'wb')
+DEBUG:paramiko.transport.sftp:[chan 0] open(b'/var/www/html/sftp_iexercice/mysy_invoices_dev/invoice_FACT_234000235.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_234000235.pdf')
+INFO:root:2023-04-15 14:08:46.206548 : convertHtmlToPdf DEPLACEMENT DE ./Invoices/invoice_FACT_234000235.pdf VERS /var/www/html/sftp_iexercice/mysy_invoices_dev/invoice_FACT_234000235.pdf EST OKKKK
+INFO:paramiko.transport.sftp:[chan 0] sftp session closed.
+DEBUG:paramiko.transport:[chan 0] EOF sent (0)
+INFO:root:2023-04-15 14:08:46.206548 : Impression facture N° FACT_234000235 OK
+DEBUG:paramiko.transport:EOF in transport thread
+INFO:root:2023-04-15 14:08:46.222356 : UpdataPartnerRankingClass - Le RANKING de 4 ont été mise à jour avec la valeur {'display_rank': '20', 'date_update': '2023-04-15 14:08:46.215095'}
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:08:46] "POST /myclass/api/createOrder/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 14:08:46.364669 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:08:47] "POST /myclass/api/Check_MySy_LMS_Account/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 14:08:49.065854 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 14:08:49.069008 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 14:08:49.071166 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:08:49] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 14:08:49.078107 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 14:08:49.083692 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:08:49] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:08:49] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:08:49] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 14:08:49.593038 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:08:49] "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-15 14:13:59.491211 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-04-15 14:13:59.491211 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-04-15 14:13:59.491211 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-04-15 14:13:59.491211 : ++ FLASK PORT 5001 ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 954-387-124
+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-15 14:15:29.472731 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-04-15 14:15:29.472731 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-04-15 14:15:29.472731 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-04-15 14:15:29.472731 : ++ FLASK PORT 5001 ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 954-387-124
+INFO:root:2023-04-15 14:16:17.655791 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 14:16:17.657877 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 14:16:17.660898 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 14:16:17.663398 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:16:17] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 14:16:17.671821 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:16:17] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:16:17] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 14:16:18.269961 : LMS_Get_Partner_Data -'mysy_lms_user_id' - Line : 1857
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:16:18] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 14:16:18.293927 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:16:18] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 14:16:19.805665 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 14:16:19.809653 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 14:16:19.813772 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:16:19] "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_5VuUSmb2TH2R5B message='Dashboard link for request'
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:16:20] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 14:16:21.761185 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 14:16:21.764182 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 14:16:21.767185 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 14:16:21.771743 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:16:21] "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:werkzeug:127.0.0.1 - - [15/Apr/2023 14:16:21] "POST /myclass/api/get_product_service/ HTTP/1.1" 200 -
+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_LBB3rjWHYNmzum message='Dashboard link for request'
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:16:22] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 14:16:22.120330 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 14:16:22.125334 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:16:22] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 14:16:29.190273 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 14:16:29.193530 : 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_rk9FKYHqpE85SD 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]=2
+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_KNFYwJnVBDK4Q9?t=1681560990",\n "type": "invalid_request_error"\n }\n}\n' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_KNFYwJnVBDK4Q9 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-15 14:16:29.763790 : strip_update_subscription_plan -Request req_KNFYwJnVBDK4Q9: You cannot update a subscription that is `canceled` or `incomplete_expired`. - ERRORRRR AT Line : 973
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:16:29] "POST /myclass/api/strip_update_subscription_plan/ HTTP/1.1" 200 -
+DEBUG:xhtml2pdf:pisaDocument options:
+ src = '\n\n\n\n\t\n\t\t

\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_234000236\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\tDate de facture: 15/04/2023 | \n\t\t\t\t\t\tDate échéance : 15/04/2023 | \n\t\t\t\t\t
\n\n\t\t\t\t
\n\n\t\t\t\t
\n\t\t\t\t\tOrigine : MySy_00eP7s\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\tDescription | \n\t\t\t\t\t\t\tQuantité | \n\t\t\t\t\t\t\tPrix unitaire | \n\t\t\t\t\t\t\tMontant | \n\t\t\t\t\t\t
\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tGold | \n\t\t\t\t\t\t\t2 | \n\t\t\t\t\t\t\t90 | \n\t\t\t\t\t\t\t180.0 | \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
\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\tMontant HT: | \n\t\t\t\t\t180.0 | \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\tTVA 20% : | \n\t\t\t\t\t36.0 | \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\tMontant TTC : | \n\t\t\t\t\t216.0 | \n\t\t\t\t
\n\t\t\t
\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\n\n'
+ dest = <_io.BufferedRandom name='./Invoices/invoice_FACT_234000236.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): 0xad1596c0
+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_234000236.pdf', 'wb')
+DEBUG:paramiko.transport.sftp:[chan 0] open(b'/var/www/html/sftp_iexercice/mysy_invoices_dev/invoice_FACT_234000236.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_234000236.pdf')
+INFO:root:2023-04-15 14:16:33.974406 : convertHtmlToPdf DEPLACEMENT DE ./Invoices/invoice_FACT_234000236.pdf VERS /var/www/html/sftp_iexercice/mysy_invoices_dev/invoice_FACT_234000236.pdf EST OKKKK
+INFO:paramiko.transport.sftp:[chan 0] sftp session closed.
+DEBUG:paramiko.transport:[chan 0] EOF sent (0)
+INFO:root:2023-04-15 14:16:33.975413 : Impression facture N° FACT_234000236 OK
+DEBUG:paramiko.transport:EOF in transport thread
+INFO:root:2023-04-15 14:16:33.992405 : UpdataPartnerRankingClass - Le RANKING de 4 ont été mise à jour avec la valeur {'display_rank': '30', 'date_update': '2023-04-15 14:16:33.984431'}
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:16:33] "POST /myclass/api/createOrder/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 14:16:34.143744 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:16:35] "POST /myclass/api/Check_MySy_LMS_Account/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 14:16:51.250670 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 14:16:51.253697 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:16:51] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 14:16:51.258710 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 14:16:51.261721 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 14:16:51.266287 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:16:51] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:16:51] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:16:51] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 14:16:52.825899 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:16:52] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 14:33:53.606987 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 14:33:53.610638 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 14:33:53.612272 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:33:53] "POST /myclass/api/get_List_domaine_formation/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:33:53] "POST /myclass/api/Get_Suggested_Fr_Cities/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:33:53] "POST /myclass/api/Get_Suggested_Word/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 14:33:54.034684 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 14:33:54.035718 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:33:54] "POST /myclass/api/get_all_class/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 14:33:54.398655 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 14:33:54.402388 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:33:54] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 14:33:54.406598 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:33:54] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 14:33:54.410913 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 14:33:54.415076 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:33:54] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 14:33:54.418408 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 14:33:54.423014 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:33:54] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:33:54] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 14:33:54.426273 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:33:54] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 14:33:54.431825 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:33:54] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 14:33:54.436315 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 14:33:54.438759 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:33:54] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:33:54] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 14:33:54.446394 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:33:54] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:33:54] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 14:33:54.451578 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:33:54] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 14:33:54.457325 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:33:54] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 14:33:54.461622 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 14:33:54.463125 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 14:33:54.467752 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:33:54] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:33:54] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:33:54] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 14:33:54.476765 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:33:54] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 14:33:54.480849 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 14:33:54.482840 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:33:54] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:33:54] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:33:54] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 14:33:58.041420 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 14:33:58.058853 : partner_login Connexion partnair contact@mysy-training.com : OK, Date : 2023-04-15 14:33:58.042632 , _id = 641c21666cad03956ab28252
+INFO:root:2023-04-15 14:33:58.063842 : partner_login Connexion partener_token : OK , _id = 641c23520d5d7f136a823b3c
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:33:58] "POST /myclass/api/partner_login/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 14:33:58.235901 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 14:33:58.239900 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:33:58] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 14:33:58.242902 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 14:33:58.247265 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 14:33:58.251465 : Connexion du partner recid = 8a77c1642a21a9a417a8583f4ef7f2f9c174a99996abb4c63a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:33:58] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:33:58] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:33:58] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 14:33:58.488934 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 14:33:58] "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\\email_mgt.py', reloading
+INFO:werkzeug: * Restarting with stat
+INFO:root:2023-04-15 14:47:32.138265 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-04-15 14:47:32.138265 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-04-15 14:47:32.138265 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-04-15 14:47:32.138265 : ++ FLASK PORT 5001 ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 954-387-124
+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-15 14:48:11.057311 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-04-15 14:48:11.058318 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-04-15 14:48:11.058318 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-04-15 14:48:11.058318 : ++ FLASK PORT 5001 ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 954-387-124
+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-15 14:50:38.184067 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-04-15 14:50:38.184592 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-04-15 14:50:38.184592 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-04-15 14:50:38.184592 : ++ FLASK PORT 5001 ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 954-387-124
+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-15 14:50:55.674497 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-04-15 14:50:55.675510 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-04-15 14:50:55.675510 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-04-15 14:50:55.675510 : ++ FLASK PORT 5001 ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 954-387-124
+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-15 15:12:07.752197 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-04-15 15:12:07.752197 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-04-15 15:12:07.752197 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-04-15 15:12:07.752197 : ++ FLASK PORT 5001 ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 954-387-124
+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-15 15:12:39.016347 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-04-15 15:12:39.016347 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-04-15 15:12:39.016347 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-04-15 15:12:39.017348 : ++ FLASK PORT 5001 ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 954-387-124
+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-15 15:13:16.869779 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-04-15 15:13:16.870798 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-04-15 15:13:16.870798 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-04-15 15:13:16.870798 : ++ FLASK PORT 5001 ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 954-387-124
+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-15 15:13:56.657397 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-04-15 15:13:56.657397 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-04-15 15:13:56.657397 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-04-15 15:13:56.657397 : ++ FLASK PORT 5001 ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 954-387-124
+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-15 15:14:20.593320 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-04-15 15:14:20.593320 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-04-15 15:14:20.593320 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-04-15 15:14:20.594319 : ++ FLASK PORT 5001 ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 954-387-124
+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-15 15:14:40.439539 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-04-15 15:14:40.439539 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-04-15 15:14:40.439539 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-04-15 15:14:40.439539 : ++ FLASK PORT 5001 ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 954-387-124
+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-15 15:15:04.437855 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-04-15 15:15:04.437855 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-04-15 15:15:04.437855 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-04-15 15:15:04.437855 : ++ FLASK PORT 5001 ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 954-387-124
+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-15 15:15:58.646599 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-04-15 15:15:58.647593 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-04-15 15:15:58.648598 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-04-15 15:15:58.648598 : ++ FLASK PORT 5001 ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 954-387-124
+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-15 15:16:16.931380 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-04-15 15:16:16.931926 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-04-15 15:16:16.931926 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-04-15 15:16:16.931926 : ++ FLASK PORT 5001 ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 954-387-124
+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-15 15:17:50.253999 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-04-15 15:17:50.253999 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-04-15 15:17:50.255002 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-04-15 15:17:50.255002 : ++ FLASK PORT 5001 ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 954-387-124
+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-15 15:19:57.727103 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-04-15 15:19:57.727103 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-04-15 15:19:57.727103 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-04-15 15:19:57.727103 : ++ FLASK PORT 5001 ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 954-387-124
+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-15 15:20:24.365451 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-04-15 15:20:24.365451 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-04-15 15:20:24.365451 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-04-15 15:20:24.365451 : ++ FLASK PORT 5001 ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 954-387-124
+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-15 15:20:46.639957 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-04-15 15:20:46.639957 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-04-15 15:20:46.639957 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-04-15 15:20:46.639957 : ++ FLASK PORT 5001 ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 954-387-124
+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-15 15:21:09.381718 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-04-15 15:21:09.381718 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-04-15 15:21:09.381718 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-04-15 15:21:09.381718 : ++ FLASK PORT 5001 ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 954-387-124
+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-15 15:21:30.376040 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-04-15 15:21:30.376040 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-04-15 15:21:30.377076 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-04-15 15:21:30.377076 : ++ FLASK PORT 5001 ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 954-387-124
+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-15 15:24:28.964545 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-04-15 15:24:28.965560 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-04-15 15:24:28.965560 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-04-15 15:24:28.965560 : ++ FLASK PORT 5001 ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 954-387-124
+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-15 15:25:45.474066 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-04-15 15:25:45.474066 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-04-15 15:25:45.475081 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-04-15 15:25:45.475081 : ++ FLASK PORT 5001 ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 954-387-124
+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-15 15:26:42.579245 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-04-15 15:26:42.580247 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-04-15 15:26:42.580247 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-04-15 15:26:42.580247 : ++ FLASK PORT 5001 ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 954-387-124
+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-15 15:28:36.619365 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-04-15 15:28:36.619365 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-04-15 15:28:36.619365 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-04-15 15:28:36.620369 : ++ FLASK PORT 5001 ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 954-387-124
+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-15 15:33:34.978510 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-04-15 15:33:34.978510 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-04-15 15:33:34.978510 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-04-15 15:33:34.978510 : ++ FLASK PORT 5001 ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 954-387-124
+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-15 15:34:21.041334 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-04-15 15:34:21.041334 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-04-15 15:34:21.041334 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-04-15 15:34:21.041334 : ++ FLASK PORT 5001 ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 954-387-124
+INFO:root:2023-04-15 15:36:11.157009 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 15:36:11.162009 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 15:36:11.167333 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 15:36:11.173791 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:36:11] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 15:36:11.184503 : Connexion du partner recid = 8a77c1642a21a9a417a8583f4ef7f2f9c174a99996abb4c63a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:36:11] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:36:11] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:36:11] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 15:36:11.964297 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:36:11] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 15:36:19.801489 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 15:36:19.804871 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 15:36:19.806915 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:36:19] "POST /myclass/api/get_List_domaine_formation/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:36:19] "POST /myclass/api/Get_Suggested_Fr_Cities/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:36:20] "POST /myclass/api/Get_Suggested_Word/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 15:36:20.735584 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 15:36:20.737158 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:36:20] "POST /myclass/api/get_all_class/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 15:36:21.122639 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 15:36:21.125647 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:36:21] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 15:36:21.132930 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:36:21] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 15:36:21.139808 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:36:21] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 15:36:21.146923 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 15:36:21.150464 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:36:21] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 15:36:21.157712 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:36:21] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 15:36:21.165444 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:36:21] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 15:36:21.168534 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:36:21] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:36:21] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 15:36:21.179817 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:36:21] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 15:36:21.183322 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 15:36:21.190262 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 15:36:21.192747 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:36:21] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 15:36:21.197185 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:36:21] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 15:36:21.204951 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:36:21] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 15:36:21.211143 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 15:36:21.216800 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:36:21] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:36:21] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:36:21] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 15:36:21.228973 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:36:21] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:36:21] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 15:36:21.236624 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:36:21] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 15:36:21.242883 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:36:21] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:36:21] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 15:36:25.524024 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 15:36:26.449424 : partner_login Connexion partnair mysylaplumedepierrot@gmail.com : OK, Date : 2023-04-15 15:36:25.526489 , _id = 63e8f2745d4b4085b83f3aec
+INFO:root:2023-04-15 15:36:26.454619 : partner_login Connexion partener_token : OK , _id = 63e8f2c17b7f1fbbc5ee9419
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:36:26] "POST /myclass/api/partner_login/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 15:36:26.685276 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 15:36:26.691764 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 15:36:26.699162 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:36:26] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 15:36:26.706526 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 15:36:26.715700 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:36:26] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:36:26] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 15:36:26.730873 : LMS_Get_Partner_Data -'mysy_lms_user_id' - Line : 1864
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:36:26] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 15:36:27.137101 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:36:27] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 15:36:30.283536 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 15:36:30.287756 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 15:36:30.297732 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:36: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_S6gTBm8sIB3u3n message='Dashboard link for request'
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:36:30] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 15:36:36.344101 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 15:36:36.349362 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 15:36:36.356155 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 15:36:36.367452 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:36:36] "POST /myclass/api/get_product_service/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:36:36] "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_vrA2w0ZH38Rslg message='Dashboard link for request'
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:36:37] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 15:36:37.539842 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 15:36:37.551234 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:36:37] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 15:36:46.411196 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 15:36:46.417346 : 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_64qgDJAEjcRuve 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]=2
+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_qrsBS0yMFX5J2S?t=1681565807",\n "type": "invalid_request_error"\n }\n}\n' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_qrsBS0yMFX5J2S 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-15 15:36:47.090295 : strip_update_subscription_plan -Request req_qrsBS0yMFX5J2S: You cannot update a subscription that is `canceled` or `incomplete_expired`. - ERRORRRR AT Line : 973
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:36:47] "POST /myclass/api/strip_update_subscription_plan/ HTTP/1.1" 200 -
+DEBUG:xhtml2pdf:pisaDocument options:
+ src = '\n\n\n\n\t\n\t\t

\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_234000237\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\tDate de facture: 15/04/2023 | \n\t\t\t\t\t\tDate échéance : 15/04/2023 | \n\t\t\t\t\t
\n\n\t\t\t\t
\n\n\t\t\t\t
\n\t\t\t\t\tOrigine : MySy_00hsnj\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\tDescription | \n\t\t\t\t\t\t\tQuantité | \n\t\t\t\t\t\t\tPrix unitaire | \n\t\t\t\t\t\t\tMontant | \n\t\t\t\t\t\t
\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tStandard | \n\t\t\t\t\t\t\t2 | \n\t\t\t\t\t\t\t50 | \n\t\t\t\t\t\t\t100.0 | \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
\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\tMontant HT: | \n\t\t\t\t\t100.0 | \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\tTVA 20% : | \n\t\t\t\t\t20.0 | \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\tMontant TTC : | \n\t\t\t\t\t120.0 | \n\t\t\t\t
\n\t\t\t
\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\n\n'
+ dest = <_io.BufferedRandom name='./Invoices/invoice_FACT_234000237.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): 0x14c2e350
+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_234000237.pdf', 'wb')
+DEBUG:paramiko.transport.sftp:[chan 0] open(b'/var/www/html/sftp_iexercice/mysy_invoices_dev/invoice_FACT_234000237.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_234000237.pdf')
+INFO:root:2023-04-15 15:36:54.323312 : convertHtmlToPdf DEPLACEMENT DE ./Invoices/invoice_FACT_234000237.pdf VERS /var/www/html/sftp_iexercice/mysy_invoices_dev/invoice_FACT_234000237.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-15 15:36:54.324330 : Impression facture N° FACT_234000237 OK
+INFO:root:2023-04-15 15:36:54.353383 : UpdataPartnerRankingClass - Le RANKING de 4 ont été mise à jour avec la valeur {'display_rank': '20', 'date_update': '2023-04-15 15:36:54.336776'}
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:36:54] "POST /myclass/api/createOrder/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 15:36:54.510926 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 15:36:57.721092 : Create_MySy_LMS_User -'str' object has no attribute 'Email_Part_Espace_Hosting' - Line : 326
+INFO:root:2023-04-15 15:36:57.725564 : Check_MySy_LMS_Account - Impossible de créer le compte LMS
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:36:57] "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-15 15:39:14.233257 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-04-15 15:39:14.233257 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-04-15 15:39:14.233257 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-04-15 15:39:14.233257 : ++ FLASK PORT 5001 ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 954-387-124
+INFO:root:2023-04-15 15:40:25.097985 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 15:40:25.103011 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 15:40:25.108034 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 15:40:25.112366 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:40:25] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 15:40:25.129951 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:40:25] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:40:25] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 15:40:26.449064 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:40:26] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 15:40:26.521568 : LMS_Get_Partner_Data -'mysy_lms_user_id' - Line : 1864
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:40:26] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 15:40:31.502298 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 15:40:31.507063 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 15:40:31.517244 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:40:31] "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_PqrXWTMDrRgJkN message='Dashboard link for request'
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:40:31] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 15:40:35.027203 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 15:40:35.029434 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 15:40:35.037508 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:40:35] "POST /myclass/api/get_product_service/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 15:40:35.050759 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:40: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_cprNf1IIemNmp0 message='Dashboard link for request'
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:40:35] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 15:40:35.612597 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 15:40:35.620666 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:40:35] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 15:40:46.949795 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 15:40:46.955134 : 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_w07UZ4CeVvu8ML 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]=2
+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_oaJT9S52OJBEpG?t=1681566048",\n "type": "invalid_request_error"\n }\n}\n' message='API response body'
+DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_oaJT9S52OJBEpG 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-15 15:40:47.937882 : strip_update_subscription_plan -Request req_oaJT9S52OJBEpG: You cannot update a subscription that is `canceled` or `incomplete_expired`. - ERRORRRR AT Line : 973
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:40:47] "POST /myclass/api/strip_update_subscription_plan/ HTTP/1.1" 200 -
+DEBUG:xhtml2pdf:pisaDocument options:
+ src = '\n\n\n\n\t\n\t\t

\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_234000238\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\tDate de facture: 15/04/2023 | \n\t\t\t\t\t\tDate échéance : 15/04/2023 | \n\t\t\t\t\t
\n\n\t\t\t\t
\n\n\t\t\t\t
\n\t\t\t\t\tOrigine : MySy_00-v1o\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\tDescription | \n\t\t\t\t\t\t\tQuantité | \n\t\t\t\t\t\t\tPrix unitaire | \n\t\t\t\t\t\t\tMontant | \n\t\t\t\t\t\t
\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tGold | \n\t\t\t\t\t\t\t2 | \n\t\t\t\t\t\t\t90 | \n\t\t\t\t\t\t\t180.0 | \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
\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\tMontant HT: | \n\t\t\t\t\t180.0 | \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\tTVA 20% : | \n\t\t\t\t\t36.0 | \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\tMontant TTC : | \n\t\t\t\t\t216.0 | \n\t\t\t\t
\n\t\t\t
\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\n\n'
+ dest = <_io.BufferedRandom name='./Invoices/invoice_FACT_234000238.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): 0x68a5690
+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_234000238.pdf', 'wb')
+DEBUG:paramiko.transport.sftp:[chan 0] open(b'/var/www/html/sftp_iexercice/mysy_invoices_dev/invoice_FACT_234000238.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_234000238.pdf')
+INFO:root:2023-04-15 15:40:52.610271 : convertHtmlToPdf DEPLACEMENT DE ./Invoices/invoice_FACT_234000238.pdf VERS /var/www/html/sftp_iexercice/mysy_invoices_dev/invoice_FACT_234000238.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-15 15:40:52.613283 : Impression facture N° FACT_234000238 OK
+INFO:root:2023-04-15 15:40:52.641330 : UpdataPartnerRankingClass - Le RANKING de 4 ont été mise à jour avec la valeur {'display_rank': '30', 'date_update': '2023-04-15 15:40:52.626988'}
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:40:52] "POST /myclass/api/createOrder/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 15:40:52.980335 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:40:54] "POST /myclass/api/Check_MySy_LMS_Account/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 15:41:06.770726 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 15:41:06.775726 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:41:06] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 15:41:06.782729 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 15:41:06.788723 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 15:41:06.792725 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:41:06] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:41:06] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:41:06] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 15:41:08.029161 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:41:08] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 15:44:32.442460 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 15:44:32.446209 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 15:44:32.447210 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:44:32] "POST /myclass/api/get_List_domaine_formation/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:44:32] "POST /myclass/api/Get_Suggested_Fr_Cities/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:44:32] "POST /myclass/api/Get_Suggested_Word/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 15:44:33.578124 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 15:44:33.581116 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:44:33] "POST /myclass/api/get_all_class/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 15:44:34.035667 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 15:44:34.040171 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:44:34] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 15:44:34.047566 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 15:44:34.052608 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:44:34] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 15:44:34.059054 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:44:34] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:44:34] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:44:34] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 15:44:34.069371 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 15:44:34.074733 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 15:44:34.077242 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:44:34] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:44:34] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 15:44:34.087136 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 15:44:34.091540 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:44:34] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 15:44:34.100252 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 15:44:34.105373 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:44:34] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:44:34] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:44:34] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 15:44:34.116423 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:44:34] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 15:44:34.123650 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:44:34] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:44:34] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 15:44:34.138768 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 15:44:34.139771 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 15:44:34.142431 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 15:44:34.144733 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 15:44:34.149349 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:44:34] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:44:34] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 15:44:34.160249 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:44:34] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:44:34] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:44:34] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:44:34] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 15:44:35.389111 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 15:44:35.393824 : Security check : IP adresse '127.0.0.1' connected
+INFO:root:2023-04-15 15:44:35.397634 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:44:35] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 15:44:35.404131 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:44:35] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 -
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:44:35] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 15:44:35.416897 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:44:35] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
+INFO:root:2023-04-15 15:44:36.081660 : Security check : IP adresse '127.0.0.1' connected
+INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 15:44:36] "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\\email_mgt.py', reloading
+INFO:werkzeug: * Restarting with stat
+INFO:root:2023-04-15 15:45:23.491095 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
+INFO:root:2023-04-15 15:45:23.491095 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
+INFO:root:2023-04-15 15:45:23.492097 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
+INFO:root:2023-04-15 15:45:23.492097 : ++ FLASK PORT 5001 ++
+WARNING:werkzeug: * Debugger is active!
+INFO:werkzeug: * Debugger PIN: 954-387-124
diff --git a/email_mgt.py b/email_mgt.py
index c72a3e5..e4f7305 100644
--- a/email_mgt.py
+++ b/email_mgt.py
@@ -2275,3 +2275,110 @@ def EmailNotifEvaluation_Done(diction):
return False, " Impossible d'envoyer l'email de notification "
+"""
+Cette fonction envoie un email à partenaire avec ses identfiants
+de connexion à son espace hebergement de formation
+"""
+def Email_Part_Espace_Hosting( diction):
+ try:
+ 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, " Impossible d'envoyer les emails avec les information d'hébergement"
+
+ 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 est KO ")
+ return False, "Impossible d'envoyer les emails avec les information d'hébergement "
+
+ # 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"
+
+ nom = ""
+ if ("nom" in my_partner.keys()):
+ nom = my_partner['nom']
+
+ mysy_pack = ""
+ if ("pack_service" in my_partner.keys()):
+ mysy_pack = my_partner['pack_service']
+
+ nb_formation = ""
+ if ("nb_formation" in my_partner.keys()):
+ nb_formation = my_partner['nb_formation']
+
+ mysy_url = MYSY_GV.CLIENT_URL_BASE
+
+ lms_url = ""
+ if ("lms_virtualhost_url" in my_partner.keys()):
+ lms_url = my_partner['lms_virtualhost_url']
+
+ login = ""
+ if ("email" in my_partner.keys()):
+ if( '@' in str(my_partner['email'])):
+ login_tab = str(my_partner['email']).strip().split('@')
+ login = login_tab[0]
+
+ if( login == ""):
+ mycommon.myprint(str(inspect.stack()[0][3]) + " - Le login du partenaire est incorrecte")
+ return False, str(inspect.stack()[0][3]) + " - Le login du partenaire est incorrecte"
+
+ tomorrow = datetime.date.today() + datetime.timedelta(days=1)
+ tomorrow_day = tomorrow.strftime("%A")
+
+ smtpserver = smtplib.SMTP(MYSY_GV.O365_SMTP_COUNT_smtpsrv, MYSY_GV.O365_SMTP_COUNT_port)
+
+ # msg = MIMEMultipart("alternative")
+ msg = EmailMessage()
+
+ # JINJA2
+ templateLoader = jinja2.FileSystemLoader(searchpath="./")
+ templateEnv = jinja2.Environment(loader=templateLoader)
+ TEMPLATE_FILE = "Template/MySy_Acces_Espace_Hebergement_Partner_tpl.html"
+ template = templateEnv.get_template(TEMPLATE_FILE)
+ # This data can come from database query
+ body = {
+ "params":{"nom": str(nom),
+ "mysy_pack": str(mysy_pack),
+ "nb_formation": str(nb_formation),
+ "lms_url": str(lms_url),
+ "mysy_url": str(mysy_url),
+ "login": str(login),
+ },
+ }
+
+ sourceHtml = template.render(params=body["params"])
+
+ msg.set_content(sourceHtml, subtype='html')
+ msg['From'] = MYSY_GV.O365_SMTP_COUNT_From_User
+
+ msg['Bcc'] = 'contact@mysy-training.com'
+
+ msg['Subject'] = "[MySy Training Technology] : Vos identifiants de connexion à la plateforme d'hébergement. "
+ msg['To'] = str(my_partner['email'])
+
+ smtpserver.ehlo()
+ smtpserver.starttls()
+ smtpserver.login(MYSY_GV.O365_SMTP_COUNT_user, MYSY_GV.O365_SMTP_COUNT_password)
+ val = smtpserver.send_message(msg)
+ smtpserver.close()
+ print(" Email envoyé " + str(val))
+ return True, " Les identifiants de connexion à la plateforme d'hébergement a été correctement envoyé "
+
+
+ except Exception as e:
+ exc_type, exc_obj, exc_tb = sys.exc_info()
+ mycommon.myprint(str(inspect.stack()[0][3]) + " -" + str(e) + " - ERRORRRR AT Line : " + str(exc_tb.tb_lineno))
+ return False, " Impossible d'envoyer les identifiants de connexion à la plateforme d'hébergement par email "
diff --git a/lms_chamilo/mysy_lms.py b/lms_chamilo/mysy_lms.py
index 154435b..e7b9808 100644
--- a/lms_chamilo/mysy_lms.py
+++ b/lms_chamilo/mysy_lms.py
@@ -15,7 +15,7 @@ from pymongo import ReturnDocument
from math import isnan
import GlobalVariable as MYSY_GV
import ela_index_bdd_classes as eibdd
-import email_mgt as email
+import email_mgt as email_mgt
import socket
import smtplib
import re
@@ -300,6 +300,7 @@ def Create_MySy_LMS_User(diction):
else:
"""
/!\ On va l'ajouter une 2ieme fois si le compte partenaire necessite la creation d'un nouvel url.
+ :!\ : on ajoute aussi le user ad
"""
virutal_host_id = local_virtualhost_id
virutal_host_url = local_virtualhost_full_url
@@ -316,6 +317,17 @@ def Create_MySy_LMS_User(diction):
conn.commit()
+ """
+ Envoie de l'email contenant les information de connection à la plateforme
+ d'hébergement
+ """
+ local_mydata2 = {}
+ local_mydata2['token'] = my_token
+ local_status2, local_message2 = email_mgt.Email_Part_Espace_Hosting(local_mydata2)
+ if( local_status2 is False):
+ mycommon.myprint(
+ str(inspect.stack()[0][3]) + " - WARNING : Impossible d'envoyer les identifiants de connexion à la plateforme d'hébergement par email ")
+
conn.close()