# /v1/gtfs/realtime/sydneytrains?debug=true returns 404?

**URL:** <https://opendataforum.transport.nsw.gov.au/t/v1-gtfs-realtime-sydneytrains-debug-true-returns-404/88>\
**Category:** Real-time Public Transport\
**Created:** [April 22, 2016, 5:39am UTC](https://opendataforum.transport.nsw.gov.au/t/v1-gtfs-realtime-sydneytrains-debug-true-returns-404/88 "2016-04-22T05:39:31Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jorke](https://sea1.discourse-cdn.com/flex019/user_avatar/opendataforum.transport.nsw.gov.au/jorke/32/209_2.png) [@jorke](https://opendataforum.transport.nsw.gov.au/u/jorke)\
**Post date:** [April 22, 2016, 5:39am UTC](https://opendataforum.transport.nsw.gov.au/t/v1-gtfs-realtime-sydneytrains-debug-true-returns-404/88/1 "2016-04-22T05:39:31Z")

</div>

I just need to confirm i’m not loosing it 😜 - my reading of the docs should return debug output - but i’m getting a 404…

```auto
curl -X GET -H "Authorization: Bearer xxx-xxx-xxx-xxx" "https://api.transport.nsw.gov.au/v1/gtfs/realtime/sydneytrains?debug=true"

```

```auto
{
	"ErrorDetails":
	{
		"TransactionId":"000001543b0c0eba-2102",
		"ErrorDateTime":"2016-04-22T15:34:43.244+10:00",
		"Message":"Requested resource was not found",
		"RequestedUrl":"/v1/gtfs/realtime/sydneytrains",
		"RequestedMethod":"GET"
	}
}

```

---

<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:** [April 22, 2016, 7:54am UTC](https://opendataforum.transport.nsw.gov.au/t/v1-gtfs-realtime-sydneytrains-debug-true-returns-404/88/2 "2016-04-22T07:54:02Z")

</div>

We’re getting the same result.

We’re adding it to the backlog.

Good news is that you are not loosing it. 🙂

---

<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:** [April 26, 2016, 8:07am UTC](https://opendataforum.transport.nsw.gov.au/t/v1-gtfs-realtime-sydneytrains-debug-true-returns-404/88/3 "2016-04-26T08:07:43Z")

</div>

@jorke Can you retry this? Looks like it’s working for us again. Could be due to some changes we made over the weekend or something else.

---

<div class="post-metadata">

**Author:** ![jxeeno](https://sea1.discourse-cdn.com/flex019/user_avatar/opendataforum.transport.nsw.gov.au/jxeeno/32/210_2.png) [@jxeeno](https://opendataforum.transport.nsw.gov.au/u/jxeeno)\
**Post date:** [April 26, 2016, 10:21am UTC](https://opendataforum.transport.nsw.gov.au/t/v1-gtfs-realtime-sydneytrains-debug-true-returns-404/88/4 "2016-04-26T10:21:05Z")

</div>

I’m now getting a protobuf encoded response. Not sure if that’s the intended result?

iirc, `debug=true` returns a JSON object for `/gtfs/vehiclepos/sydneytrains`.

```auto
$ curl -X GET -H "Authorization: Bearer [redacted]" "https://api.transport.nsw.gov.au/v1/gtfs/realtime/sydneytrains?debug=true"

1.0???d
%164U.1452.102.4-20160425.A.8.41513068;
3
%164U.1452.102.4-20160425.A.8.41513068 RTTA_REV ????d
%240J.1452.102.4-20160425.H.4.41513235;
3
%240J.1452.102.4-20160425.H.4.41513235 RTTA_REV ????a
%163S.1452.102.4-20160425.A.8.415133928
0
%163S.1452.102.4-20160425.A.8.41513392 *WL_1b ????d
%162U.1452.102.4-20160425.A.8.41521847;
[etc...]

```

---

<div class="post-metadata">

**Author:** ![jorke](https://sea1.discourse-cdn.com/flex019/user_avatar/opendataforum.transport.nsw.gov.au/jorke/32/209_2.png) [@jorke](https://opendataforum.transport.nsw.gov.au/u/jorke)\
**Post date:** [April 27, 2016, 1:36am UTC](https://opendataforum.transport.nsw.gov.au/t/v1-gtfs-realtime-sydneytrains-debug-true-returns-404/88/5 "2016-04-27T01:36:20Z")

</div>

Hi,

well it’s better than a 404 - i’m having the same result as @jxeeno

thanks  
jorke

---

<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:** [April 28, 2016, 2:17am UTC](https://opendataforum.transport.nsw.gov.au/t/v1-gtfs-realtime-sydneytrains-debug-true-returns-404/88/6 "2016-04-28T02:17:28Z")

</div>

The intended result is meant to be JSONish text so to me it looks correct…
