[iRail] iRail API error response
Pieter Colpaert
pieter.colpaert at gmail.com
Sat Nov 5 10:18:14 UTC 2011
Hi Marten,
thanks for informing us about this error. It's an internal error and
we'll have to fix it asap.
Thanks!
Pieter
On 11/05/2011 10:54 AM, Marten Reenaers wrote:
> Geachte,
>
> Ik maak gebruik van de javaWrapper om informatie te bekomen over de
> NMBS dienstregeling.
>
> Helaas zit ik met een probleem:
>
> http://api.irail.be/connections/?from=Hasselt&to=Aalst+Kerrebroek&lang=nl
> <http://api.irail.be/connections/?from=Hasselt&to=Aalst+Kerrebroek&lang=nl>
>
> Bij deze url krijg ik volgende error:
>
> <errorcode="502">
> Could not get data. Please report this problem to iRail at list.iRail.be.
> </error>
>
> En in mijn java programma:
>
> De error verschijnt wanneer ik dus dit doe: List<Connection>
> connections = iRail.getConnections( "Hasselt", "Aalst Kerrebroek" );
>
> connections/?from=Hasselt&to=Aalst+Kerrebroek&lang=nl
> Exception in thread "main" java.io.IOException: Server returned HTTP
> response code: 502 for URL:
> http://api.irail.be/connections/?from=Hasselt&to=Aalst+Kerrebroek&lang=nl
> at
> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1313)
> at be.irail.api.dom.IRailParser.getDocument(IRailParser.java:43)
> at be.irail.api.dom.IRailParser.parseConnections(IRailParser.java:102)
> at be.irail.api.IRail.getConnections(IRail.java:118)
> at be.irail.api.IRail.getConnections(IRail.java:84)
> at be.irail.examples.IRailExample.loadTrains(IRailExample.java:83)
> at be.irail.examples.IRailExample.main(IRailExample.java:35)
>
>
> Enig idee waar dit aan kan liggen? Ik heb de URL al doorgegeven aan
> meerdere personen maar zij krijgen dezelfde error...
>
> Groeten,
>
> Marten
>
>
> _______________________________________________
> iRail mailing list
> iRail at list.irail.be
> http://lists.rootspirit.com/mailman/listinfo/irail
--
iRail vzw/asbl
+32(0)486/747122
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/irail/attachments/20111105/8e763706/attachment-0003.html>
More information about the iRail
mailing list