Skip to content
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.

No error handling on feedback sending #129

Open
ShirleyNekoDev opened this issue Feb 20, 2020 · 0 comments
Open

No error handling on feedback sending #129

ShirleyNekoDev opened this issue Feb 20, 2020 · 0 comments

Comments

@ShirleyNekoDev
Copy link

gRPC error got swallowed.
Maybe feedback should be cached and queued for later retries?

E/flutter ( 7619): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception:
E/flutter ( 7619):
E/flutter ( 7619):
E/flutter ( 7619):
E/flutter ( 7619):
E/flutter ( 7619): #0      Scaffold.of (package:flutter/src/material/scaffold.dart:1410)
E/flutter ( 7619): #1      _FeedbackDialogState._onSent.<anonymous closure> (package:hpi_flutter/feedback/widgets/feedback_dialog.dart:170)
E/flutter ( 7619): #2      State.setState (package:flutter/src/widgets/framework.dart:1233)
E/flutter ( 7619): #3      _FeedbackDialogState._onSent (package:hpi_flutter/feedback/widgets/feedback_dialog.dart:168)
E/flutter ( 7619): #4      _FeedbackDialogState._send.<anonymous closure>.<anonymous closure> (package:hpi_flutter/feedback/widgets/feedback_dialog.dart:159)
E/flutter ( 7619): #5      _rootRunUnary (dart:async/zone.dart:1134)
E/flutter ( 7619): #6      _CustomZone.runUnary (dart:async/zone.dart:1031)
E/flutter ( 7619): #7      _FutureListener.handleError (dart:async/future_impl.dart:158)
E/flutter ( 7619): #8      Future._propagateToListeners.handleError (dart:async/future_impl.dart:694)
E/flutter ( 7619): #9      Future._propagateToListeners (dart:async/future_impl.dart:715)
E/flutter ( 7619): #10     Future._completeWithValue (dart:async/future_impl.dart:526)
E/flutter ( 7619): #11     Future._asyncComplete.<anonymous closure> (dart:async/future_impl.dart:556)
E/flutter ( 7619): #12     _rootRun (dart:async/zone.dart:1126)
E/flutter ( 7619): #13     _CustomZone.run (dart:async/zone.dart:1023)
E/flutter ( 7619): #14     _CustomZone.runGuarded (dart:async/zone.dart:925)
E/flutter ( 7619): #15     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:965)
E/flutter ( 7619): #16     _microtaskLoop (dart:async/schedule_microtask.dart:43)
E/flutter ( 7619): #17     _startMicrotaskLoop (dart:async/schedule_microtask.dart:52)
E/flutter ( 7619):
E/flutter ( 7619): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: gRPC Error (14, Error connecting: SocketException: OS Error: Connection refused, errno = 111, address = 172.20.20.6, port = 37298)
E/flutter ( 7619): null
I/flutter ( 7619): 
I/flutter ( 7619): 
I/flutter ( 7619):
I/flutter ( 7619): 
E/flutter ( 7619): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception:
E/flutter ( 7619):
E/flutter ( 7619):
E/flutter ( 7619):
E/flutter ( 7619): 
E/flutter ( 7619): #0      Scaffold.of (package:flutter/src/material/scaffold.dart:1410)
E/flutter ( 7619): #1      _FeedbackDialogState._onSent.<anonymous closure> (package:hpi_flutter/feedback/widgets/feedback_dialog.dart:170)
E/flutter ( 7619): #2      State.setState (package:flutter/src/widgets/framework.dart:1233)
E/flutter ( 7619): #3      _FeedbackDialogState._onSent (package:hpi_flutter/feedback/widgets/feedback_dialog.dart:168)
E/flutter ( 7619): #4      _FeedbackDialogState._send.<anonymous closure>.<anonymous closure> (package:hpi_flutter/feedback/widgets/feedback_dialog.dart:159)
E/flutter ( 7619): #5      _rootRunUnary (dart:async/zone.dart:1134)
E/flutter ( 7619): #6      _CustomZone.runUnary (dart:async/zone.dart:1031)
E/flutter ( 7619): #7      _FutureListener.handleError (dart:async/future_impl.dart:158)
E/flutter ( 7619): #8      Future._propagateToListeners.handleError (dart:async/future_impl.dart:694)
E/flutter ( 7619): #9      Future._propagateToListeners (dart:async/future_impl.dart:715)
E/flutter ( 7619): #10     Future._completeWithValue (dart:async/future_impl.dart:526)
E/flutter ( 7619): #11     Future._asyncComplete.<anonymous closure> (dart:async/future_impl.dart:556)
E/flutter ( 7619): #12     _rootRun (dart:async/zone.dart:1126)
E/flutter ( 7619): #13     _CustomZone.run (dart:async/zone.dart:1023)
E/flutter ( 7619): #14     _CustomZone.runGuarded (dart:async/zone.dart:925)
E/flutter ( 7619): #15     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:965)
E/flutter ( 7619): #16     _microtaskLoop (dart:async/schedule_microtask.dart:43)
E/flutter ( 7619): #17     _startMicrotaskLoop (dart:async/schedule_microtask.dart:52)
E/flutter ( 7619):
E/flutter ( 7619): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: gRPC Error (14, Error connecting: SocketException: OS Error: Connection refused, errno = 111, address = 172.20.20.6, port = 37300)
E/flutter ( 7619): null
I/flutter ( 7619): Navigating from null to /settings
E/flutter ( 7619): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: NoSuchMethodError: The method 'findAncestorStateOfType' was called on null.
E/flutter ( 7619): Receiver: null
E/flutter ( 7619): Tried calling: findAncestorStateOfType()
E/flutter ( 7619): #0      Navigator.of (package:flutter/src/widgets/navigator.dart:1620)
E/flutter ( 7619): #1      Navigator.pop (package:flutter/src/widgets/navigator.dart:1515)
E/flutter ( 7619): #2      _FeedbackDialogState._send.<anonymous closure>.<anonymous closure> (package:hpi_flutter/feedback/widgets/feedback_dialog.dart:161)
E/flutter ( 7619): #3      _rootRunUnary (dart:async/zone.dart:1134)
E/flutter ( 7619): #4      _CustomZone.runUnary (dart:async/zone.dart:1031)
E/flutter ( 7619): #5      _FutureListener.handleValue (dart:async/future_impl.dart:140)
E/flutter ( 7619): #6      Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:682)
E/flutter ( 7619): #7      Future._propagateToListeners (dart:async/future_impl.dart:711)
E/flutter ( 7619): #8      Future._complete (dart:async/future_impl.dart:516)
E/flutter ( 7619): #9      new Future.delayed.<anonymous closure> (dart:async/future.dart:313)
E/flutter ( 7619): #10     _rootRun (dart:async/zone.dart:1122)
E/flutter ( 7619): #11     _CustomZone.run (dart:async/zone.dart:1023)
E/flutter ( 7619): #12     _CustomZone.runGuarded (dart:async/zone.dart:925)
E/flutter ( 7619): #13     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:965)
E/flutter ( 7619): #14     _rootRun (dart:async/zone.dart:1126)
E/flutter ( 7619): #15     _CustomZone.run (dart:async/zone.dart:1023)
E/flutter ( 7619): #16     _CustomZone.bindCallback.<anonymous closure> (dart:async/zone.dart:949)
E/flutter ( 7619): #17     Timer._createTimer.<anonymous closure> (dart:async-patch/timer_patch.dart:23)
E/flutter ( 7619): #18     _Timer._runTimers (dart:isolate-patch/timer_impl.dart:398)
E/flutter ( 7619): #19     _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:429)
E/flutter ( 7619): #20     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant