Issue connecting with STOMP client (Python)

90 views
Skip to first unread message

Mariola Rubio

unread,
Oct 9, 2024, 11:50:22 AMOct 9
to A gathering place for the Open Rail Data community
Hello,

I'm trying to connect to the Network Rail train movement data feed via a STOMP client (using this tutorial). But I keep getting this error when connecting: 

Screenshot 2024-10-09 161851.png

Any idea what could be causing the issue?

Thanks in advance!

Mariola

Peter Hicks

unread,
Oct 9, 2024, 11:53:24 AMOct 9
to A gathering place for the Open Rail Data community
Hi Mariola

FYI, the debug output contains your password.

If you're on a corporate network and/or using a VPN to your company's network, you may have some outgoing TCP ports blocked.

Does the script fail immediately or does it wait, say, 15 or 30 seconds?


Peter 

--
You received this message because you are subscribed to the Google Groups "A gathering place for the Open Rail Data community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openraildata-t...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/openraildata-talk/6b22ccab-3484-40eb-bb37-7a44239cd39en%40googlegroups.com.

Mariola Rubio

unread,
Oct 9, 2024, 12:25:51 PMOct 9
to A gathering place for the Open Rail Data community
Hi Peter,

Oops - thanks I just changed my password!

Yes I am on a company network - I'll try it from home.

It fails after a 3-4 seconds.

Many thanks!

Mariola

Mariola Rubio

unread,
Oct 10, 2024, 4:32:12 AMOct 10
to A gathering place for the Open Rail Data community
I have tried it again from home this time and I get a slightly different error

Screenshot 2024-10-10 092746.png

Any ideas what is the issue?


Mariola

Mariola Rubio

unread,
Oct 10, 2024, 4:52:46 AMOct 10
to A gathering place for the Open Rail Data community
For context, I'm only interested in the train activation messages - I'm looking at train services that "run as required" so I want to understand which scheduled trains end up running and which do not, therefore I need the activations. As far as I can tell from the wiki, the only way to get these is from the Train Movements real time feed - is this correct? Ideally I would get the historical train activations as static data if they were stored somewhere. Do you know if this exists or will I have to do it myself by continuously running a client and storing the messages?

Thanks again in advance.

Mariola

Evelyn Snow

unread,
Oct 10, 2024, 5:03:21 AMOct 10
to openrail...@googlegroups.com
Hi Mariola,

I can replicate this error from the remote side by providing an incorrect
password; check your credentials.

Further, I recommend redacting your password more carefully.

Evelyn

On Thu, Oct 10, 2024 at 01:32:11AM -0700, Mariola Rubio wrote:
> I have tried it again from home this time and I get a slightly different error
>

Mariola Rubio

unread,
Oct 11, 2024, 4:22:12 AMOct 11
to A gathering place for the Open Rail Data community
Hi Evelyn,

Thanks for your reply - indeed that was the issue as I forgot to update the password in my code... thank you! I'm now getting the messages.

Any idea on whether I can get historic train activation data?

Mariola

Evelyn Snow

unread,
Oct 11, 2024, 6:30:05 AMOct 11
to openrail...@googlegroups.com
Hi Mariola,

Glad to be of service!

I'm not aware of any open archive of the movement feed or of historical activations. I expect that
this information does exist, and could likely be obtained either from Network Rail, from someone
who is archiving this information from the feed, or from FOCs/TOCs themselves, depending on your
use-case and customer; Obviously, that's a commercial matter that I can't help you with.

Evelyn

Arturs Dobrecovs

unread,
Oct 14, 2024, 10:41:07 PMOct 14
to A gathering place for the Open Rail Data community
Hi Mariola,

archive.area51.dev/archive/ukrail/ may be of interest to you - it contains an archive of the Darwin PushPort feed, NROD CIF timetables, NROD TD feed and the NROD TRUST feed.
The archive collects and stores all the messages that come through those feeds, but no processing has been done on the data, so you'll still need to filter out the activation messages yourself.

Arturs
Reply all
Reply to author
Forward
0 new messages