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 :
➜ curl “http://:8060/query/media-player” -v
- Trying :8060…
- Connected to () port 8060 (#0)
GET /query/media-player HTTP/1.1
Host: :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”
<
/launch doesn’t work. Tried a few different variations.
Copied request made from RAF Tester Tool (replaced stream URL with :
➜ curl “http://:8060/launch/63218?live=true&autoCookie=false&debugVideoHud=false&url=&fmt=DASH&drmParams=%7B%7D&headers=%7B%7D&metadata=%7B%22isFullHD%22%3Afalse%7D&cookies=%5B%5D” -v -X POST
- Trying :8060…
- Connected to () port 8060 (#0)
POST /launch/63218?live=true&autoCookie=false&debugVideoHud=false&url=&fmt=DASH&drmParams=%7B%7D&headers=%7B%7D&metadata=%7B%22isFullHD%22%3Afalse%7D&cookies=%5B%5D HTTP/1.1
Host: :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 left intact
Tried /dev as referenced by https://developer.roku.com/docs/developer-program/dev-tools/external-control-api.md#deep-linking-to-a-channel
➜ curl “http://:8060/launch/dev” -v -X POST
- Trying :8060…
- Connected to () port 8060 (#0)
POST /launch/dev HTTP/1.1
Host: :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 left intact
Also tried on Safari with origin forwarding enabled and received" 404 Not Found"
Could you please help me understand why this isn’t working? Has the API changed?
Thank you!
