Crash with MMM-Pronote
-
Hello,
Happy to inaugurate your forum.
I have a problem with your Pronote module.
If you prefer that I post on another forum or that I open an issue, say me.school gave me this link :
https://lycees.netocentre.fr but i use the link and CAS given by your wiki :
“ent.netocentre.fr” et “ac-orleans-tours”.When i run MM, i have this message on screen :
“MMM-Pronote crash” and after many second “erreur…aucune données”and this in the console :
[28.01.2021 10:04.59.100] [ERROR] [PRONOTE] API Error Error: Invalid IV length; got 0 bytes and expected 16 bytes.
at transformIV (/home/pi/MagicMirror/modules/MMM-Pronote/node_modules/@bugsounet/pronote-api/node_modules/node-forge/lib/cipherModes.js:973:11)
at modes.cbc.start (/home/pi/MagicMirror/modules/MMM-Pronote/node_modules/@bugsounet/pronote-api/node_modules/node-forge/lib/cipherModes.js:122:16)
at forge.cipher.BlockCipher.BlockCipher.start (/home/pi/MagicMirror/modules/MMM-Pronote/node_modules/@bugsounet/pronote-api/node_modules/node-forge/lib/cipher.js:158:13)
at createCipher (/home/pi/MagicMirror/modules/MMM-Pronote/node_modules/@bugsounet/pronote-api/src/cipher.js:73:12)
at cipher (/home/pi/MagicMirror/modules/MMM-Pronote/node_modules/@bugsounet/pronote-api/src/cipher.js:21:20)
at request (/home/pi/MagicMirror/modules/MMM-Pronote/node_modules/@bugsounet/pronote-api/src/request.js:11:19)
at getParams (/home/pi/MagicMirror/modules/MMM-Pronote/node_modules/@bugsounet/pronote-api/src/fetch/pronote/params.js:10:39)
at login (/home/pi/MagicMirror/modules/MMM-Pronote/node_modules/@bugsounet/pronote-api/src/auth.js:33:28)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async Class.login (/home/pi/MagicMirror/modules/MMM-Pronote/node_helper.js:110:16)the link “ent.netocentre.fr” display this message on the top page :
Si vous obtenez cette page cela signifie soit que vous n’accédez pas à l’ENT par le bon lien, soit que vous n’avez pas correctement été redirigé !So i try this link, “ent.netocentre.fr/cas/login”, the display page is ent portal, it’s better nut same result.
Maybe the problem is the login mode, it’s a educonnect login.
If you can help me, i’m a newbie
Thanks
-
It’s a connection problem.
Someone has the same problem, he has open an issue on github Pronote-API…
Litarvan is working on the problem.
My CAS must be integrated. -
I thanks for the report,
sorry, I have not following the Litarvan repo since a couple of time. (and contribuate too)
I will see to update and since with it soon.
The code is actually not the same@Litarvan //@bugsounet
(not compatible my MagicMirror)
That’s why i recode for MMM-Pronote usage -
bugsounet