Our new ticketing site is now live! Using either this or the original site (both powered by TrainSplit) helps support the running of the forum with every ticket purchase! Find out more and ask any questions/give us feedback in this thread!
No worries, here's a Gist of what I do. It's adapted from the example provided in the (hard to find and slightly out of data as it doesn't mention groups at all!) PubSub documentation.
No worries, here's a Gist of what I do. It's adapted from the example provided in the (hard to find and slightly out of data as it doesn't mention groups at all!) PubSub documentation.
It took me about 2 months of back and forth with support before I managed to get it to work, but that was an issue affecting most (all?) consumers so shouldn't happen in your case.
It is worth reaching out to support if you're sure everything's correct your end.
Inspired by this thread and the example code (thanks!) I decided to try registering with the rail data marketplace to see if I could find anything interesting to do with any of the data they provide.
I'm struggling to get the code example from @Vexed to work, with "Authentication Failed" errors. Can I double-check exactly what you're putting in the three empty variables in the code you shared, before I try contacting their support?
For CONSUMER_GROUP I'm using the value given in the Access Credentials section of the Pub/Sub page for the feed I've subscribed to.
For CONSUMER_USERNAME and CONSUMER_PASSWORD I've been using my login details for the raildata.org.uk website itself.
The PDF that you linked to (which you said yourself was out-of-date, so this might not be relevant) talks about a consumer key and secret which I can't seem to find anywhere. Are they what I should be using for the username and password instead of the website login details?
Inspired by this thread and the example code (thanks!) I decided to try registering with the rail data marketplace to see if I could find anything interesting to do with any of the data they provide.
I'm struggling to get the code example from @Vexed to work, with "Authentication Failed" errors. Can I double-check exactly what you're putting in the three empty variables in the code you shared, before I try contacting their support?
For CONSUMER_GROUP I'm using the value given in the Access Credentials section of the Pub/Sub page for the feed I've subscribed to.
For CONSUMER_USERNAME and CONSUMER_PASSWORD I've been using my login details for the raildata.org.uk website itself.
The PDF that you linked to (which you said yourself was out-of-date, so this might not be relevant) talks about a consumer key and secret which I can't seem to find anywhere. Are they what I should be using for the username and password instead of the website login details?
from my understanding, there should be on the Pub/Sub page a Consumer group, Consumer username, and Consumer password these are the ones that I've use and it worked but seemed to stop working with a different error
from my understanding, there should be on the Pub/Sub page a Consumer group, Consumer username, and Consumer password these are the ones that I've use and it worked but seemed to stop working with a different error
Just a heads up they can be quite slow to reply - my issue was that there was no consumer group listed. I now have an interesting situation where I'm still using the consumer group they told me to use instead of the one on the dashboard but it still works so... Anyway I digress. If you don't hear back within 2-3 weeks you could ask on the open rail data Google Group for further guidance. It's not a great situation and not what the future open data should be like, hopefully the support situation has improved over the last few months since I last had to use it.
Just out of curiosity, when did you subscribe to the NWR TD data product?
I subscribed just a few days ago. I left it for a little while in case the authentication issues just needed a bit of time for something to sync across their systems, but still no luck as of today. I've just submitted the support request so we'll see how long it takes them to respond. I didn't know about the google group - am reading through some of the threads there now.
== Doublepost prevention - post automatically merged: ==
--- below is a separate post which the forum has merged into the previous one ---
I got a response to my support request first thing this morning. They say there is a known issue with pub/sub access and they intend to deploy a fix over the weekend.
== Doublepost prevention - post automatically merged: ==
--- another update below which I guess the forum will merge into the previous post again ---
Update on Monday morning: I now have a username and password and get beyond the authentication error. (Also my BOOTSTRAP_SERVER has been changed, but not my CONSUMER_GROUP). The new problem, though, is that no data is ever returned to me. I now seem to be in pretty much the same position as this thread in the google group you referred to.
Regarding the example code you shared, I'm not sure where you got your TOPIC_NAME (starting "prod-1010...") from? If I use that, I get a different error, "Subscribed topic not available". Using a name like "TD_ALL_SIG_AREA" fixes that problem, but, as I said above, no data is received.
Update on Monday morning: I now have a username and password and get beyond the authentication error. (Also my BOOTSTRAP_SERVER has been changed, but not my CONSUMER_GROUP). The new problem, though, is that no data is ever returned to me. I now seem to be in pretty much the same position as this thread in the google group you referred to.
Everyone's connection details changed, I haven't got around to updating mine yet. I'll do it later and let you know if it works.
Connecting but getting no data is very annoying, I know the feeling! This might sound odd, but when I was trying to figure this out last year I got Kafka error messages on Ubuntu that were silent on Windows. Does this help?
Regarding the example code you shared, I'm not sure where you got your TOPIC_NAME (starting "prod-1010...") from? If I use that, I get a different error, "Subscribed topic not available". Using a name like "TD_ALL_SIG_AREA" fixes that problem, but, as I said above, no data is received.
RailUK was launched on 6th June 2005 - so we've hit 20 years being the UK's most popular railway community! Read more and celebrate this milestone with us in this thread!