rackslab / Slurm-web

Open source web dashboard for Slurm HPC clusters
https://slurm-web.com
GNU General Public License v3.0
340 stars 97 forks source link

`AttributeError: module 'requests.exceptions' has no attribute 'JSONDecodeError'` on Requests < 2.26 #391

Closed rezib closed 1 week ago

rezib commented 1 week ago

This exception has notably been reported in https://github.com/rackslab/Slurm-web/discussions/389#discussioncomment-11236080 and https://github.com/rackslab/Slurm-web/discussions/384#discussion-7447675.

rezib commented 1 week ago

Bug successfully reproduced in CI: https://github.com/rackslab/Slurm-web/actions/runs/11814207784/job/32912811617?pr=392#step:8:176

rezib commented 1 week ago

For reference, see Requests issue https://github.com/psf/requests/issues/5794 fixed by PR https://github.com/psf/requests/pull/5856 merged in https://github.com/psf/requests/commit/db575eeedcfdb03bf31285afd3033e301df8b685 landed in Requests v2.27.