Closed ghost closed 5 years ago
Thanks for the detailed bug report!
This is your problem: rtv==1.14.1
. The Debian stable package is sadly out of date and Reddit has since made breaking changes to their API which broke old versions of rtv.
Thanks for the quick reply. I guess the only question then is whether the stack trace can be replaced with a message that says "error: your version is no longer aligned with the API". It was able to render the landing page but broke when an article was selected.
Normally, bad HTTP responses like 4xx and 5xx are handled more gracefully. This was a special case because reddit started returning a new field that conflicted with one of the built-in methods in praw and inadvertently broke the library in an unexpected way. Without swallowing all unknown exceptions there's not much that could have been done.
The error msg "attribute error" had me thinking that it was an attribute in the config file that was a problem, because knowing the Debian is often behind and the fact that --copy-config
may be grabbing the latest config I thought it was a misalignment. If it had said "API attribute error" that would have been more clear. I'm not sure if that would have the same complication you mention.
(edit) Looks like this bug has kept rtv in an unusable state for over a year: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=884632
It was marked as fixed a month ago but it's still not. Any idea why Stretch still has an old version @noahfx?
The backports version of rtv is also 1.14.1.
Hi @libBletchley
Currently Stretch has an old version, the fix never got into stretch neither backports, sorry about this. Since Stretch is in its final cycle, I will not update the package at this time.
I have prepared a new package working on stretch, you can download it here: https://people.debian.org/~josue/debian/rtv/rtv_1.25.1+dfsg-1+bpo_all.deb
I have uploaded the fix to the Stretch backports: https://ftp-master.debian.org/new/rtv_1.25.1+dfsg-1~bpo9+1.html Currently it is in an approval queue, should be accepted in the next days.
Sorry for the inconvenience
Thanks!
Thank you! It's available in the backports now.
Describe the bug Simply launched for the first time, not logged in, hit right arrow on an arbitrary article, and it crashed:
Describe your environment I installed on Debian stretch this way:
Then I ran:
which lead me to run:
Made no cfg changes. Ran this to launch a normal session for the first time:
FYI,
firejail --net=tornet..
sandboxes the app and forces all network connections through a Tor middlebox. The--whitelist=*
restricts rtf to only getting write permission in the directory holding the config file. The same crash happens even if I remove the--whitelist=*
parameter to loosen permissions, so that's not related.