schildbach / public-transport-enabler

Unleash public transport data in your Java project.
https://groups.google.com/forum/#!forum/public-transport-enabler-discuss
GNU General Public License v3.0
388 stars 133 forks source link

VRS: java.net.UnknownHostException: Unable to resolve host "android.vrsinfo.de": No address associated with hostname #506

Closed phyk closed 1 year ago

phyk commented 1 year ago

Query

Error

java.net.UnknownHostException: Unable to resolve host "android.vrsinfo.de": No address associated with hostname
java.net.Inet6AddressImpl.lookupHostByName(Inet6AddressImpl.java:157)
java.net.Inet6AddressImpl.lookupAllHostAddr(Inet6AddressImpl.java:105)
java.net.InetAddress.getAllByName(InetAddress.java:1154)
Cause: libcore.io.Linux.android_getaddrinfo(Native Method)
libcore.io.BlockGuardOs.android_getaddrinfo(BlockGuardOs.java:172)
java.net.Inet6AddressImpl.lookupHostByName(Inet6AddressImpl.java:137)

Additional information

Seems to be that VRS is offline for some reason

mdyrna commented 1 year ago

Hi @phyk ,

The old endpoint android.vrsinfo.de was indeed removed from DNS.

I originally implemented the VrsProvider because the VRR did not provide real-time information for the VRS region (Cologne, Bonn) at the time. Now it does, so the quickest solution for you and everybody else is to use VrrProvider instead.

@schildbach I created a pull request for VrsProvider to support the new endpoint https://ekap-app.vrs.de/index.php, which the current VRS Android app (https://play.google.com/store/apps/details?id=de.vrsinfo) uses.

phyk commented 1 year ago

Thanks @mdyrna