question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Attempting to get messages crashes

See original GitHub issue

I am trying to use the following code:

try
{
    List<Thing> messages0 = await redditService.User.GetUnreadMessages().ToList();
    List<PrivateMessage> messages = await redditService.User.GetPrivateMessages().ToList();
}
catch (Exception ex)
{

}

Both lines cause the program (Console app) to immediately quit without being caught by the “catch” block. Any idea what could be causing this? Some debugging shows me that it’s specifically the ToList() call of each line but I’m not sure how to debug more than that.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
derekantricancommented, Dec 11, 2019

@CrustyJew currently on vacation but will get back to you next week

0reactions
derekantricancommented, Dec 18, 2019

Ok, I am seeing the correct results now by changing return type to Task and adding a .Wait() in the Main method. Can confirm that I am getting messages back now! Thanks for all the tips!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Messages app keeps crashing
Press and quickly release Volume UP button · Press and quickly release Volume DOWN button · Press and Hold the SIDE button until...
Read more >
How To Fix Android Messages Keeps Crashing
Fix #4: Clear the inbox. At times, a full inbox can make the messaging app to crash. Make sure that your SMS app...
Read more >
How to fix Messages app keeps crashing and freezing on ...
Messages app keeps crashing on iPhone? try these fixes, 1. Force quit Messages app, 2. Restart iPhone, 3. Delete Messages automatically...
Read more >
How to Solve iPhone Messages App Keeping Crashing
The Messages app becomes frozen on the iPhone may be due to the caches problem. In this case, it is advised that you...
Read more >
How to Fix Messages App Keeps Crashing on Samsung ...
The software on your Galaxy S8 might have been outdated. 2. The caches or data of your Messages app have been corrupted and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found