tlenclos / react-native-audio-streaming

iOS & Android react native module to play an audio stream, with background support and media controls
MIT License
783 stars 254 forks source link

Network reconnection error #107

Open dengue8830 opened 7 years ago

dengue8830 commented 7 years ago

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?