-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improving user feedback for track uploading errors #870
Comments
Hey @cdhiraj40. Yes, you're right. In parts, the PR adresses this issue. However, it only focusses on the internet connection problem. A proper handling of other error types is still pending. So, I think it's ok to leave both issues open. |
yes I totally agree, I will look into the issue and see why it's not working, thanks :) |
@SebaDro I think its happening cause here
its throwing
the reason this keeps on getting printed
detailed version :
and the NullPointerException is coming because (not sure)
in the file src/org/envirocar/app/handler/agreement/AgreementManager.java |
Yes, I noticed the enviroCar-app/org.envirocar.app/src/org/envirocar/app/handler/agreement/AgreementManager.java Lines 119 to 139 in 98403d7
It seems, there are some implementions missing for the CacheTermsOfUseDAO. However, I don't think there is a necessity to check the terms of use, if there is no internet. I'd prefer a "fail fast" solution e.g. checking internet connection and showing an error dialog without trying to upload a track. |
I think I did try that in #857, maybe we can make functions for particular errors and use it? |
Have been fixed in parts with #874. However, the app still does not inform the user about the cause for a failing track upload. |
@SebaDro sir is this issue from the server side? if not then we can try handling one by one and check why its not working properly |
I'm not sure if the server responds with a meaningful error message for each track. First step would be to debug the app and analyze the exceptions. |
Description
If an error occurs during upload of all local tracks, the user does not get a proper feedback about the reason for the upload failure. The error message just shows "An error occurred during the upload process.". A more meaningful message text would be necessary to assess if the failure is effected by a misuse of the app, an app error or a server failure. In addition, the error is not logged, thus it does not appear within the log report.
Branches
master, develop
How to reproduce
Record a small track with and finish recording. Go to the LocalTrackFragment, turn off internet and click the button for uploading all tracks => the app shows "An error occurred during the upload process."
How to fix
Adjust error handling here:
enviroCar-app/org.envirocar.app/src/org/envirocar/app/views/tracklist/TrackListLocalCardFragment.java
Lines 530 to 536 in 98403d7
Add error logging and enhance the error handling. Maybe, distinguishing the error type such as for single track upload errors would be useful:
enviroCar-app/org.envirocar.app/src/org/envirocar/app/views/tracklist/TrackListLocalCardFragment.java
Lines 390 to 418 in 98403d7
The text was updated successfully, but these errors were encountered: