From bb7a2b4e05cd620cbd5555f1d4317f8dd42c5cbe Mon Sep 17 00:00:00 2001 From: cherif Date: Thu, 20 Apr 2023 15:42:46 +0200 Subject: [PATCH] 20/04/23 - 16h --- .idea/workspace.xml | 15 +- Log/log_file.log | 1582 +++++++++++++++++++++++++++++++++++++++ lms_chamilo/mysy_lms.py | 52 +- main.py | 13 + 4 files changed, 1658 insertions(+), 4 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 62c1345..9b0e3ea 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -1,10 +1,11 @@ - + + @@ -123,6 +131,7 @@ - \ No newline at end of file diff --git a/Log/log_file.log b/Log/log_file.log index 2084d1c..3c80ffd 100644 --- a/Log/log_file.log +++ b/Log/log_file.log @@ -1565874,3 +1565874,1585 @@ INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 21:48:26] "POST /myclass/api/LMS_Get_Pa INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 21:48:26] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - INFO:root:2023-04-15 21:48:28.150897 : Security check : IP adresse '127.0.0.1' connected INFO:werkzeug:127.0.0.1 - - [15/Apr/2023 21:48:28] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-04-16 16:09:37.895442 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-04-16 16:09:37.896457 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-04-16 16:09:37.896457 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-04-16 16:09:37.897464 : ++ FLASK PORT 5001 ++ +INFO:werkzeug:WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead. + * Running on http://localhost:5001 +INFO:werkzeug:Press CTRL+C to quit +INFO:werkzeug: * Restarting with stat +INFO:root:2023-04-16 16:09:51.679755 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-04-16 16:09:51.679755 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-04-16 16:09:51.679755 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-04-16 16:09:51.679755 : ++ FLASK PORT 5001 ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 138-504-518 +INFO:root:2023-04-16 16:10:08.879572 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 16:10:08.881573 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 16:10:08.882576 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 16:10:08] "POST /myclass/api/get_List_domaine_formation/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 16:10:08] "POST /myclass/api/Get_Suggested_Fr_Cities/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 16:10:09] "POST /myclass/api/Get_Suggested_Word/ HTTP/1.1" 200 - +INFO:root:2023-04-16 16:10:09.686159 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 16:10:09.688166 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 16:10:09] "POST /myclass/api/get_all_class/ HTTP/1.1" 200 - +INFO:root:2023-04-16 16:10:10.460447 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 16:10:10.463736 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 16:10:10] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-16 16:10:10.470271 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 16:10:10.475286 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 16:10:10] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 16:10:10] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-16 16:10:10.483293 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 16:10:10.486289 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 16:10:10] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 16:10:10] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-16 16:10:10.495809 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 16:10:10.499060 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 16:10:10] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-16 16:10:10.507765 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 16:10:10] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-16 16:10:10.511780 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 16:10:10] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-16 16:10:10.517056 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 16:10:10] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-16 16:10:10.523225 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 16:10:10.530286 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 16:10:10] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 16:10:10] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-16 16:10:10.537479 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 16:10:10] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 16:10:10] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-16 16:10:10.542476 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 16:10:10.549950 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 16:10:10] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 16:10:10] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-16 16:10:10.554944 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 16:10:10.558964 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 16:10:10.561962 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 16:10:10] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 16:10:10] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 16:10:10] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-16 16:10:10.572754 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 16:10:10] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 16:10:10] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-16 16:10:15.864097 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 16:10:16.853525 : partner_login Connexion partnair mysylaplumedepierrot@gmail.com : OK, Date : 2023-04-16 16:10:15.865141 , _id = 63e8f2745d4b4085b83f3aec +INFO:root:2023-04-16 16:10:16.856511 : partner_login Connexion partener_token : OK , _id = 63e8f2c17b7f1fbbc5ee9419 +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 16:10:16] "POST /myclass/api/partner_login/ HTTP/1.1" 200 - +INFO:root:2023-04-16 16:10:17.056420 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 16:10:17.059918 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 16:10:17.063090 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 16:10:17] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-04-16 16:10:17.067550 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 16:10:17] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 16:10:17] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-04-16 16:10:17.079878 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 16:10:17] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:root:2023-04-16 16:10:17.267623 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 16:10:17] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:08:05.479265 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:08:05.449901 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:08:05.488759 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:08:05.512355 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:08:05] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:08:05.551955 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:08:05] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:08:05] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:08:05] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:08:07.134108 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:08:07] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:30:46.910612 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:30:46.916770 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:30:46.925512 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:30:46.934255 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:30:46] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:30:46] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:30:46.954641 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:30:46] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:30:46] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:30:47.848768 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:30:47] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:31:33.479494 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:31:33.490966 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:31:33.505346 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:31:33] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/customers/cus_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_UjqSFmiztpaI9Q message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:31:34] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:31:37.379893 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:31:37.385919 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:31:37.393282 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:31:37.403410 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:31:37] "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 - - [16/Apr/2023 17:31:37] "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_SSMpoUykWDp3NJ message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:31:37] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:31:37.880695 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:31:37.889849 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:31:37] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:31:42.413649 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:31:42.422649 : 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_B6A8jXPjP3bsnu 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_LXWzrYNnhtQsxI?t=1681659103",\n "type": "invalid_request_error"\n }\n}\n' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_LXWzrYNnhtQsxI 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-16 17:31:43.313070 : strip_update_subscription_plan -Request req_LXWzrYNnhtQsxI: You cannot update a subscription that is `canceled` or `incomplete_expired`. - ERRORRRR AT Line : 973 +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:31:43] "POST /myclass/api/strip_update_subscription_plan/ HTTP/1.1" 200 - +DEBUG:xhtml2pdf:pisaDocument options: + src = '\n\n\n\n\t
\n\t\tMysy Training Logo \n\t
\n\t\n\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t\t
\n\t\t\t\t\n\t\t\t\t\tLa plume de pierrot
\n\t\t\t\t\t2 place du test
\n\t\t\t\t\t75001 Paris
\n\t\t\t\t\tFrance
\n\n\t\t\t\t
\n\n\n\t\t\t\t\n\n\t\t\t\t\tFacture n° FACT_234000247\n\n\n\t\t\t\t
\n\t\t\t\t
\n\n\n\t\t\t\t\n\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\n\t\t\t\t
Date de facture: 16/04/2023 Date échéance : 16/04/2023
\n\n\t\t\t\t\n\t\t\t\t\tOrigine : MySy_00WsBH\n\t\t\t\t\n\n\t\t\t\t
 
\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t
DescriptionQuantitéPrix unitaireMontant
Gold290180.0
\n\t\t\t\t\n\n\t\t\t\t
 
\n\n\t\t\t\n\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t
    Montant HT: 180.0
    TVA 20% : 36.0
    Montant TTC : 216.0
\n\n\n\t\t\t
\n\t\t\t
 
\n\t\t\t
 
\n\t\t\t
 
\n\n\n\n\t\t\n\n\t\n\t
\n\t
\n\t\t\n\n\t\t\t

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

\n\t\t\n\t
\n\n\n' + dest = <_io.BufferedRandom name='./Invoices/invoice_FACT_234000247.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): 0x594a4d0 +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_234000247.pdf', 'wb') +DEBUG:paramiko.transport.sftp:[chan 0] open(b'/var/www/html/sftp_iexercice/mysy_invoices_dev/invoice_FACT_234000247.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_234000247.pdf') +INFO:root:2023-04-16 17:31:55.259033 : convertHtmlToPdf DEPLACEMENT DE ./Invoices/invoice_FACT_234000247.pdf VERS /var/www/html/sftp_iexercice/mysy_invoices_dev/invoice_FACT_234000247.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-16 17:31:55.262009 : Impression facture N° FACT_234000247 OK +INFO:root:2023-04-16 17:31:55.339865 : UpdataPartnerRankingClass - Le RANKING de 4 ont été mise à jour avec la valeur {'display_rank': '30', 'date_update': '2023-04-16 17:31:55.294328'} +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:31:55] "POST /myclass/api/createOrder/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:31:55.666003 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:31:56] "POST /myclass/api/Check_MySy_LMS_Account/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:31:59.790227 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:31:59.796479 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:31:59] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:31:59.804276 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:31:59.810700 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:31:59.819594 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:31:59] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:31:59] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:31:59] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:32:00.605443 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:32:00] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:36:59.350655 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:36:59.356248 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:36:59] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:36:59.366247 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:36:59.370248 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:36:59.376248 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:36:59] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:36:59] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:36:59] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:37:00.403937 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:37:00] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:37:02.286012 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:37:02.291989 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:37:02.301959 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:37:02] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/customers/cus_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_4d5nsXq9z2KOlw message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:37:02] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:37:04.596438 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:37:04.607922 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:37:04.614152 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:37:04.618627 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:37:04] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:37:04] "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_YyH4WbWYKFlUVC message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:37:04] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:37:05.058597 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:37:05.069061 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:37:05] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:37:08.873521 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:37:08.879709 : 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_EBwvepXtz8G4zr 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_i4jVsTvm6O1HkL?t=1681659429",\n "type": "invalid_request_error"\n }\n}\n' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_i4jVsTvm6O1HkL 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-16 17:37:09.436514 : strip_update_subscription_plan -Request req_i4jVsTvm6O1HkL: You cannot update a subscription that is `canceled` or `incomplete_expired`. - ERRORRRR AT Line : 973 +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:37:09] "POST /myclass/api/strip_update_subscription_plan/ HTTP/1.1" 200 - +DEBUG:xhtml2pdf:pisaDocument options: + src = '\n\n\n\n\t
\n\t\tMysy Training Logo \n\t
\n\t\n\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t\t
\n\t\t\t\t\n\t\t\t\t\tLa plume de pierrot
\n\t\t\t\t\t2 place du test
\n\t\t\t\t\t75001 Paris
\n\t\t\t\t\tFrance
\n\n\t\t\t\t
\n\n\n\t\t\t\t\n\n\t\t\t\t\tFacture n° FACT_234000248\n\n\n\t\t\t\t
\n\t\t\t\t
\n\n\n\t\t\t\t\n\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\n\t\t\t\t
Date de facture: 16/04/2023 Date échéance : 16/04/2023
\n\n\t\t\t\t\n\t\t\t\t\tOrigine : MySy_00gR3q\n\t\t\t\t\n\n\t\t\t\t
 
\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t
DescriptionQuantitéPrix unitaireMontant
Standard350150.0
\n\t\t\t\t\n\n\t\t\t\t
 
\n\n\t\t\t\n\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t
    Montant HT: 150.0
    TVA 20% : 30.0
    Montant TTC : 180.0
\n\n\n\t\t\t
\n\t\t\t
 
\n\t\t\t
 
\n\t\t\t
 
\n\n\n\n\t\t\n\n\t\n\t
\n\t
\n\t\t\n\n\t\t\t

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

\n\t\t\n\t
\n\n\n' + dest = <_io.BufferedRandom name='./Invoices/invoice_FACT_234000248.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): 0x57f0250 +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_234000248.pdf', 'wb') +DEBUG:paramiko.transport.sftp:[chan 0] open(b'/var/www/html/sftp_iexercice/mysy_invoices_dev/invoice_FACT_234000248.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_234000248.pdf') +INFO:root:2023-04-16 17:37:14.849439 : convertHtmlToPdf DEPLACEMENT DE ./Invoices/invoice_FACT_234000248.pdf VERS /var/www/html/sftp_iexercice/mysy_invoices_dev/invoice_FACT_234000248.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-16 17:37:14.851457 : Impression facture N° FACT_234000248 OK +INFO:root:2023-04-16 17:37:14.929642 : UpdataPartnerRankingClass - Le RANKING de 4 ont été mise à jour avec la valeur {'display_rank': '20', 'date_update': '2023-04-16 17:37:14.890869'} +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:37:14] "POST /myclass/api/createOrder/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:37:15.304723 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:37:15] "POST /myclass/api/Check_MySy_LMS_Account/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:37:30.768000 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:37:30.775536 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:37:30.782434 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:37:30.785450 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:37:30] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:37:30] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:37:30] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:37:30.808001 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:37:30] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:37:31.719091 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:37:31] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:38:49.976012 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:38:49.979492 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:38:49.984996 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:38:49] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:38:49.991366 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:38:50.001915 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:38:50] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:38:50] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:38:50] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:38:51.167054 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:38:51] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:38:51.950421 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:38:51.953587 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:38:51.958926 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:38:51] "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_2P6Ogiy87q5rgf message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:38:52] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:38:54.258484 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:38:54.263084 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:38:54.267315 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:38:54.270342 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:38:54] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:38:54] "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_aPsF9BXI0pwJ77 message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:38:54] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:38:54.624757 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:38:54.633458 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:38:54] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:38:59.216825 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:38:59.228048 : 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_pmCkFlnRXNRmt3 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_C9tM2Si4FJXCXX?t=1681659539",\n "type": "invalid_request_error"\n }\n}\n' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_C9tM2Si4FJXCXX 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-16 17:38:59.804531 : strip_update_subscription_plan -Request req_C9tM2Si4FJXCXX: You cannot update a subscription that is `canceled` or `incomplete_expired`. - ERRORRRR AT Line : 973 +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:38:59] "POST /myclass/api/strip_update_subscription_plan/ HTTP/1.1" 200 - +DEBUG:xhtml2pdf:pisaDocument options: + src = '\n\n\n\n\t
\n\t\tMysy Training Logo \n\t
\n\t\n\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t\t
\n\t\t\t\t\n\t\t\t\t\tLa plume de pierrot
\n\t\t\t\t\t2 place du test
\n\t\t\t\t\t75001 Paris
\n\t\t\t\t\tFrance
\n\n\t\t\t\t
\n\n\n\t\t\t\t\n\n\t\t\t\t\tFacture n° FACT_234000249\n\n\n\t\t\t\t
\n\t\t\t\t
\n\n\n\t\t\t\t\n\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\n\t\t\t\t
Date de facture: 16/04/2023 Date échéance : 16/04/2023
\n\n\t\t\t\t\n\t\t\t\t\tOrigine : MySy_00xZx-\n\t\t\t\t\n\n\t\t\t\t
 
\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t
DescriptionQuantitéPrix unitaireMontant
Gold290180.0
\n\t\t\t\t\n\n\t\t\t\t
 
\n\n\t\t\t\n\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t
    Montant HT: 180.0
    TVA 20% : 36.0
    Montant TTC : 216.0
\n\n\n\t\t\t
\n\t\t\t
 
\n\t\t\t
 
\n\t\t\t
 
\n\n\n\n\t\t\n\n\t\n\t
\n\t
\n\t\t\n\n\t\t\t

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

\n\t\t\n\t
\n\n\n' + dest = <_io.BufferedRandom name='./Invoices/invoice_FACT_234000249.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): 0x5616fe0 +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_234000249.pdf', 'wb') +DEBUG:paramiko.transport.sftp:[chan 0] open(b'/var/www/html/sftp_iexercice/mysy_invoices_dev/invoice_FACT_234000249.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_234000249.pdf') +INFO:root:2023-04-16 17:39:02.864016 : convertHtmlToPdf DEPLACEMENT DE ./Invoices/invoice_FACT_234000249.pdf VERS /var/www/html/sftp_iexercice/mysy_invoices_dev/invoice_FACT_234000249.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-16 17:39:02.869024 : Impression facture N° FACT_234000249 OK +INFO:root:2023-04-16 17:39:02.906169 : UpdataPartnerRankingClass - Le RANKING de 4 ont été mise à jour avec la valeur {'display_rank': '30', 'date_update': '2023-04-16 17:39:02.888489'} +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:39:02] "POST /myclass/api/createOrder/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:39:03.295626 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:39:04] "POST /myclass/api/Check_MySy_LMS_Account/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:39:09.079403 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:39:09.090941 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:39:09.095845 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:39:09] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:39:09.105613 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:39:09.112368 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:39:09] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:39:09] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:39:09] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:39:09.843664 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:39:09] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:39:51.790378 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:39:51.796736 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:39:51.804158 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:39:51] "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_sykoQTieNbjd2v message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:39:52] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:39:54.076001 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:39:54.088785 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:39:54.097194 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:39:54.102802 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:39:54] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:39:54] "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_hgBX6KBhV4D9sT message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:39:54] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:39:54.561010 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:39:54.567316 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:39:54] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:39:59.266590 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:39:59.284558 : 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_JKTzdcpzGn81W1 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_qKAJHnLzBqzAnt?t=1681659599",\n "type": "invalid_request_error"\n }\n}\n' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_qKAJHnLzBqzAnt 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-16 17:39:59.874017 : strip_update_subscription_plan -Request req_qKAJHnLzBqzAnt: You cannot update a subscription that is `canceled` or `incomplete_expired`. - ERRORRRR AT Line : 973 +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:39:59] "POST /myclass/api/strip_update_subscription_plan/ HTTP/1.1" 200 - +DEBUG:xhtml2pdf:pisaDocument options: + src = '\n\n\n\n\t
\n\t\tMysy Training Logo \n\t
\n\t\n\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t\t
\n\t\t\t\t\n\t\t\t\t\tLa plume de pierrot
\n\t\t\t\t\t2 place du test
\n\t\t\t\t\t75001 Paris
\n\t\t\t\t\tFrance
\n\n\t\t\t\t
\n\n\n\t\t\t\t\n\n\t\t\t\t\tFacture n° FACT_234000250\n\n\n\t\t\t\t
\n\t\t\t\t
\n\n\n\t\t\t\t\n\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\n\t\t\t\t
Date de facture: 16/04/2023 Date échéance : 16/04/2023
\n\n\t\t\t\t\n\t\t\t\t\tOrigine : MySy_00paVH\n\t\t\t\t\n\n\t\t\t\t
 
\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t
DescriptionQuantitéPrix unitaireMontant
Standard250100.0
\n\t\t\t\t\n\n\t\t\t\t
 
\n\n\t\t\t\n\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t
    Montant HT: 100.0
    TVA 20% : 20.0
    Montant TTC : 120.0
\n\n\n\t\t\t
\n\t\t\t
 
\n\t\t\t
 
\n\t\t\t
 
\n\n\n\n\t\t\n\n\t\n\t
\n\t
\n\t\t\n\n\t\t\t

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

\n\t\t\n\t
\n\n\n' + dest = <_io.BufferedRandom name='./Invoices/invoice_FACT_234000250.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): 0x5669a20 +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_234000250.pdf', 'wb') +DEBUG:paramiko.transport.sftp:[chan 0] open(b'/var/www/html/sftp_iexercice/mysy_invoices_dev/invoice_FACT_234000250.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_234000250.pdf') +INFO:root:2023-04-16 17:40:03.843812 : convertHtmlToPdf DEPLACEMENT DE ./Invoices/invoice_FACT_234000250.pdf VERS /var/www/html/sftp_iexercice/mysy_invoices_dev/invoice_FACT_234000250.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-16 17:40:03.845315 : Impression facture N° FACT_234000250 OK +INFO:root:2023-04-16 17:40:03.871465 : UpdataPartnerRankingClass - Le RANKING de 4 ont été mise à jour avec la valeur {'display_rank': '20', 'date_update': '2023-04-16 17:40:03.858946'} +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:40:03] "POST /myclass/api/createOrder/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:40:04.346741 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:40:04] "POST /myclass/api/Check_MySy_LMS_Account/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:40:11.605432 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:40:11.619201 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:40:11] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:40:11.630209 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:40:11.645839 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:40:11.653764 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:40:11] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:40:11] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:40:11] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:40:13.700975 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:40:13] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:41:23.557689 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:41:23.563960 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:41:23.570959 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:41:23] "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_eQW54VYvPJrEiA message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:41:23] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:41:25.994345 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:41:26.007784 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:41:26.016629 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:41:26.017640 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:41:26] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:41:26] "POST /myclass/api/get_product_service/ HTTP/1.1" 200 - +INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/customers/cus_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_rkbLYlv2t902xk message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:41:26] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:41:26.557607 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:41:26.570704 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:41:26] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:41:30.248385 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:41:30.255677 : 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_Hj3PGXTAnzMN0e 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]=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_2UqmBvYLGEKO0W?t=1681659690",\n "type": "invalid_request_error"\n }\n}\n' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_2UqmBvYLGEKO0W 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-16 17:41:31.147739 : strip_update_subscription_plan -Request req_2UqmBvYLGEKO0W: You cannot update a subscription that is `canceled` or `incomplete_expired`. - ERRORRRR AT Line : 973 +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:41:31] "POST /myclass/api/strip_update_subscription_plan/ HTTP/1.1" 200 - +DEBUG:xhtml2pdf:pisaDocument options: + src = '\n\n\n\n\t
\n\t\tMysy Training Logo \n\t
\n\t\n\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t\t
\n\t\t\t\t\n\t\t\t\t\tLa plume de pierrot
\n\t\t\t\t\t2 place du test
\n\t\t\t\t\t75001 Paris
\n\t\t\t\t\tFrance
\n\n\t\t\t\t
\n\n\n\t\t\t\t\n\n\t\t\t\t\tFacture n° FACT_234000251\n\n\n\t\t\t\t
\n\t\t\t\t
\n\n\n\t\t\t\t\n\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\n\t\t\t\t
Date de facture: 16/04/2023 Date échéance : 16/04/2023
\n\n\t\t\t\t\n\t\t\t\t\tOrigine : MySy_00rZjx\n\t\t\t\t\n\n\t\t\t\t
 
\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t
DescriptionQuantitéPrix unitaireMontant
Gold19090.0
\n\t\t\t\t\n\n\t\t\t\t
 
\n\n\t\t\t\n\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t
    Montant HT: 90.0
    TVA 20% : 18.0
    Montant TTC : 108.0
\n\n\n\t\t\t
\n\t\t\t
 
\n\t\t\t
 
\n\t\t\t
 
\n\n\n\n\t\t\n\n\t\n\t
\n\t
\n\t\t\n\n\t\t\t

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

\n\t\t\n\t
\n\n\n' + dest = <_io.BufferedRandom name='./Invoices/invoice_FACT_234000251.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): 0x585f6d0 +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_234000251.pdf', 'wb') +DEBUG:paramiko.transport.sftp:[chan 0] open(b'/var/www/html/sftp_iexercice/mysy_invoices_dev/invoice_FACT_234000251.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_234000251.pdf') +INFO:root:2023-04-16 17:41:34.226782 : convertHtmlToPdf DEPLACEMENT DE ./Invoices/invoice_FACT_234000251.pdf VERS /var/www/html/sftp_iexercice/mysy_invoices_dev/invoice_FACT_234000251.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-16 17:41:34.229821 : Impression facture N° FACT_234000251 OK +INFO:root:2023-04-16 17:41:34.263933 : UpdataPartnerRankingClass - Le RANKING de 4 ont été mise à jour avec la valeur {'display_rank': '30', 'date_update': '2023-04-16 17:41:34.248154'} +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:41:34] "POST /myclass/api/createOrder/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:41:34.559488 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:41:35] "POST /myclass/api/Check_MySy_LMS_Account/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:41:50.249518 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:41:50.256003 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:41:50] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:41:50.307993 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:41:50.315989 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:41:50.319999 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:41:50] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:41:50] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:41:50] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:41:51.326139 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:41:51] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:42:02.269475 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:42:02.273870 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:42:02.280044 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:42:02] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/customers/cus_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_2ZbvXNxbg3pWVZ message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:42:02] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:42:04.791947 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:42:04.797378 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:42:04.804970 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:42:04] "POST /myclass/api/get_product_service/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:42:04.814699 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:42:04] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/customers/cus_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_mQbvvmUTowEbtt message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:42:05] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:42:05.186966 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:42:05.193457 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:42:05] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:42:10.245443 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:42:10.252014 : 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_fB8BNaFUsiYboE 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_oHxk6ojrNvmvhg?t=1681659730",\n "type": "invalid_request_error"\n }\n}\n' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_oHxk6ojrNvmvhg 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-16 17:42:10.783620 : strip_update_subscription_plan -Request req_oHxk6ojrNvmvhg: You cannot update a subscription that is `canceled` or `incomplete_expired`. - ERRORRRR AT Line : 973 +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:42:10] "POST /myclass/api/strip_update_subscription_plan/ HTTP/1.1" 200 - +DEBUG:xhtml2pdf:pisaDocument options: + src = '\n\n\n\n\t
\n\t\tMysy Training Logo \n\t
\n\t\n\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t\t
\n\t\t\t\t\n\t\t\t\t\tLa plume de pierrot
\n\t\t\t\t\t2 place du test
\n\t\t\t\t\t75001 Paris
\n\t\t\t\t\tFrance
\n\n\t\t\t\t
\n\n\n\t\t\t\t\n\n\t\t\t\t\tFacture n° FACT_234000252\n\n\n\t\t\t\t
\n\t\t\t\t
\n\n\n\t\t\t\t\n\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\n\t\t\t\t
Date de facture: 16/04/2023 Date échéance : 16/04/2023
\n\n\t\t\t\t\n\t\t\t\t\tOrigine : MySy_00ycri\n\t\t\t\t\n\n\t\t\t\t
 
\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t
DescriptionQuantitéPrix unitaireMontant
Standard250100.0
\n\t\t\t\t\n\n\t\t\t\t
 
\n\n\t\t\t\n\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t
    Montant HT: 100.0
    TVA 20% : 20.0
    Montant TTC : 120.0
\n\n\n\t\t\t
\n\t\t\t
 
\n\t\t\t
 
\n\t\t\t
 
\n\n\n\n\t\t\n\n\t\n\t
\n\t
\n\t\t\n\n\t\t\t

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

\n\t\t\n\t
\n\n\n' + dest = <_io.BufferedRandom name='./Invoices/invoice_FACT_234000252.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): 0x566b640 +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_234000252.pdf', 'wb') +DEBUG:paramiko.transport.sftp:[chan 0] open(b'/var/www/html/sftp_iexercice/mysy_invoices_dev/invoice_FACT_234000252.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_234000252.pdf') +INFO:root:2023-04-16 17:42:14.602461 : convertHtmlToPdf DEPLACEMENT DE ./Invoices/invoice_FACT_234000252.pdf VERS /var/www/html/sftp_iexercice/mysy_invoices_dev/invoice_FACT_234000252.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-16 17:42:14.604475 : Impression facture N° FACT_234000252 OK +INFO:root:2023-04-16 17:42:14.629068 : UpdataPartnerRankingClass - Le RANKING de 4 ont été mise à jour avec la valeur {'display_rank': '20', 'date_update': '2023-04-16 17:42:14.618061'} +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:42:14] "POST /myclass/api/createOrder/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:42:15.016781 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:42:15] "POST /myclass/api/Check_MySy_LMS_Account/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:42:22.014679 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:42:22.020649 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:42:22.023704 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:42:22] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:42:22.036697 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:42:22.045692 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:42:22] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:42:22] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:42:22] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:42:22.950770 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:42:22] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:42:46.778166 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:42:46.785905 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:42:46.795150 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:42:46] "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_zAO4cXsAVVbZtn message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:42:47] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:42:49.039781 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:42:49.052103 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:42:49.060568 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:42:49.071794 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:42:49] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:42:49] "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_P5g6qYRjQGgxtk message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:42:49] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:42:49.511186 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:42:49.525876 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:42:49] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:42:54.795466 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:42:54.803588 : 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_sdNIKzSY9fsotE 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]=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_nElHMmQ9nuYIGU?t=1681659775",\n "type": "invalid_request_error"\n }\n}\n' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_nElHMmQ9nuYIGU 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-16 17:42:55.396268 : strip_update_subscription_plan -Request req_nElHMmQ9nuYIGU: You cannot update a subscription that is `canceled` or `incomplete_expired`. - ERRORRRR AT Line : 973 +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:42:55] "POST /myclass/api/strip_update_subscription_plan/ HTTP/1.1" 200 - +DEBUG:xhtml2pdf:pisaDocument options: + src = '\n\n\n\n\t
\n\t\tMysy Training Logo \n\t
\n\t\n\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t\t
\n\t\t\t\t\n\t\t\t\t\tLa plume de pierrot
\n\t\t\t\t\t2 place du test
\n\t\t\t\t\t75001 Paris
\n\t\t\t\t\tFrance
\n\n\t\t\t\t
\n\n\n\t\t\t\t\n\n\t\t\t\t\tFacture n° FACT_234000253\n\n\n\t\t\t\t
\n\t\t\t\t
\n\n\n\t\t\t\t\n\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\n\t\t\t\t
Date de facture: 16/04/2023 Date échéance : 16/04/2023
\n\n\t\t\t\t\n\t\t\t\t\tOrigine : MySy_00NQNX\n\t\t\t\t\n\n\t\t\t\t
 
\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t
DescriptionQuantitéPrix unitaireMontant
Gold19090.0
\n\t\t\t\t\n\n\t\t\t\t
 
\n\n\t\t\t\n\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t
    Montant HT: 90.0
    TVA 20% : 18.0
    Montant TTC : 108.0
\n\n\n\t\t\t
\n\t\t\t
 
\n\t\t\t
 
\n\t\t\t
 
\n\n\n\n\t\t\n\n\t\n\t
\n\t
\n\t\t\n\n\t\t\t

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

\n\t\t\n\t
\n\n\n' + dest = <_io.BufferedRandom name='./Invoices/invoice_FACT_234000253.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): 0x594b970 +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_234000253.pdf', 'wb') +DEBUG:paramiko.transport.sftp:[chan 0] open(b'/var/www/html/sftp_iexercice/mysy_invoices_dev/invoice_FACT_234000253.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_234000253.pdf') +INFO:root:2023-04-16 17:42:57.403042 : convertHtmlToPdf DEPLACEMENT DE ./Invoices/invoice_FACT_234000253.pdf VERS /var/www/html/sftp_iexercice/mysy_invoices_dev/invoice_FACT_234000253.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-16 17:42:57.405077 : Impression facture N° FACT_234000253 OK +INFO:root:2023-04-16 17:42:57.432096 : UpdataPartnerRankingClass - Le RANKING de 4 ont été mise à jour avec la valeur {'display_rank': '30', 'date_update': '2023-04-16 17:42:57.419770'} +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:42:57] "POST /myclass/api/createOrder/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:42:57.591657 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:42:58] "POST /myclass/api/Check_MySy_LMS_Account/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:43:27.293250 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:43:27.300042 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:43:27.304575 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:43:27] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:43:27.316571 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:43:27.325229 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:43:27] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:43:27] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:43:27] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:43:28.387149 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:43:28] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:55:40.448880 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:55:40.452946 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:55:40] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:55:40.460403 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:55:40.468345 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:55:40.475022 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:55:40] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:55:40] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:55:40] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:55:41.292763 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:55:41] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:55:45.193660 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:55:45.199229 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:55:45.204798 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:55:45] "POST /myclass/api/get_List_domaine_formation/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:55:47] "POST /myclass/api/Get_Suggested_Fr_Cities/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:55:47.147092 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:55:47] "POST /myclass/api/Get_Suggested_Word/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:55:47.224495 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:55:47] "POST /myclass/api/get_all_class/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:55:47.636517 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:55:47.641813 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:55:47.646793 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:55:47] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:55:47] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:55:47.654595 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:55:47] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:55:47.660156 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:55:47.664151 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:55:47] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:55:47.672129 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:55:47] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:55:47.677523 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:55:47] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:55:47.684536 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:55:47] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:55:47.689349 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:55:47] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:55:47] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:55:47.699430 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:55:47.701949 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:55:47.708426 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:55:47] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:55:47.716142 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:55:47] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:55:47] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:55:47] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:55:47.723290 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 17:55:47.727322 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:55:47] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:55:47.737151 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:55:47] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:55:47.742674 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:55:47] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:55:47.749638 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:55:47] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-16 17:55:47.758190 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:55:47] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:55:47] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 17:55:47] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-16 18:05:30.375380 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 18:05:30.379115 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 18:05:30.382134 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 18:05:30] "POST /myclass/api/get_List_domaine_formation/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 18:05:30] "POST /myclass/api/Get_Suggested_Fr_Cities/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 18:05:30] "POST /myclass/api/Get_Suggested_Word/ HTTP/1.1" 200 - +INFO:root:2023-04-16 18:05:31.413660 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 18:05:31.416752 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 18:05:31] "POST /myclass/api/get_all_class/ HTTP/1.1" 200 - +INFO:root:2023-04-16 18:05:31.894291 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 18:05:31.899458 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 18:05:31] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-16 18:05:31.906666 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 18:05:31] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-16 18:05:31.912876 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 18:05:31] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-16 18:05:31.919451 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 18:05:31.925113 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 18:05:31] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 18:05:31] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-16 18:05:31.933921 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 18:05:31] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-16 18:05:31.939291 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 18:05:31.943677 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 18:05:31.949561 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 18:05:31] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-16 18:05:31.956853 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 18:05:31] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-16 18:05:31.965380 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 18:05:31] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 18:05:31] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-16 18:05:31.974055 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 18:05:31] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-16 18:05:31.979441 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 18:05:31] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-16 18:05:31.989107 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 18:05:31] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-16 18:05:31.994851 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 18:05:32] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 18:05:32] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-16 18:05:32.003902 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 18:05:32] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 18:05:32] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-16 18:05:32.018241 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 18:05:32.019262 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 18:05:32.024770 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 18:05:32] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 18:05:32] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 18:05:32] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-16 18:05:32.368335 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 18:05:32.374744 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 18:05:32.379243 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 18:05:32] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-04-16 18:05:32.386719 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-16 18:05:32.395127 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 18:05:32] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 18:05:32] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 18:05:32] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-04-16 18:05:33.273833 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [16/Apr/2023 18:05:33] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-04-20 14:13:08.133228 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-04-20 14:13:08.133228 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-04-20 14:13:08.133228 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-04-20 14:13:08.133228 : ++ FLASK PORT 5001 ++ +INFO:werkzeug:WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead. + * Running on http://localhost:5001 +INFO:werkzeug:Press CTRL+C to quit +INFO:werkzeug: * Restarting with stat +INFO:root:2023-04-20 14:13:17.973008 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-04-20 14:13:17.973008 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-04-20 14:13:17.973008 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-04-20 14:13:17.973008 : ++ FLASK PORT 5001 ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 229-221-900 +INFO:root:2023-04-20 14:16:25.846054 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-20 14:16:25.847115 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-20 14:16:25.848105 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 14:16:25] "POST /myclass/api/get_List_domaine_formation/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 14:16:25] "POST /myclass/api/Get_Suggested_Fr_Cities/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 14:16:26] "POST /myclass/api/Get_Suggested_Word/ HTTP/1.1" 200 - +INFO:root:2023-04-20 14:16:26.778383 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-20 14:16:26.780460 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 14:16:26] "POST /myclass/api/get_all_class/ HTTP/1.1" 200 - +INFO:root:2023-04-20 14:16:27.529946 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-20 14:16:27.533765 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-20 14:16:27.537541 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 14:16:27] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-20 14:16:27.541885 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 14:16:27] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 14:16:27] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-20 14:16:27.546245 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-20 14:16:27.549591 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 14:16:27] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-20 14:16:27.557110 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 14:16:27] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 14:16:27] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-20 14:16:27.562407 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 14:16:27] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-20 14:16:27.567405 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-20 14:16:27.570452 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 14:16:27] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 14:16:27] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-20 14:16:27.574475 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 14:16:27] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-20 14:16:27.579995 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-20 14:16:27.582222 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 14:16:27] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 14:16:27] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-20 14:16:27.589711 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 14:16:27] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-20 14:16:27.593863 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-20 14:16:27.597046 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 14:16:27] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 14:16:27] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-20 14:16:27.603630 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 14:16:27] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 14:16:27] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-04-20 14:16:27.609748 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-20 14:16:27.613620 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-20 14:16:27.616640 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 14:16:27] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 14:16:27] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 14:16:27] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-04-20 14:16:36.449468 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-20 14:16:37.461608 : partner_login Connexion partnair mysylaplumedepierrot@gmail.com : OK, Date : 2023-04-20 14:16:36.450488 , _id = 63e8f2745d4b4085b83f3aec +INFO:root:2023-04-20 14:16:37.466685 : partner_login Connexion partener_token : OK , _id = 63e8f2c17b7f1fbbc5ee9419 +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 14:16:37] "POST /myclass/api/partner_login/ HTTP/1.1" 200 - +INFO:root:2023-04-20 14:16:37.660546 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-20 14:16:37.664564 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 14:16:37] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-04-20 14:16:37.669554 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-20 14:16:37.672558 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-20 14:16:37.679192 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 14:16:37] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 14:16:37] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 14:16:37] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-04-20 14:16:37.967575 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 14:16:37] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-04-20 14:25:56.362768 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-20 14:25:56.367407 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 14:25:56] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-04-20 14:25:56.373340 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-20 14:25:56.378791 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-20 14:25:56.384796 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 14:25:56] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 14:25:56] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 14:25:56] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-04-20 14:26:26.590230 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-20 14:26:26.593735 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-20 14:26:26.598272 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 14:26:26] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-04-20 14:26:26.605643 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-20 14:26:26.610524 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 14:26:26] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 14:26:26] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 14:26:26] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:root:2023-04-20 14:29:25.720565 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-20 14:29:25.726435 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-20 14:29:25.730850 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 14:29:25] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-04-20 14:29:25.737889 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-20 14:29:25.745082 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 14:29:25] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 14:29:25] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 14:29:25] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-04-20 14:29:26.511202 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 14:29:26] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-04-20 14:29:28.306573 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-20 14:29:28.310482 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-20 14:29:28.314482 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-20 14:29:28.318752 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 14:29:28] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 14:29:28] "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_sIM1aVW82GM5Ot message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 14:29:28] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 - +INFO:root:2023-04-20 14:29:28.784258 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-20 14:29:28.792271 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 14:29:28] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:root:2023-04-20 14:35:51.400479 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-20 14:35:51.404497 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 14:35:51] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-04-20 14:35:51.417107 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 14:35:51] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:root:2023-04-20 14:35:51.421111 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-20 14:35:51.427110 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 14:35:51] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 14:35:51] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:root:2023-04-20 14:35:51.485583 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 14:35:51] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-04-20 14:37:21.061551 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-20 14:37:21.065466 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-20 14:37:21.068381 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-20 14:37:21.074949 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 14:37:21] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 14:37:21] "POST /myclass/api/get_product_service/ HTTP/1.1" 200 - +INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/customers/cus_NLMwePQlYvgJeA/payment_methods?type=card +DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=type=card +INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/customers/cus_NLMwePQlYvgJeA/payment_methods?type=card response_code=200 +DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "pm_1MagEkAbmaEugrFT5drJGGgS",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": "la plume de pierrot",\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": "pass"\n },\n "country": "IE",\n "exp_month": 12,\n "exp_year": 2023,\n "fingerprint": "HS92xLRWsDeuSLhN",\n "funding": "credit",\n "generated_from": null,\n "last4": "3220",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1676210942,\n "customer": "cus_NLMwePQlYvgJeA",\n "livemode": false,\n "metadata": {},\n "type": "card"\n }\n ],\n "has_more": false,\n "url": "/v1/customers/cus_NLMwePQlYvgJeA/payment_methods"\n}' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_zVC5b2jQQ6wOUQ message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 14:37:21] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 - +INFO:root:2023-04-20 14:37:21.477154 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-20 14:37:21.484293 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 14:37:21] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:root:2023-04-20 14:40:04.174092 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-20 14:40:04.177440 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-20 14:40:04.180483 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-20 14:40:04.186686 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 14:40:04] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 14:40:04] "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_R5J9aDCSBlocik message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 14:40:04] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 - +INFO:root:2023-04-20 14:40:04.504818 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-20 14:40:04.509934 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 14:40:04] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:root:2023-04-20 14:40:50.599330 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-20 14:40:50.601339 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-20 14:40:50.605338 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-20 14:40:50.610000 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 14:40:50] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 14:40:50] "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_BUCsxzmh372XrX message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 14:40:50] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 - +INFO:root:2023-04-20 14:40:50.924383 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-20 14:40:50.930117 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 14:40:50] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:root:2023-04-20 14:44:35.489860 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-20 14:44:35.494124 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-20 14:44:35.497125 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 14:44:35] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-04-20 14:44:35.500138 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-20 14:44:35.505138 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 14:44:35] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 14:44:35] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 14:44:35] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-04-20 14:44:36.615477 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 14:44:36] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-04-20 14:46:26.866710 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-20 14:46:26.871011 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-20 14:46:26.873696 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 14:46:26] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 14:46:26] "POST /myclass/api/GetAllValideSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 14:46:26] "POST /myclass/api/get_partner_class/ 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-20 15:30:54.952515 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-04-20 15:30:54.952515 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-04-20 15:30:54.953514 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-04-20 15:30:54.953514 : ++ FLASK PORT 5001 ++ +INFO:werkzeug:WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead. + * Running on http://localhost:5001 +INFO:werkzeug:Press CTRL+C to quit +INFO:werkzeug: * Restarting with stat +INFO:root:2023-04-20 15:31:05.601433 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-04-20 15:31:05.602438 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-04-20 15:31:05.602438 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-04-20 15:31:05.602438 : ++ FLASK PORT 5001 ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 229-221-900 +INFO:root:2023-04-20 15:31:47.733791 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 15:31:47] "POST /myclass/api/Get_Lms_Themes HTTP/1.1" 308 - +INFO:root:2023-04-20 15:31:47.742065 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 15:31:47] "POST /myclass/api/Get_Lms_Themes/ 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-20 15:32:37.012728 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-04-20 15:32:37.012728 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-04-20 15:32:37.012728 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-04-20 15:32:37.013718 : ++ FLASK PORT 5001 ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 229-221-900 +INFO:root:2023-04-20 15:32:42.383019 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 15:32:42] "POST /myclass/api/Get_Lms_Themes HTTP/1.1" 308 - +INFO:root:2023-04-20 15:32:42.390119 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-20 15:32:43.089504 : Get_Lms_Themes -'_id' - Line : 2246 +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 15:32:43] "POST /myclass/api/Get_Lms_Themes/ 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-20 15:33:33.342383 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-04-20 15:33:33.343384 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-04-20 15:33:33.343384 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-04-20 15:33:33.343384 : ++ FLASK PORT 5001 ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 229-221-900 +INFO:root:2023-04-20 15:33:33.381793 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 15:33:33] "POST /myclass/api/Get_Lms_Themes HTTP/1.1" 308 - +INFO:root:2023-04-20 15:33:33.388316 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 15:33:33] "POST /myclass/api/Get_Lms_Themes/ HTTP/1.1" 200 - +INFO:root:2023-04-20 15:39:20.125058 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-20 15:39:20.128494 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-20 15:39:20.132768 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 15:39:20] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-04-20 15:39:20.139006 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-20 15:39:20.147849 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 15:39:20] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 15:39:20] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 15:39:20] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-04-20 15:39:21.169424 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 15:39:21] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-04-20 15:39:41.605276 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-20 15:39:41.608513 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-20 15:39:41.613155 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 15:39:41] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-04-20 15:39:41.617944 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-04-20 15:39:41.622721 : Connexion du partner recid = 62f24843a09cde3b34017eb343c5955ac56df5ea04635be1ca OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 15:39:41] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 15:39:41] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 15:39:41] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-04-20 15:39:42.200556 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 15:39:42] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-04-20 15:39:43.736517 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 15:39:43] "POST /myclass/api/Get_Lms_Themes/ HTTP/1.1" 200 - +INFO:root:2023-04-20 15:39:51.113172 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 15:39:51] "POST /myclass/api/Get_Lms_Themes/ HTTP/1.1" 200 - +INFO:root:2023-04-20 15:40:10.906273 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 15:40:10] "POST /myclass/api/Get_Lms_Themes/ HTTP/1.1" 200 - +INFO:root:2023-04-20 15:40:49.206674 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 15:40:49] "POST /myclass/api/Get_Lms_Themes/ HTTP/1.1" 200 - +INFO:root:2023-04-20 15:41:56.471594 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 15:41:56] "POST /myclass/api/Get_Lms_Themes/ HTTP/1.1" 200 - +INFO:root:2023-04-20 15:42:00.561149 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 15:42:00] "POST /myclass/api/Get_Lms_Themes/ HTTP/1.1" 200 - +INFO:root:2023-04-20 15:42:20.365203 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [20/Apr/2023 15:42:20] "POST /myclass/api/Get_Lms_Themes/ HTTP/1.1" 200 - diff --git a/lms_chamilo/mysy_lms.py b/lms_chamilo/mysy_lms.py index 3c3d120..0bcf565 100644 --- a/lms_chamilo/mysy_lms.py +++ b/lms_chamilo/mysy_lms.py @@ -2206,4 +2206,54 @@ def LMS_Create_VirtualHost(diction): except Exception as e: exc_type, exc_obj, exc_tb = sys.exc_info() mycommon.myprint(str(inspect.stack()[0][3]) + " -" + str(e) + " - Line : " + str(exc_tb.tb_lineno)) - return False, " Impossible de créer une url (virtualhost) ", False, False \ No newline at end of file + return False, " Impossible de créer une url (virtualhost) ", False, False + + +""" +Cette fonction retourne les theme du LMS. +Cela permettra à une personne de choisir le theme qu'il souhaite pour son +espace +""" +def Get_Lms_Themes(diction): + try: + + """ + Verification de la liste des champs obligatoires + """ + 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 de recuperer la liste des themes LMS " + + # Recuperation du recid du partner + mytoken = "" + if ("token" in diction.keys()): + if diction['token']: + mytoken = diction['token'] + + partner_recid = mycommon.get_parnter_recid_from_token(mytoken) + if (partner_recid is False): + mycommon.myprint(str(inspect.stack()[0][3]) + " Impossible de recuperer la liste themes LMS (2)") + return False, "Impossible de recuperer la liste themes LMS (2) " + + RetObject = [] + local_cpt = 0 + for ret_val in MYSY_GV.dbname['lms_theme'].find( + {"$or": [{"partner_recid": str(partner_recid), "valide": "1"}, + {"partner_recid": 'default', "valide": "1"}]}): + if (ret_val and ret_val['_id']): + RetObject.append(mycommon.JSONEncoder().encode(ret_val)) + local_cpt = local_cpt + 1 + + if (local_cpt == 0): + mycommon.myprint(str(inspect.stack()[0][3]) + " Aucun theme LMS trouvé ") + return False, " Aucun theme LMS trouvé " + + return True, RetObject + + except Exception as e: + exc_type, exc_obj, exc_tb = sys.exc_info() + mycommon.myprint(str(inspect.stack()[0][3]) + " -" + str(e) + " - Line : " + str(exc_tb.tb_lineno)) + return False, " Impossible de recuperer les themes LMS " diff --git a/main.py b/main.py index 211d6a5..952bfee 100644 --- a/main.py +++ b/main.py @@ -2837,6 +2837,19 @@ def LMS_Create_VirtualHost(): return jsonify(status=localStatus, message=message, virtualHost_Id= virtualHost_Id, full_url=full_url) +""" +API qui permet de recuperer les theme lms pour permettre à l'utilisateur +de configurer le theme qu'il souhaite +""" +@app.route('/myclass/api/Get_Lms_Themes/', methods=['POST','GET']) +@crossdomain(origin='*') +def Get_Lms_Themes(): + # On recupere le corps (payload) de la requete + payload = request.form.to_dict() + print(" ### Get_Lms_Themes : payload = ",payload) + localStatus, message = mysy_lms.Get_Lms_Themes(payload) + return jsonify(status=localStatus, message=message) + if __name__ == '__main__': print(" debut api")