Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android

The mystery of the ghostly Parse server exception that crashes Android Ribbit app on sending video over wifi.

I am literally minutes away from finishing the Android course. I have managed to progress through all the material and am able to follow all the videos (even when they don't make sense at first) but I have been plagued by an error to which i cannot seem to find the cause of. I am able to do everything 'as advertised' except send video over wi-fi. It works over Edge or 3G but not wi-fi.

I have tweaked the app in terms of design but the core code is essentially the same as presented in the video. Something is happening between the 'send' method in RecipientsActivity and the callback from the Parse in the contained 'send' method that crashes the app. Logcat reports no error whatsoever. I have sent the code to another forum member who has tested it and says it works fine but I am still getting this error.

When I place a breakpoint in the 'send' method on the callback's null check I am able to get the message to the backend but no notification is received and the app is unable to continue after receiving the callback data(which I confirmed is present and correct through the debugger).

I am guessing it's maybe a timeout from the Parse server, thing is it seems to happen consistently only with wi-fi.

I am ready to send the package for inspection but is anyone else having this issue? I tried to solve it by using saveEventually instead of saveInBackground when sending the main message but that doesn't seem to function at all.

Hmm... that's strange. I have a few ideas on what this could be but, would you be able to send an apk file and post it on here and I'll see if I can reproduce it on my network so that I can rule some things out?

Thanks in advance and hope I can help out :)