sirkris / Reddit.NET

A Reddit API library for .NET Standard with OAuth support. Written in C#.
MIT License
508 stars 78 forks source link

RedditTests.BaseTests.CheckBadRequest fails to parse request data #161

Closed sirkris closed 2 years ago

sirkris commented 2 years ago

On line 158, it looks like I have it trying to parse the "res" key in the return JSON. However, debugging reveals that key does not exist, which suggests that the API was updated and this is causing the logic to break.

This failure is causing the RedditTests.ModelTests.WorkflowTests.MultisTests.CreateAndDestroy test retry to fail because the multi it's trying to create already exists from a previous failed test. When this happens, it's supposed to automatically delete the old one and re-create it. However, this JSON change is causing that to break.

Need to debug and figure out where they moved it to in the JSON return.

sirkris commented 2 years ago

Updated and merged into 1.6.