- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I'm receiving 404 errors when attempting to make a POST call to /launch on my device, both through the RAF Tester Tools (with cors restriction disabled in Safari, Chrome, and standalone app) and manually with curl.
Device is found (replaced my device's actual IP address with <IP>:
➜ curl "http://<IP>:8060/query/media-player" -v
* Trying <IP>:8060...
* Connected to <IP> (<IP>) port 8060 (#0)
> GET /query/media-player HTTP/1.1
> Host: <IP>:8060
> User-Agent: curl/7.88.1
> Accept: */*
>
< HTTP/1.1 200 OK
< Server: Roku/12.0.0 UPnP/1.0 Roku/12.0.0
< Content-Length: 77
< Cache-Control: no-cache
< Content-Type: text/xml; charset="utf-8"
<
<?xml version="1.0" encoding="UTF-8" ?>
<player error="false" state="none"/>
* Connection #0 to host <IP> left intact
/launch doesn't work. Tried a few different variations.
➜ curl "http://<IP>:8060/launch/63218?live=true&autoCookie=false&debugVideoHud=false&url=<stream-url>&fmt=DA..." -v -X POST
* Trying <IP>:8060...
* Connected to <ip> (<IP>) port 8060 (#0)
> POST /launch/63218?live=true&autoCookie=false&debugVideoHud=false&url=<stream-url>&fmt=DASH&drmParams=%7B%7D&headers=%7B%7D&metadata=%7B%22isFullHD%22%3Afalse%7D&cookies=%5B%5D HTTP/1.1
> Host: <IP>:8060
> User-Agent: curl/7.88.1
> Accept: */*
>
< HTTP/1.1 404 Not Found
< Server: Roku/12.0.0 UPnP/1.0 Roku/12.0.0
< Content-Length: 0
<
* Connection #0 to host <IP> left intact
Tried /dev as referenced by https://developer.roku.com/docs/developer-program/dev-tools/external-control-api.md#deep-linking-to-...
➜ curl "http://<IP>:8060/launch/dev" -v -X POST
* Trying <IP>:8060...
* Connected to <IP> (<IP>) port 8060 (#0)
> POST /launch/dev HTTP/1.1
> Host: <IP>:8060
> User-Agent: curl/7.88.1
> Accept: */*
>
< HTTP/1.1 404 Not Found
< Server: Roku/12.0.0 UPnP/1.0 Roku/12.0.0
< Content-Length: 0
<
* Connection #0 to host <IP> left intact
Could you please help me understand why this isn't working? Has the API changed?
Thank you!
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Have you added the "Stream Tester" channel?
https://my.roku.com/account/add?channel=ZJMQ6D5
Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.
I am not a Roku employee.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Is the RAF Tester Tool broken?
"launch/dev" works for me, so the first question is, do you have anything sideloaded? If not, you'll get a 404.
P.S. - there's no need to remove your Roku's private IP address. No one can do anything with it (unless they're connected to your private network) and there's probably hundreds of thousands of Roku devices with the same address.
Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.
I am not a Roku employee.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Is the RAF Tester Tool broken?
Thanks for the quick response. I sideloaded a demo app and was able to successfully call "launch/dev" using curl. However, it doesn't behave the way I was hoping and doesn't playback streams (it shows "Roku Developers" for a brief moment and goes back to the sideloaded app).
The RAF Tester tool targets "launch/63218", which still doesn't work. Do you know how to get the RAF Tester tool to work?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Have you added the "Stream Tester" channel?
https://my.roku.com/account/add?channel=ZJMQ6D5
Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.
I am not a Roku employee.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Is the RAF Tester Tool broken?
Thanks, that fixed the problem!