<div dir="auto"><div>I added code a little while back that is supposed to catch the connection error exception.  Are you sure you are running the latest code? <div dir="auto"><br></div><div dir="auto">Graham</div><br><br><div class="gmail_quote"><div dir="ltr">On Thu, Jan 17, 2019, 8:53 AM  <<a href="mailto:op25@zellners.com" target="_blank" rel="noreferrer">op25@zellners.com</a> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Trying to report an bug/issue, but<br>
<br>
<a href="https://github.com/boatbod/op25/issues" rel="noreferrer noreferrer noreferrer" target="_blank">https://github.com/boatbod/op25/issues</a> doesn't work, goes to wrong  <br>
place, and there is no link on the main page of it.<br>
<br>
BUG: Program dies due to uncaught exception<br>
<br>
Details:<br>
<br>
When updating the metadata/"tags" to IceCast, if the connection has  <br>
died for some reason, LAN goes down, what ever... There is an uncaught  <br>
exception which will kill OP25 running.<br>
<br>
1547434556.069343 set tgid=53, srcaddr=0<br>
Exception in thread Thread-4:<br>
Traceback (most recent call last):<br>
   File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner<br>
     self.run()<br>
   File "/home/pi/op25/op25/gr-op25_repeater/apps/icemeta.py", line 60, in run<br>
     self.send_metadata(self.msg.to_string())<br>
   File "/home/pi/op25/op25/gr-op25_repeater/apps/icemeta.py", line  <br>
77, in send_metadata<br>
     r = requests.get((requestToSend), auth=("source",self.cfg['icecastPass']))<br>
   File "/usr/lib/python2.7/dist-packages/requests/api.py", line 70, in get<br>
     return request('get', url, params=params, **kwargs)<br>
   File "/usr/lib/python2.7/dist-packages/requests/api.py", line 56, in request<br>
     return session.request(method=method, url=url, **kwargs)<br>
   File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line  <br>
488, in request<br>
     resp = self.send(prep, **send_kwargs)<br>
   File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line  <br>
609, in send<br>
     r = adapter.send(request, **kwargs)<br>
   File "/usr/lib/python2.7/dist-packages/requests/adapters.py", line  <br>
487, in send<br>
     raise ConnectionError(e, request=request)<br>
ConnectionError: HTTPConnectionPool(host='<a href="http://audio.myserver.net" rel="noreferrer noreferrer noreferrer" target="_blank">audio.myserver.net</a>',  <br>
port=8000): Max retries exceeded with url:  <br>
/admin/metadata?mount=/RedactedFeed&mode=updinfo&song=[idle] (Caused  <br>
by  <br>
NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection  <br>
object at 0x691bc8d0>: Failed to establish a new connection: [Errno  <br>
110] Connection timed out',))<br>
<br>
<br>
This is not about an issue with the connection, there was, and  <br>
eventually led to the Pi being replaced as faulty or melted down from  <br>
use of OP25 :) ;)<br>
<br>
If the max retries is exceeded or any error where the update fails, it  <br>
shouldn't kill OP25 from running...<br>
<br>
Glad to add to the issues section of github, but see top part, for  <br>
some reason its not there. (??????)<br>
<br>
<br>
<br>
<br>
</blockquote></div></div></div>