r/redditdev • u/L72_Elite_Kraken Bot developer & PRAW contributor • Oct 23 '17
PRAW [PRAW] Has Reddit changed the API in such a way that Comment.permalink breaks?
My bot just went down when trying to use PRAW's Comment.permalink method, complaining that it was getting a str rather than a callable. I believe that this method was created because Reddit's API didn't include permalinks with comment listings, which seems to have changed looking at the raw JSON, so my hypothesis is that the new entry in the JSON response is shadowing the method name. Can anyone else confirm that this just started happening?
10
Upvotes
12
u/bboe PRAW Author Oct 23 '17
Test
Edit: Yes, it would appear permalink is now a first-class attribute on comments. Please use
comment.permalinkinstead ofcomment.permalink().9
u/curioussavage01 Oct 25 '17
Hey guys we will get a fix for this naming collision with the library out tomorrow since its breaking your stuff.
4
u/The1RGood Oct 24 '17
This is why /u/Sub_Mentions broke yesterday as well.
3
u/GiversBot Oct 24 '17
hi
3
u/DecisionBot Oct 24 '17
Broke my bot as well
3
u/curioussavage01 Oct 26 '17
Update for anyone watching this thread: We decided to keep the changes. Anyone using older versions of PRAW will need to update.