Telegram Error

Hello,

since one week, i cant send Telegram Messages.

The Error Message as follow:
[WARN ] [ab.action.telegram.internal.Telegram] - Transport error: {}
java.net.UnknownHostException: api.telegram.org
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184) ~[?:?]
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) ~[?:?]
at java.net.Socket.connect(Socket.java:589) ~[?:?]
at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:666) ~[?:?]
at sun.security.ssl.SSLSocketImpl.(SSLSocketImpl.java:471) ~[?:?]
at sun.security.ssl.SSLSocketFactoryImpl.createSocket(SSLSocketFactoryImpl.java:153) ~[?:?]
at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(SSLProtocolSocketFactory.java:82) ~[?:?]
at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(SSLProtocolSocketFactory.java:127) ~[?:?]
at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707) ~[?:?]
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387) ~[?:?]
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171) ~[?:?]
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397) ~[?:?]
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323) ~[?:?]
at org.openhab.action.telegram.internal.Telegram.sendTelegram(Telegram.java:100) ~[?:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:?]
at org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter.invokeOperation(XbaseInterpreter.java:1086) ~[?:?]
at org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter.invokeOperation(XbaseInterpreter.java:1061) ~[?:?]
at org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter._invokeFeature(XbaseInterpreter.java:1047) ~[?:?]
at org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter.invokeFeature(XbaseInterpreter.java:992) ~[?:?]
at org.eclipse.smarthome.model.script.interpreter.ScriptInterpreter.invokeFeature(ScriptInterpreter.java:151) ~[?:?]
at org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter._doEvaluate(XbaseInterpreter.java:902) ~[?:?]
at org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter._doEvaluate(XbaseInterpreter.java:865) ~[?:?]
at org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter.doEvaluate(XbaseInterpreter.java:224) ~[?:?]
at org.eclipse.smarthome.model.script.interpreter.ScriptInterpreter.doEvaluate(ScriptInterpreter.java:226) ~[?:?]
at org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter.internalEvaluate(XbaseInterpreter.java:204) ~[?:?]
at org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter._doEvaluate(XbaseInterpreter.java:447) ~[?:?]
at org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter.doEvaluate(XbaseInterpreter.java:228) ~[?:?]
at org.eclipse.smarthome.model.script.interpreter.ScriptInterpreter.doEvaluate(ScriptInterpreter.java:226) ~[?:?]
at org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter.internalEvaluate(XbaseInterpreter.java:204) ~[?:?]
at org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter.evaluate(XbaseInterpreter.java:190) ~[?:?]
at org.eclipse.smarthome.model.script.runtime.internal.engine.ScriptImpl.execute(ScriptImpl.java:82) ~[?:?]
at org.eclipse.smarthome.model.rule.runtime.internal.engine.RuleEngineImpl.lambda$2(RuleEngineImpl.java:341) ~[?:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
at java.lang.Thread.run(Thread.java:748) [?:?]

I dont find some Hints to close the Error.

Have someone a solution?

With regards,

mhbosch

Might be a dns problem.

Looks like there’s also a defect in this log message. You shouldn’t be seeing an empty set of curly braces like that.

Is this just a simple mistake when using parametrized logging? Curly braces was meant to be a place holder for exception but for example log.error takes both (String str) and (String str, Exception ex) so those braces are just printed as is.

Just asking out of curiosity cause I’ve encoutered this myself.

Approximately correct. The form of Logger.warn being called here is:

warn(String msg, Throwable t)

When the writer really wanted

warn(String format, Object arg)

https://www.slf4j.org/apidocs/org/slf4j/Logger.html

1 Like

Hello,

how can i solve this?
I use Openhab in a Docker. Since one week i have had a error with dns (confus how), so i became always interruption by refresh (e.g. Docker Lofs with follow or Docker STATS). So i will be add a DNS in the Linux Distribution. This will solved the Docker Error.
I think, it will probaly the same error, like this, but when the Linux Settings dont solved the Openhab Problem, i dont know where i must add a DNS Setting too.

Sorry but I can’t help you with this. I’m no docker expert. But quick googling gives this: https://docs.docker.com/config/containers/container-networking/

Hi Michael,

have you finally resolved the issue? I’m suddenly facing the same error while it has been working before. My OH server runs in a Docker container too.

Any hint appreciated!

Thanks

Yes, but i dont use a Container anymore. I dont know the Solution. It was a Entry in the Container

OK, thanks.

I got it resolved - had to reboot my internet router and suddently everything is working again :sunglasses:

Have fun!