# Error getting realtime/buses

**URL:** <https://opendataforum.transport.nsw.gov.au/t/error-getting-realtime-buses/137>\
**Category:** App development\
**Created:** [May 26, 2016, 5:24am UTC](https://opendataforum.transport.nsw.gov.au/t/error-getting-realtime-buses/137 "2016-05-26T05:24:50Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Halfabee](https://avatars.discourse-cdn.com/v4/letter/h/71c47a/32.png) [@Halfabee](https://opendataforum.transport.nsw.gov.au/u/Halfabee)\
**Post date:** [May 26, 2016, 5:24am UTC](https://opendataforum.transport.nsw.gov.au/t/error-getting-realtime-buses/137/1 "2016-05-26T05:24:50Z")

</div>

Hi, I have just started using the API, it was working fine this morning using realtime/buses, now it is returning a not found error.

{ “ErrorDetails”:{ “TransactionId”:“xxxxxxxxxxxxxxxxxxxxxxx”, “ErrorDateTime”:“2016-05-26T15:17:00.104+10:00”, “Message”:  
“The requested resource could not be found.”, “RequestedUrl”:“/v1/gtfs/realtime/buses”, “RequestMethod”:“GET”, } }

the same script returns data for trains and ferries, just not buses.

Is it me or is something broken.

---

<div class="post-metadata">

**Author:** ![Halfabee](https://avatars.discourse-cdn.com/v4/letter/h/71c47a/32.png) [@Halfabee](https://opendataforum.transport.nsw.gov.au/u/Halfabee)\
**Post date:** [May 26, 2016, 8:55am UTC](https://opendataforum.transport.nsw.gov.au/t/error-getting-realtime-buses/137/2 "2016-05-26T08:55:47Z")

</div>

Up and running again, does this happen often?

---

<div class="post-metadata">

**Author:** ![yvonne.lee](https://avatars.discourse-cdn.com/v4/letter/y/c37758/32.png) [@yvonne.lee](https://opendataforum.transport.nsw.gov.au/u/yvonne.lee)\
**Post date:** [May 27, 2016, 2:34am UTC](https://opendataforum.transport.nsw.gov.au/t/error-getting-realtime-buses/137/3 "2016-05-27T02:34:14Z")

</div>

was this for vehicle positions or trip updates?

You shouldn’t be getting that error so it could be our side. As (from my understanding) if it hasn’t been updated you just get a stale file. However we have an existing issue we’re fixing where if the file size is \> 5MB there’s issues handling that.

---

<div class="post-metadata">

**Author:** ![Halfabee](https://avatars.discourse-cdn.com/v4/letter/h/71c47a/32.png) [@Halfabee](https://opendataforum.transport.nsw.gov.au/u/Halfabee)\
**Post date:** [May 27, 2016, 5:25am UTC](https://opendataforum.transport.nsw.gov.au/t/error-getting-realtime-buses/137/4 "2016-05-27T05:25:57Z")

</div>

It is for trip updates, the vehiclePos works fine.

The files were getting up to 5Mb, so maybe that is the problem.

---

<div class="post-metadata">

**Author:** ![om252345](https://avatars.discourse-cdn.com/v4/letter/o/f17d59/32.png) [@om252345](https://opendataforum.transport.nsw.gov.au/u/om252345)\
**Post date:** [May 30, 2016, 1:44am UTC](https://opendataforum.transport.nsw.gov.au/t/error-getting-realtime-buses/137/5 "2016-05-30T01:44:13Z")

</div>

Even I am getting similar issue with realtime/buses, other apis working fine.

---

<div class="post-metadata">

**Author:** ![yvonne.lee](https://avatars.discourse-cdn.com/v4/letter/y/c37758/32.png) [@yvonne.lee](https://opendataforum.transport.nsw.gov.au/u/yvonne.lee)\
**Post date:** [May 30, 2016, 4:16am UTC](https://opendataforum.transport.nsw.gov.au/t/error-getting-realtime-buses/137/6 "2016-05-30T04:16:37Z")

</div>

We’re on it. This has been raised a while ago so just working through it for a fix a plan to deploy.

---

<div class="post-metadata">

**Author:** ![yvonne.lee](https://avatars.discourse-cdn.com/v4/letter/y/c37758/32.png) [@yvonne.lee](https://opendataforum.transport.nsw.gov.au/u/yvonne.lee)\
**Post date:** [May 30, 2016, 7:36am UTC](https://opendataforum.transport.nsw.gov.au/t/error-getting-realtime-buses/137/7 "2016-05-30T07:36:01Z")

</div>

There was a change put in today that should have fixed this problem. Please note that if you use the API Explorer it may crash the browser if the file is too big (different issue!) but if you do an API call the larger file should be able to be downloaded.

Let us know how you go.

---

<div class="post-metadata">

**Author:** ![Halfabee](https://avatars.discourse-cdn.com/v4/letter/h/71c47a/32.png) [@Halfabee](https://opendataforum.transport.nsw.gov.au/u/Halfabee)\
**Post date:** [May 30, 2016, 10:15pm UTC](https://opendataforum.transport.nsw.gov.au/t/error-getting-realtime-buses/137/8 "2016-05-30T22:15:18Z")

</div>

Hi Yvonne,

your fix seems to be working, I was able to download a file 8,742,333 in size.

Thanks. 🙂
