react-native-audio-streaming icon indicating copy to clipboard operation
react-native-audio-streaming copied to clipboard

Network reconnection error

Open dengue8830 opened this issue 6 years ago • 0 comments

If i disconnect the phone of the network when is playing the app stuck in a buffering state, no callback is triggered

Tested is in a android 6 emulator and physical device. Steps:

  1. open the app
  2. play
  3. disconnect the phone from the network by the notifications bar
  4. reconnect the phone in the same way
  5. nothing happens, stays in buffering state, no callback is triggered

i think the problem is an unhandled exception, this is the stacktrace.

07-16 21:24:13.981  2389  2585 E Volley  : [109] BasicNetwork.performRequest: Unexpected response code 307 for https://android.googleapis.com/nova/herrevad/network_quality_info
07-16 21:24:13.981  2389  7141 W Herrevad: [317] RemoteReportsRefreshChimeraService.a: java.util.concurrent.ExecutionException: com.android.volley.ServerError
07-16 21:24:13.981  2389  7141 W Herrevad: java.util.concurrent.ExecutionException: com.android.volley.ServerError
07-16 21:24:13.981  2389  7141 W Herrevad: 	at com.android.volley.toolbox.RequestFuture.a(:com.google.android.gms:3)
07-16 21:24:13.981  2389  7141 W Herrevad: 	at com.android.volley.toolbox.RequestFuture.get(:com.google.android.gms:1)
07-16 21:24:13.981  2389  7141 W Herrevad: 	at com.google.android.gms.herrevad.services.RemoteReportsRefreshChimeraService.a(:com.google.android.gms:24)
07-16 21:24:13.981  2389  7141 W Herrevad: 	at com.google.android.gms.herrevad.services.RemoteReportsRefreshChimeraService.a(:com.google.android.gms:31)
07-16 21:24:13.981  2389  7141 W Herrevad: 	at qzt.run(:com.google.android.gms:0)
07-16 21:24:13.981  2389  7141 W Herrevad: 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
07-16 21:24:13.981  2389  7141 W Herrevad: 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
07-16 21:24:13.981  2389  7141 W Herrevad: 	at java.lang.Thread.run(Thread.java:818)
07-16 21:24:13.981  2389  7141 W Herrevad: Caused by: com.android.volley.ServerError
07-16 21:24:13.981  2389  7141 W Herrevad: 	at com.android.volley.toolbox.BasicNetwork.performRequest(:com.google.android.gms:36)
07-16 21:24:13.981  2389  7141 W Herrevad: 	at lbf.performRequest(:com.google.android.gms:3)
07-16 21:24:13.981  2389  7141 W Herrevad: 	at com.android.volley.NetworkDispatcher.run(:com.google.android.gms:11)

There is a way to catch this exception? where i should look to fix this on my own?

dengue8830 avatar Jul 17 '17 01:07 dengue8830