From 4886ad1b2255eab5bebb06ae63db52731480c816 Mon Sep 17 00:00:00 2001 From: cherif Date: Thu, 30 Mar 2023 22:12:01 +0200 Subject: [PATCH] 30/03/23 - 22h11 --- .idea/workspace.xml | 16 +- Log/log_file.log | 503 ++++++++++++++++++++++++++++++++++++++++ lms_chamilo/mysy_lms.py | 2 + strype_payement.py | 2 +- 4 files changed, 518 insertions(+), 5 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 8d70d80..79d9619 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -1,10 +1,11 @@ - + + @@ -407,7 +415,6 @@ - @@ -432,6 +439,7 @@ - \ No newline at end of file diff --git a/Log/log_file.log b/Log/log_file.log index e482661..fadbef4 100644 --- a/Log/log_file.log +++ b/Log/log_file.log @@ -1548008,3 +1548008,506 @@ INFO:werkzeug:127.0.0.1 - - [30/Mar/2023 19:43:53] "POST /myclass/api/get_partne INFO:werkzeug:127.0.0.1 - - [30/Mar/2023 19:43:53] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - INFO:root:2023-03-30 19:43:54.786357 : Security check : IP adresse '127.0.0.1' connected INFO:werkzeug:127.0.0.1 - - [30/Mar/2023 19:43:54] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +DEBUG:filelock:Attempting to acquire lock 1491005763728 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Lock 1491005763728 acquired on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:validate_email.domainlist_check:(Re)loading blacklist from C:\Users\cheri\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\venv\Lib\site-packages\validate_email\data\blacklist.txt +DEBUG:filelock:Attempting to release lock 1491005763728 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Lock 1491005763728 released on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:validate_email.updater:Starting optional update of built-in blacklist. +DEBUG:filelock:Attempting to acquire lock 1491005833808 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Lock 1491005833808 acquired on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:validate_email.updater:Checking https://raw.githubusercontent.com/disposable-email-domains/disposable-email-domains/master/disposable_email_blocklist.conf +INFO:root:2023-03-30 21:42:46.387629 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-03-30 21:42:46.388625 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-03-30 21:42:46.388625 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-03-30 21:42:46.388625 : ++ 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 +DEBUG:validate_email.updater:Local file is fresh enough (same ETag). +DEBUG:filelock:Attempting to release lock 1491005833808 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Lock 1491005833808 released on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Attempting to acquire lock 1491005834128 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Lock 1491005834128 acquired on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:validate_email.domainlist_check:(Re)loading blacklist from C:\Users\cheri\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\venv\Lib\site-packages\validate_email\data\blacklist.txt +DEBUG:filelock:Attempting to release lock 1491005834128 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Lock 1491005834128 released on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Attempting to acquire lock 1880903021264 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Lock 1880903021264 acquired on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:validate_email.domainlist_check:(Re)loading blacklist from C:\Users\cheri\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\venv\Lib\site-packages\validate_email\data\blacklist.txt +DEBUG:filelock:Attempting to release lock 1880903021264 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Lock 1880903021264 released on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:validate_email.updater:Starting optional update of built-in blacklist. +DEBUG:filelock:Attempting to acquire lock 1880903022224 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Lock 1880903022224 acquired on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:validate_email.updater:Checking https://raw.githubusercontent.com/disposable-email-domains/disposable-email-domains/master/disposable_email_blocklist.conf +INFO:root:2023-03-30 21:43:01.832054 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-03-30 21:43:01.832054 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-03-30 21:43:01.832054 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-03-30 21:43:01.832054 : ++ FLASK PORT 5001 ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 127-713-359 +DEBUG:validate_email.updater:Local file is fresh enough (same ETag). +DEBUG:filelock:Attempting to release lock 1880903022224 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Lock 1880903022224 released on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Attempting to acquire lock 1880569861200 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Lock 1880569861200 acquired on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:validate_email.domainlist_check:(Re)loading blacklist from C:\Users\cheri\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\venv\Lib\site-packages\validate_email\data\blacklist.txt +DEBUG:filelock:Attempting to release lock 1880569861200 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Lock 1880569861200 released on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +INFO:werkzeug: * Detected change in 'C:\\Users\\cheri\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\lms_chamilo\\mysy_lms.py', reloading +INFO:werkzeug: * Restarting with stat +DEBUG:filelock:Attempting to acquire lock 1502295781328 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Lock 1502295781328 acquired on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:validate_email.domainlist_check:(Re)loading blacklist from C:\Users\cheri\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\venv\Lib\site-packages\validate_email\data\blacklist.txt +DEBUG:filelock:Attempting to release lock 1502295781328 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Lock 1502295781328 released on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:validate_email.updater:Starting optional update of built-in blacklist. +DEBUG:filelock:Attempting to acquire lock 1502295782288 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Lock 1502295782288 acquired on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:validate_email.updater:Checking https://raw.githubusercontent.com/disposable-email-domains/disposable-email-domains/master/disposable_email_blocklist.conf +INFO:root:2023-03-30 21:53:26.999645 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-03-30 21:53:26.999645 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-03-30 21:53:26.999645 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-03-30 21:53:26.999645 : ++ FLASK PORT 5001 ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 127-713-359 +DEBUG:validate_email.updater:Local file is fresh enough (same ETag). +DEBUG:filelock:Attempting to release lock 1502295782288 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Lock 1502295782288 released on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Attempting to acquire lock 1502289872720 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Lock 1502289872720 acquired on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:validate_email.domainlist_check:(Re)loading blacklist from C:\Users\cheri\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\venv\Lib\site-packages\validate_email\data\blacklist.txt +DEBUG:filelock:Attempting to release lock 1502289872720 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Lock 1502289872720 released on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +INFO:werkzeug: * Detected change in 'C:\\Users\\cheri\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\lms_chamilo\\mysy_lms.py', reloading +INFO:werkzeug: * Restarting with stat +DEBUG:filelock:Attempting to acquire lock 1756835507216 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Lock 1756835507216 acquired on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:validate_email.domainlist_check:(Re)loading blacklist from C:\Users\cheri\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\venv\Lib\site-packages\validate_email\data\blacklist.txt +DEBUG:filelock:Attempting to release lock 1756835507216 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Lock 1756835507216 released on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:validate_email.updater:Starting optional update of built-in blacklist. +DEBUG:filelock:Attempting to acquire lock 1756835508688 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Lock 1756835508688 acquired on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:validate_email.updater:Checking https://raw.githubusercontent.com/disposable-email-domains/disposable-email-domains/master/disposable_email_blocklist.conf +INFO:root:2023-03-30 21:55:14.081142 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-03-30 21:55:14.081142 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-03-30 21:55:14.081142 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-03-30 21:55:14.081142 : ++ FLASK PORT 5001 ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 127-713-359 +DEBUG:validate_email.updater:Local file is fresh enough (same ETag). +DEBUG:filelock:Attempting to release lock 1756835508688 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Lock 1756835508688 released on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Attempting to acquire lock 1756835508496 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Lock 1756835508496 acquired on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:validate_email.domainlist_check:(Re)loading blacklist from C:\Users\cheri\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\venv\Lib\site-packages\validate_email\data\blacklist.txt +DEBUG:filelock:Attempting to release lock 1756835508496 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Lock 1756835508496 released on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +INFO:root:2023-03-30 21:58:59.827432 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-03-30 21:58:59.829432 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-03-30 21:58:59.830954 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Mar/2023 21:58:59] "POST /myclass/api/get_List_domaine_formation/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Mar/2023 21:58:59] "POST /myclass/api/Get_Suggested_Fr_Cities/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Mar/2023 21:59:00] "POST /myclass/api/Get_Suggested_Word/ HTTP/1.1" 200 - +INFO:root:2023-03-30 21:59:00.899241 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-03-30 21:59:00.902241 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Mar/2023 21:59:01] "POST /myclass/api/get_all_class/ HTTP/1.1" 200 - +INFO:root:2023-03-30 21:59:01.545051 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-03-30 21:59:01.549061 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Mar/2023 21:59:01] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-03-30 21:59:01.553057 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-03-30 21:59:01.557058 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Mar/2023 21:59:01] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Mar/2023 21:59:01] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-03-30 21:59:01.563054 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-03-30 21:59:01.567059 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Mar/2023 21:59:01] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-03-30 21:59:01.571060 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Mar/2023 21:59:01] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-03-30 21:59:01.576052 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Mar/2023 21:59:01] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Mar/2023 21:59:01] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-03-30 21:59:01.584078 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Mar/2023 21:59:01] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-03-30 21:59:01.592080 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-03-30 21:59:01.593603 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Mar/2023 21:59:01] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-03-30 21:59:01.598623 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Mar/2023 21:59:01] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Mar/2023 21:59:01] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-03-30 21:59:01.605637 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-03-30 21:59:01.609621 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Mar/2023 21:59:01] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-03-30 21:59:01.614634 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-03-30 21:59:01.617634 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Mar/2023 21:59:01] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Mar/2023 21:59:01] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-03-30 21:59:01.621659 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Mar/2023 21:59:01] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-03-30 21:59:01.624663 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Mar/2023 21:59:01] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Mar/2023 21:59:01] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-03-30 21:59:01.633180 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Mar/2023 21:59:01] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-03-30 21:59:01.637197 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Mar/2023 21:59:01] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Mar/2023 21:59:01] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-03-30 21:59:08.386248 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-03-30 21:59:09.414928 : partner_login Impossible de se connecter - Partner +INFO:werkzeug:127.0.0.1 - - [30/Mar/2023 21:59:09] "POST /myclass/api/partner_login/ HTTP/1.1" 200 - +INFO:root:2023-03-30 21:59:43.804143 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-03-30 21:59:43.813154 : partner_login Connexion partnair contact@mysy-training.com : OK, Date : 2023-03-30 21:59:43.805160 , _id = 641c21666cad03956ab28252 +INFO:root:2023-03-30 21:59:43.819166 : partner_login Connexion partener_token : OK , _id = 641c23520d5d7f136a823b3c +INFO:werkzeug:127.0.0.1 - - [30/Mar/2023 21:59:43] "POST /myclass/api/partner_login/ HTTP/1.1" 200 - +INFO:root:2023-03-30 21:59:44.162931 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-03-30 21:59:44.167922 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Mar/2023 21:59:44] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-03-30 21:59:44.173929 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-03-30 21:59:44.180493 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-03-30 21:59:44.187491 : Connexion du partner recid = 8a77c1642a21a9a417a8583f4ef7f2f9c174a99996abb4c63a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [30/Mar/2023 21:59:44] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Mar/2023 21:59:44] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-03-30 21:59:44.200520 : LMS_Get_Partner_Data -'mysy_lms_user_id' - Line : 1788 +INFO:werkzeug:127.0.0.1 - - [30/Mar/2023 21:59:44] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:root:2023-03-30 21:59:44.523527 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Mar/2023 21:59:44] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-03-30 21:59:53.846572 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-03-30 21:59:53.849556 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-03-30 21:59:53.854537 : Connexion du partner recid = 8a77c1642a21a9a417a8583f4ef7f2f9c174a99996abb4c63a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [30/Mar/2023 21:59:53] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/customers/cus_NZuiEjjPZ6CP06/payment_methods?type=card +DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=type=card +INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/customers/cus_NZuiEjjPZ6CP06/payment_methods?type=card response_code=200 +DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "pm_1Mol8jAbmaEugrFTZg2P5ePQ",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": "mysy demo",\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": "pass"\n },\n "country": "US",\n "exp_month": 12,\n "exp_year": 2023,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1679566381,\n "customer": "cus_NZuiEjjPZ6CP06",\n "livemode": false,\n "metadata": {},\n "type": "card"\n }\n ],\n "has_more": false,\n "url": "/v1/customers/cus_NZuiEjjPZ6CP06/payment_methods"\n}' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_K3k03XslLjFHn5 message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [30/Mar/2023 21:59:54] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 - +INFO:root:2023-03-30 21:59:59.366830 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-03-30 21:59:59.371198 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-03-30 21:59:59.375304 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-03-30 21:59:59.381296 : Connexion du partner recid = 8a77c1642a21a9a417a8583f4ef7f2f9c174a99996abb4c63a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [30/Mar/2023 21:59:59] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/customers/cus_NZuiEjjPZ6CP06/payment_methods?type=card +DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=type=card +INFO:werkzeug:127.0.0.1 - - [30/Mar/2023 21:59:59] "POST /myclass/api/get_product_service/ HTTP/1.1" 200 - +INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/customers/cus_NZuiEjjPZ6CP06/payment_methods?type=card response_code=200 +DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "pm_1Mol8jAbmaEugrFTZg2P5ePQ",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": "mysy demo",\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": "pass"\n },\n "country": "US",\n "exp_month": 12,\n "exp_year": 2023,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1679566381,\n "customer": "cus_NZuiEjjPZ6CP06",\n "livemode": false,\n "metadata": {},\n "type": "card"\n }\n ],\n "has_more": false,\n "url": "/v1/customers/cus_NZuiEjjPZ6CP06/payment_methods"\n}' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_cQxiPU4kJMVGOF message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [30/Mar/2023 22:00:00] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 - +INFO:root:2023-03-30 22:00:00.804388 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-03-30 22:00:00.811395 : Connexion du partner recid = 8a77c1642a21a9a417a8583f4ef7f2f9c174a99996abb4c63a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [30/Mar/2023 22:00:00] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:root:2023-03-30 22:00:13.323133 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-03-30 22:00:13.327376 : Security check : IP adresse '127.0.0.1' connected +INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/subscriptions/sub_1MolBgAbmaEugrFTOiroBxMJ +DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data= +INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/subscriptions/sub_1MolBgAbmaEugrFTOiroBxMJ response_code=200 +DEBUG:stripe:body='{\n "id": "sub_1MolBgAbmaEugrFTOiroBxMJ",\n "object": "subscription",\n "application": null,\n "application_fee_percent": null,\n "automatic_tax": {\n "enabled": false\n },\n "billing_cycle_anchor": 1679566564,\n "billing_thresholds": null,\n "cancel_at": null,\n "cancel_at_period_end": false,\n "canceled_at": null,\n "cancellation_details": {\n "comment": null,\n "feedback": null,\n "reason": null\n },\n "collection_method": "charge_automatically",\n "created": 1679566564,\n "currency": "eur",\n "current_period_end": 1682244964,\n "current_period_start": 1679566564,\n "customer": "cus_NZuiEjjPZ6CP06",\n "days_until_due": null,\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "ended_at": null,\n "items": {\n "object": "list",\n "data": [\n {\n "id": "si_NZv1jqWdZAlFeU",\n "object": "subscription_item",\n "billing_thresholds": null,\n "created": 1679566564,\n "metadata": {},\n "plan": {\n "id": "price_1MT3FmAbmaEugrFTZ5vyJRcZ",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 9000,\n "amount_decimal": "9000",\n "billing_scheme": "per_unit",\n "created": 1674392794,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ6dS05BjL1cLl",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FmAbmaEugrFTZ5vyJRcZ",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392794,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ6dS05BjL1cLl",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "exclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 9000,\n "unit_amount_decimal": "9000"\n },\n "quantity": 6,\n "subscription": "sub_1MolBgAbmaEugrFTOiroBxMJ",\n "tax_rates": []\n }\n ],\n "has_more": false,\n "total_count": 1,\n "url": "/v1/subscription_items?subscription=sub_1MolBgAbmaEugrFTOiroBxMJ"\n },\n "latest_invoice": "in_1MolBgAbmaEugrFTDL0rDnV2",\n "livemode": false,\n "metadata": {},\n "next_pending_invoice_item_invoice": null,\n "on_behalf_of": null,\n "pause_collection": null,\n "payment_settings": {\n "payment_method_options": null,\n "payment_method_types": null,\n "save_default_payment_method": "off"\n },\n "pending_invoice_item_interval": null,\n "pending_setup_intent": null,\n "pending_update": null,\n "plan": {\n "id": "price_1MT3FmAbmaEugrFTZ5vyJRcZ",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 9000,\n "amount_decimal": "9000",\n "billing_scheme": "per_unit",\n "created": 1674392794,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ6dS05BjL1cLl",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "quantity": 6,\n "schedule": null,\n "start_date": 1679566564,\n "status": "active",\n "test_clock": null,\n "transfer_data": null,\n "trial_end": null,\n "trial_settings": {\n "end_behavior": {\n "missing_payment_method": "create_invoice"\n }\n },\n "trial_start": null\n}' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_AaCUsKSU9f8tvg message='Dashboard link for request' +INFO:stripe:message='Request to Stripe api' method=post path=https://api.stripe.com/v1/subscriptions/sub_1MolBgAbmaEugrFTOiroBxMJ +DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=proration_behavior=create_prorations&items[0][id]=si_NZv1jqWdZAlFeU&items[0][price]=price_1MT3FLAbmaEugrFTDgw7MVgb&items[0][quantity]=7 +INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/subscriptions/sub_1MolBgAbmaEugrFTOiroBxMJ response_code=200 +DEBUG:stripe:body='{\n "id": "sub_1MolBgAbmaEugrFTOiroBxMJ",\n "object": "subscription",\n "application": null,\n "application_fee_percent": null,\n "automatic_tax": {\n "enabled": false\n },\n "billing_cycle_anchor": 1679566564,\n "billing_thresholds": null,\n "cancel_at": null,\n "cancel_at_period_end": false,\n "canceled_at": null,\n "cancellation_details": {\n "comment": null,\n "feedback": null,\n "reason": null\n },\n "collection_method": "charge_automatically",\n "created": 1679566564,\n "currency": "eur",\n "current_period_end": 1682244964,\n "current_period_start": 1679566564,\n "customer": "cus_NZuiEjjPZ6CP06",\n "days_until_due": null,\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "ended_at": null,\n "items": {\n "object": "list",\n "data": [\n {\n "id": "si_NZv1jqWdZAlFeU",\n "object": "subscription_item",\n "billing_thresholds": null,\n "created": 1679566564,\n "metadata": {},\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "quantity": 7,\n "subscription": "sub_1MolBgAbmaEugrFTOiroBxMJ",\n "tax_rates": []\n }\n ],\n "has_more": false,\n "total_count": 1,\n "url": "/v1/subscription_items?subscription=sub_1MolBgAbmaEugrFTOiroBxMJ"\n },\n "latest_invoice": "in_1MolBgAbmaEugrFTDL0rDnV2",\n "livemode": false,\n "metadata": {},\n "next_pending_invoice_item_invoice": null,\n "on_behalf_of": null,\n "pause_collection": null,\n "payment_settings": {\n "payment_method_options": null,\n "payment_method_types": null,\n "save_default_payment_method": "off"\n },\n "pending_invoice_item_interval": null,\n "pending_setup_intent": null,\n "pending_update": null,\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "quantity": 7,\n "schedule": null,\n "start_date": 1679566564,\n "status": "active",\n "test_clock": null,\n "transfer_data": null,\n "trial_end": null,\n "trial_settings": {\n "end_behavior": {\n "missing_payment_method": "create_invoice"\n }\n },\n "trial_start": null\n}' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_TZrRA9JJo3DsxX message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [30/Mar/2023 22:00:17] "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\tMySy Demo 2303
\n\t\t\t\t\t2 place du test
\n\t\t\t\t\t75001 Paris
\n\t\t\t\t\tFrane
\n\n\t\t\t\t
\n\n\n\t\t\t\t\n\n\t\t\t\t\tFacture n° FACT_233000216\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: 30/03/2023 Date échéance : 30/03/2023
\n\n\t\t\t\t\n\t\t\t\t\tOrigine : MySy_00CBmE\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
Standard750350.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: 350.0
    TVA 20% : 70.0
    Montant TTC : 420.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_233000216.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\\cheri\\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): 0xb92b110 +DEBUG:paramiko.transport:Local version/idstring: SSH-2.0-paramiko_2.12.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_233000216.pdf', 'wb') +DEBUG:paramiko.transport.sftp:[chan 0] open(b'/var/www/html/sftp_iexercice/mysy_invoices_dev/invoice_FACT_233000216.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_233000216.pdf') +INFO:root:2023-03-30 22:00:23.965692 : convertHtmlToPdf DEPLACEMENT DE ./Invoices/invoice_FACT_233000216.pdf VERS /var/www/html/sftp_iexercice/mysy_invoices_dev/invoice_FACT_233000216.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-03-30 22:00:23.968700 : Impression facture N° FACT_233000216 OK +INFO:root:2023-03-30 22:00:24.018275 : UpdataPartnerRankingClass - Le RANKING de 3 ont été mise à jour avec la valeur {'display_rank': '20', 'date_update': '2023-03-30 22:00:23.982268'} +INFO:werkzeug:127.0.0.1 - - [30/Mar/2023 22:00:24] "POST /myclass/api/createOrder/ HTTP/1.1" 200 - +INFO:root:2023-03-30 22:00:24.537099 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Mar/2023 22:00:25] "POST /myclass/api/Check_MySy_LMS_Account/ HTTP/1.1" 200 - +INFO:root:2023-03-30 22:00:31.875378 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-03-30 22:00:31.879373 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Mar/2023 22:00:31] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-03-30 22:00:31.883378 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-03-30 22:00:31.888568 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-03-30 22:00:31.890564 : Connexion du partner recid = 8a77c1642a21a9a417a8583f4ef7f2f9c174a99996abb4c63a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [30/Mar/2023 22:00:31] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Mar/2023 22:00:31] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Mar/2023 22:00:31] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:root:2023-03-30 22:00:32.513913 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Mar/2023 22:00:32] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:werkzeug: * Detected change in 'C:\\Users\\cheri\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\strype_payement.py', reloading +INFO:werkzeug: * Restarting with stat +DEBUG:filelock:Attempting to acquire lock 1566651084624 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Lock 1566651084624 acquired on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:validate_email.domainlist_check:(Re)loading blacklist from C:\Users\cheri\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\venv\Lib\site-packages\validate_email\data\blacklist.txt +DEBUG:filelock:Attempting to release lock 1566651084624 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Lock 1566651084624 released on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:validate_email.updater:Starting optional update of built-in blacklist. +DEBUG:filelock:Attempting to acquire lock 1566651086096 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Lock 1566651086096 acquired on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:validate_email.updater:Checking https://raw.githubusercontent.com/disposable-email-domains/disposable-email-domains/master/disposable_email_blocklist.conf +INFO:root:2023-03-30 22:06:49.732161 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-03-30 22:06:49.732161 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-03-30 22:06:49.733161 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-03-30 22:06:49.733161 : ++ FLASK PORT 5001 ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 127-713-359 +DEBUG:validate_email.updater:Local file is fresh enough (same ETag). +DEBUG:filelock:Attempting to release lock 1566651086096 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Lock 1566651086096 released on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Attempting to acquire lock 1566651086288 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Lock 1566651086288 acquired on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:validate_email.domainlist_check:(Re)loading blacklist from C:\Users\cheri\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\venv\Lib\site-packages\validate_email\data\blacklist.txt +DEBUG:filelock:Attempting to release lock 1566651086288 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Lock 1566651086288 released on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +INFO:root:2023-03-30 22:09:37.160736 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-03-30 22:09:37.164749 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-03-30 22:09:37.167747 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-03-30 22:09:37.171748 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Mar/2023 22:09:37] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-03-30 22:09:37.180274 : Connexion du partner recid = 8a77c1642a21a9a417a8583f4ef7f2f9c174a99996abb4c63a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [30/Mar/2023 22:09:37] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Mar/2023 22:09:37] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-03-30 22:09:38.110175 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Mar/2023 22:09:38] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-03-30 22:09:38.570374 : LMS_Get_Partner_Data -'mysy_lms_user_id' - Line : 1788 +INFO:werkzeug:127.0.0.1 - - [30/Mar/2023 22:09:38] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:root:2023-03-30 22:09:42.025894 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-03-30 22:09:42.028909 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-03-30 22:09:42.034903 : Connexion du partner recid = 8a77c1642a21a9a417a8583f4ef7f2f9c174a99996abb4c63a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [30/Mar/2023 22:09:42] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/customers/cus_NZuiEjjPZ6CP06/payment_methods?type=card +DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=type=card +INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/customers/cus_NZuiEjjPZ6CP06/payment_methods?type=card response_code=200 +DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "pm_1Mol8jAbmaEugrFTZg2P5ePQ",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": "mysy demo",\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": "pass"\n },\n "country": "US",\n "exp_month": 12,\n "exp_year": 2023,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1679566381,\n "customer": "cus_NZuiEjjPZ6CP06",\n "livemode": false,\n "metadata": {},\n "type": "card"\n }\n ],\n "has_more": false,\n "url": "/v1/customers/cus_NZuiEjjPZ6CP06/payment_methods"\n}' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_SglfnRHi2QPlhv message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [30/Mar/2023 22:09:43] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 - +INFO:root:2023-03-30 22:09:53.880200 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-03-30 22:09:53.883510 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-03-30 22:09:53.888800 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-03-30 22:09:53.895792 : Connexion du partner recid = 8a77c1642a21a9a417a8583f4ef7f2f9c174a99996abb4c63a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [30/Mar/2023 22:09:53] "POST /myclass/api/get_product_service/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Mar/2023 22:09:53] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/customers/cus_NZuiEjjPZ6CP06/payment_methods?type=card +DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=type=card +INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/customers/cus_NZuiEjjPZ6CP06/payment_methods?type=card response_code=200 +DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "pm_1Mol8jAbmaEugrFTZg2P5ePQ",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": "mysy demo",\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": "pass"\n },\n "country": "US",\n "exp_month": 12,\n "exp_year": 2023,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1679566381,\n "customer": "cus_NZuiEjjPZ6CP06",\n "livemode": false,\n "metadata": {},\n "type": "card"\n }\n ],\n "has_more": false,\n "url": "/v1/customers/cus_NZuiEjjPZ6CP06/payment_methods"\n}' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_hNGBuKLTRL9JwK message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [30/Mar/2023 22:09:54] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 - +INFO:root:2023-03-30 22:09:54.539351 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-03-30 22:09:54.546343 : Connexion du partner recid = 8a77c1642a21a9a417a8583f4ef7f2f9c174a99996abb4c63a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [30/Mar/2023 22:09:54] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:root:2023-03-30 22:10:02.117811 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-03-30 22:10:02.122778 : Security check : IP adresse '127.0.0.1' connected +INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/subscriptions/sub_1MolBgAbmaEugrFTOiroBxMJ +DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data= +INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/subscriptions/sub_1MolBgAbmaEugrFTOiroBxMJ response_code=200 +DEBUG:stripe:body='{\n "id": "sub_1MolBgAbmaEugrFTOiroBxMJ",\n "object": "subscription",\n "application": null,\n "application_fee_percent": null,\n "automatic_tax": {\n "enabled": false\n },\n "billing_cycle_anchor": 1679566564,\n "billing_thresholds": null,\n "cancel_at": null,\n "cancel_at_period_end": false,\n "canceled_at": null,\n "cancellation_details": {\n "comment": null,\n "feedback": null,\n "reason": null\n },\n "collection_method": "charge_automatically",\n "created": 1679566564,\n "currency": "eur",\n "current_period_end": 1682244964,\n "current_period_start": 1679566564,\n "customer": "cus_NZuiEjjPZ6CP06",\n "days_until_due": null,\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "ended_at": null,\n "items": {\n "object": "list",\n "data": [\n {\n "id": "si_NZv1jqWdZAlFeU",\n "object": "subscription_item",\n "billing_thresholds": null,\n "created": 1679566564,\n "metadata": {},\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "inclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 5000,\n "unit_amount_decimal": "5000"\n },\n "quantity": 7,\n "subscription": "sub_1MolBgAbmaEugrFTOiroBxMJ",\n "tax_rates": []\n }\n ],\n "has_more": false,\n "total_count": 1,\n "url": "/v1/subscription_items?subscription=sub_1MolBgAbmaEugrFTOiroBxMJ"\n },\n "latest_invoice": "in_1MolBgAbmaEugrFTDL0rDnV2",\n "livemode": false,\n "metadata": {},\n "next_pending_invoice_item_invoice": null,\n "on_behalf_of": null,\n "pause_collection": null,\n "payment_settings": {\n "payment_method_options": null,\n "payment_method_types": null,\n "save_default_payment_method": "off"\n },\n "pending_invoice_item_interval": null,\n "pending_setup_intent": null,\n "pending_update": null,\n "plan": {\n "id": "price_1MT3FLAbmaEugrFTDgw7MVgb",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 5000,\n "amount_decimal": "5000",\n "billing_scheme": "per_unit",\n "created": 1674392767,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "quantity": 7,\n "schedule": null,\n "start_date": 1679566564,\n "status": "active",\n "test_clock": null,\n "transfer_data": null,\n "trial_end": null,\n "trial_settings": {\n "end_behavior": {\n "missing_payment_method": "create_invoice"\n }\n },\n "trial_start": null\n}' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_7RGYuTja78nkk1 message='Dashboard link for request' +INFO:stripe:message='Request to Stripe api' method=post path=https://api.stripe.com/v1/subscriptions/sub_1MolBgAbmaEugrFTOiroBxMJ +DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=proration_behavior=create_prorations&items[0][id]=si_NZv1jqWdZAlFeU&items[0][price]=price_1MT3FmAbmaEugrFTZ5vyJRcZ&items[0][quantity]=4 +INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/subscriptions/sub_1MolBgAbmaEugrFTOiroBxMJ response_code=200 +DEBUG:stripe:body='{\n "id": "sub_1MolBgAbmaEugrFTOiroBxMJ",\n "object": "subscription",\n "application": null,\n "application_fee_percent": null,\n "automatic_tax": {\n "enabled": false\n },\n "billing_cycle_anchor": 1679566564,\n "billing_thresholds": null,\n "cancel_at": null,\n "cancel_at_period_end": false,\n "canceled_at": null,\n "cancellation_details": {\n "comment": null,\n "feedback": null,\n "reason": null\n },\n "collection_method": "charge_automatically",\n "created": 1679566564,\n "currency": "eur",\n "current_period_end": 1682244964,\n "current_period_start": 1679566564,\n "customer": "cus_NZuiEjjPZ6CP06",\n "days_until_due": null,\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "ended_at": null,\n "items": {\n "object": "list",\n "data": [\n {\n "id": "si_NZv1jqWdZAlFeU",\n "object": "subscription_item",\n "billing_thresholds": null,\n "created": 1679566564,\n "metadata": {},\n "plan": {\n "id": "price_1MT3FmAbmaEugrFTZ5vyJRcZ",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 9000,\n "amount_decimal": "9000",\n "billing_scheme": "per_unit",\n "created": 1674392794,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ6dS05BjL1cLl",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1MT3FmAbmaEugrFTZ5vyJRcZ",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1674392794,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ6dS05BjL1cLl",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "exclusive",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 9000,\n "unit_amount_decimal": "9000"\n },\n "quantity": 4,\n "subscription": "sub_1MolBgAbmaEugrFTOiroBxMJ",\n "tax_rates": []\n }\n ],\n "has_more": false,\n "total_count": 1,\n "url": "/v1/subscription_items?subscription=sub_1MolBgAbmaEugrFTOiroBxMJ"\n },\n "latest_invoice": "in_1MolBgAbmaEugrFTDL0rDnV2",\n "livemode": false,\n "metadata": {},\n "next_pending_invoice_item_invoice": null,\n "on_behalf_of": null,\n "pause_collection": null,\n "payment_settings": {\n "payment_method_options": null,\n "payment_method_types": null,\n "save_default_payment_method": "off"\n },\n "pending_invoice_item_interval": null,\n "pending_setup_intent": null,\n "pending_update": null,\n "plan": {\n "id": "price_1MT3FmAbmaEugrFTZ5vyJRcZ",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 9000,\n "amount_decimal": "9000",\n "billing_scheme": "per_unit",\n "created": 1674392794,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ6dS05BjL1cLl",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "quantity": 4,\n "schedule": null,\n "start_date": 1679566564,\n "status": "active",\n "test_clock": null,\n "transfer_data": null,\n "trial_end": null,\n "trial_settings": {\n "end_behavior": {\n "missing_payment_method": "create_invoice"\n }\n },\n "trial_start": null\n}' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_XWElKNwY7Y1cri message='Dashboard link for request' +DEBUG:xhtml2pdf:pisaDocument options: + src = '\n\n\n\n\t
\n\t\tMysy Training Logo \n\t
\n\t\n\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t\t
\n\t\t\t\t\n\t\t\t\t\tMySy Demo 2303
\n\t\t\t\t\t2 place du test
\n\t\t\t\t\t75001 Paris
\n\t\t\t\t\tFrane
\n\n\t\t\t\t
\n\n\n\t\t\t\t\n\n\t\t\t\t\tFacture n° FACT_233000217\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: 30/03/2023 Date échéance : 30/03/2023
\n\n\t\t\t\t\n\t\t\t\t\tOrigine : MySy_00iJeK\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
Gold490360.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: 360.0
    TVA 20% : 72.0
    Montant TTC : 432.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_233000217.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\\cheri\\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 +INFO:werkzeug:127.0.0.1 - - [30/Mar/2023 22:10:04] "POST /myclass/api/strip_update_subscription_plan/ HTTP/1.1" 200 - +DEBUG:paramiko.transport:starting thread (client mode): 0xc494db10 +DEBUG:paramiko.transport:Local version/idstring: SSH-2.0-paramiko_2.12.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_233000217.pdf', 'wb') +DEBUG:paramiko.transport.sftp:[chan 0] open(b'/var/www/html/sftp_iexercice/mysy_invoices_dev/invoice_FACT_233000217.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_233000217.pdf') +INFO:root:2023-03-30 22:10:09.283635 : convertHtmlToPdf DEPLACEMENT DE ./Invoices/invoice_FACT_233000217.pdf VERS /var/www/html/sftp_iexercice/mysy_invoices_dev/invoice_FACT_233000217.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-03-30 22:10:09.284711 : Impression facture N° FACT_233000217 OK +INFO:root:2023-03-30 22:10:09.309635 : UpdataPartnerRankingClass - Le RANKING de 3 ont été mise à jour avec la valeur {'display_rank': '30', 'date_update': '2023-03-30 22:10:09.291632'} +INFO:werkzeug:127.0.0.1 - - [30/Mar/2023 22:10:09] "POST /myclass/api/createOrder/ HTTP/1.1" 200 - +INFO:root:2023-03-30 22:10:09.441031 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Mar/2023 22:10:09] "POST /myclass/api/Check_MySy_LMS_Account/ HTTP/1.1" 200 - +INFO:root:2023-03-30 22:10:17.470381 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-03-30 22:10:17.475376 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Mar/2023 22:10:17] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-03-30 22:10:17.480378 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-03-30 22:10:17.485376 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-03-30 22:10:17.490373 : Connexion du partner recid = 8a77c1642a21a9a417a8583f4ef7f2f9c174a99996abb4c63a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [30/Mar/2023 22:10:17] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Mar/2023 22:10:17] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [30/Mar/2023 22:10:17] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-03-30 22:10:18.267756 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [30/Mar/2023 22:10:18] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - diff --git a/lms_chamilo/mysy_lms.py b/lms_chamilo/mysy_lms.py index 64c8eae..8ef7fd3 100644 --- a/lms_chamilo/mysy_lms.py +++ b/lms_chamilo/mysy_lms.py @@ -188,6 +188,7 @@ def Create_MySy_LMS_User(diction): hashed_pwd) + "', " \ "enabled='1', " \ "expired='0', " \ + "mysy_recid='"+str(partner_recid)+"', " \ "locked = '0', " \ "auth_source = 'platform'," \ "roles = 'a:0:{}', " \ @@ -208,6 +209,7 @@ def Create_MySy_LMS_User(diction): "lastname = '"+lastname+"', " \ "firstname = '"+firstname+"', " \ "username = '"+username+"', " \ + "mysy_recid='" + str(partner_recid) + "', " \ "salt = '"+str(salt)+"'," \ " registration_date = '"+registration_date+"'," \ " credentials_expired='0', " \ diff --git a/strype_payement.py b/strype_payement.py index 22a339c..2cf6227 100644 --- a/strype_payement.py +++ b/strype_payement.py @@ -991,7 +991,7 @@ def strip_update_subscription_plan(diction): partners_nom = local_ret_val['nom'] partners_pack_service = local_ret_val['pack_service'] - local_ret_val = email_mgt.EmailChangeAbonnementPlan( partners_email, partners_pack_service, partners_nom, qty, ) + local_ret_val = email_mgt.EmailChangeAbonnementPlan( partners_email, pack, partners_nom, qty, ) if( local_ret_val is False): mycommon.myprint(