Closed bdbogjoe closed 2 months ago
was working fine during more than 4 hours, and then it is crashing
Hi, yeah fixed. Client refreshes after qrcode_login should now work. The problem is that the client needs to log in again during the refresh, so credentials exported with client.export_credentials()
will not work (they are used up by the refresh).
I recommend using client.session_check()
which will return True
if the client has refreshed. You can then re-export and save the new credentials.
I know this kinda sucks, but that's just how pronote works.
you are magic, thanks a lot, waiting for release then ;)
i'm using your great lib to build rest api to access to pronote. : https://github.com/bdbogjoe/pronote-rest
I was able last year to use it with username/password, but now i'm not able to use it any more with ENT auvergne rhone alpes, then i decided to switch to QR login. I'm able to login and get any content. At startup i login with QR info, then keeping the new username/password for next login if i restart the server. But after some time i have one error:
I tried to add cron job and login every 5 min, but i have same issue, it looks like the connection expired, and then i cannot use the last password any more. Do you have any suggestion to avoid this "Unknown error from pronote: 13 | La page a expiré !"