You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you run the test suite frequently, the Reddit API may throttle you since you are making many requests in a relatively short period of time. Even though it follows the one request per two second rule, the requests are very repetitive and the Reddit API does not like that.
This is still an issue though, because a NullPointerException is not an acceptable way to handle this scenario. I think the most sensible place to handle this scenario is when we parse the JSON message in RedditJsonParser
If you could get a copy of the JSON response that you recieve from the API and post it in this issue, that would be excellent.
Running the testsuite results in periodic failures of the below kind.
T E S T S
Running TestSuite
Tests run: 11, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 64.591 sec <<< FAILURE! - in TestSuite
commentAndDelete(com.cd.reddit.RedditTest) Time elapsed: 0.308 sec <<< FAILURE!
java.lang.NullPointerException: null
at com.cd.reddit.RedditTest.commentAndDelete(RedditTest.java:279)
Results :
Failed tests:
RedditTest.commentAndDelete:279 NullPointer
Tests run: 11, Failures: 1, Errors: 0, Skipped: 0
The text was updated successfully, but these errors were encountered: