ValueError: invalid literal for int() with base 10: ” by tzwickl · Pull Request #768 · sivel/speedtest-cli
Posted by jpluimers on 2024/11/22
Somehow this post missed the schedule and for a long time I forgot to properly checked for “missed schedule” posts.
Back in 2021, suddenly systems with speedtest-cli threw a [Wayback/Archive] ValueError: invalid literal for int() with base 10: ” by tzwickl · Pull Request #768 · sivel/speedtest-cli after accessing the speedtest.net servers.
Around 7-8 April, 2021 the speedtest.net/speedtest-config.php XML configuration suddenly had changed the value for the XPath expression /settings/server-config/@ignoreids from being a list of integers into empty, see the archived files below.
- https://web.archive.org/web/20210802090707/https://www.speedtest.net/speedtest-config.php (with XML file at https://web.archive.org/web/20210802090707if_/https://www.speedtest.net/speedtest-config.php)
ignoreids - https://web.archive.org/web/20210224111048/http://speedtest.net/speedtest-config.php (with XML file at https://web.archive.org/web/20210224111048if_/https://www.speedtest.net/speedtest-config.php)
ignoreids="1525,1716,1758,1762,1816,1834,1839,1840,1850,1854,1859,1860,1861,1871,1873,1875,1880,1902,1913,3280,3448,3695,3696,3697,3698,3699,3725,3726,3727,3728,3729,3730,3731,3733,3788,4140,4533,5085,5086,5087,5894,6130,6285,6397,6398,6412,7326,7334,7529,8591,9123,9466,9816,10221,10226,10556,10557,10558,10561,10562,10563,10564,10565,10566,10567,10901,10923,11201,11736,11737,11792,12688,12689,12861,12862,12863,13362,14209,14445,14446,14448,14804,14805,14806,14807,14808,14809,14810,14811,14812,14813,14814,14880,14881,14882,14883,14884,14908,14909,14910,14911,14946,14981,14982,14983,14984,14985,15012,15030,15034,15035,15036,15037,15079,15080,15081,15115,15181,15182,15262,15316,15359,15668,15845,15949,15950,15951,15952,15953,15954,15955,15956,15957,16030,16136,16275,16340,949,5249"
I plausible reason could be that as of that moment, speedtest.net has moved servers to be ignored out of www.speedtest.net/speedtest-servers.php, maybe to protect the servers to be ignored from being accessed at all.
The fix was at [Wayback/Archive] Handle case where ignoreids is empty or contains empty ids · sivel/speedtest-cli@cadc68b and included in speedtest-cli 2.1.3.
I had to manually apply it so some systems, because during cancer treatment their update mechanism. This was easy given the small diff.
Via
- [Wayback/Archive] “speedtest-cli” “ValueError: invalid literal for int() with base 10: ”” – Recherche Google
- [Wayback/Archive] testing – speedtest-cli: ValueError: invalid literal for int() with base 10: ” – Unix & Linux Stack Exchange [Wayback/Archive] Ole Tange for asking and [Wayback/Archive] mwfearnley for answering.
Related:
- [Wayback/Archive] ValueError: invalid literal for int() with base 10: ” by tzwickl · Pull Request #768 · sivel/speedtest-cli
- [Wayback/Archive] ValueError: invalid literal for int() with base 10: ” by 21e06 · Pull Request #769 · sivel/speedtest-cli
–jeroen






Leave a comment