Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
JohnnyIV
Channel Surfer

Re: Roku /keypress ECP command returning HTTP status code 401

A simple curl example:

curl -v -d '' "http://your-ip:8060/keypress/home"

Output

*   Trying n.n.n.n:8060...
* Connected to n.n.n.n (n.n.n.n) port 8060
> POST /keypress/home HTTP/1.1
> Host: n.n.n.n:8060
> User-Agent: curl/8.4.0
> Accept: */*
> Content-Length: 2
> Content-Type: application/x-www-form-urlencoded
>
< HTTP/1.1 401 Unauthorized
< Server: Roku/12.5.5 UPnP/1.0 Roku/12.5.5
< Content-Length: 0
<
* Connection #0 to host n.n.n.n left intact
0 Kudos
denivy
Newbie

Re: Roku /keypress ECP command returning HTTP status code 401

Same problem here.  any post commands respond with 401 unauthorized.  Same experience where it worked just find until March 27th.

I rely on this functionality and the ability to control via API is essential to me and one of the reasons why i purchased this product.  

Here are the system details in case it helps

 
<device-info>
<udn>redacted</udn>
<serial-number>redacted</serial-number>
<device-id>redacted</device-id>
<advertising-id>redacted</advertising-id>
<vendor-name>TCL</vendor-name>
<model-name>65S4</model-name>
<model-number>7134X</model-number>
<model-region>US</model-region>
<is-tv>true</is-tv>
<is-stick>false</is-stick>
<screen-size>65</screen-size>
<panel-id>35</panel-id>
<mobile-has-live-tv>true</mobile-has-live-tv>
<ui-resolution>1080p</ui-resolution>
<tuner-type>ATSC</tuner-type>
<supports-ethernet>true</supports-ethernet>
<wifi-mac>redacted</wifi-mac>
<wifi-driver>realtek</wifi-driver>
<has-wifi-5G-support>true</has-wifi-5G-support>
<ethernet-mac>redacted</ethernet-mac>
<network-type>ethernet</network-type>
<friendly-device-name>Great Room TV</friendly-device-name>
<friendly-model-name>TCL•Roku TV</friendly-model-name>
<default-device-name>TCL•Roku TV - YN00T5984076</default-device-name>
<user-device-name>Great Room TV</user-device-name>
<user-device-location>Great Room</user-device-location>
<build-number>30D.55E04174A</build-number>
<software-version>12.5.5</software-version>
<software-build>4174</software-build>
<lightning-base-build-number>xxD.50E04182A</lightning-base-build-number>
<ui-build-number>30D.55E04174A</ui-build-number>
<ui-software-version>12.5.5</ui-software-version>
<ui-software-build>4174</ui-software-build>
<secure-device>true</secure-device>
<language>en</language>
<country>US</country>
<locale>en_US</locale>
<time-zone-auto>false</time-zone-auto>
<time-zone>US/Eastern</time-zone>
<time-zone-name>United States/Eastern</time-zone-name>
<time-zone-tz>America/New_York</time-zone-tz>
<time-zone-offset>-240</time-zone-offset>
<clock-format>12-hour</clock-format>
<uptime>3005</uptime>
<power-mode>PowerOn</power-mode>
<supports-suspend>true</supports-suspend>
<supports-find-remote>false</supports-find-remote>
<supports-audio-guide>true</supports-audio-guide>
<supports-rva>true</supports-rva>
<has-hands-free-voice-remote>false</has-hands-free-voice-remote>
<developer-enabled>false</developer-enabled>
<keyed-developer-id/>
<search-enabled>true</search-enabled>
<search-channels-enabled>true</search-channels-enabled>
<voice-search-enabled>true</voice-search-enabled>
<supports-private-listening>true</supports-private-listening>
<supports-private-listening-dtv>true</supports-private-listening-dtv>
<supports-warm-standby>true</supports-warm-standby>
<headphones-connected>false</headphones-connected>
<supports-audio-settings>false</supports-audio-settings>
<expert-pq-enabled>1.0</expert-pq-enabled>
<supports-ecs-textedit>true</supports-ecs-textedit>
<supports-ecs-microphone>true</supports-ecs-microphone>
<supports-wake-on-wlan>true</supports-wake-on-wlan>
<supports-airplay>true</supports-airplay>
<has-play-on-roku>true</has-play-on-roku>
<has-mobile-screensaver>false</has-mobile-screensaver>
<support-url>support.tcl.com/us</support-url>
<grandcentral-version>11.1.25</grandcentral-version>
<supports-trc>true</supports-trc>
<trc-version>3.0</trc-version>
<trc-channel-version>9.3.10</trc-channel-version>
<av-sync-calibration-enabled>3.0</av-sync-calibration-enabled>
</device-info>
cyborg_helpplea
Binge Watcher

Re: Roku /keypress ECP command returning HTTP status code 401

Is it possible the certificate expired on the server on the Roku?

0 Kudos
Rok4MomProject
Reel Rookie

Re: Roku /keypress ECP command returning HTTP status code 401

I have the same problem but it is only on one of my rokus, a roku tv that I have set up for my mom with dementia. All of the launch+deep_links work but 401 on the normal keypress commands.

curl -d '' --write-out "%{http_code}\n" -X POST http://n.n.n.n:8060/launch/tvinput.dtv?ch=632
200


curl -d '' --write-out "%{http_code}\n" -X POST http://n.n.n.n:8060/keypress/VolumeUp
401


Model 65R6ASR

Software Version 12.5.0 Build 5101

0 Kudos

Re: Roku /keypress ECP command returning HTTP status code 401

Just FYI, we have had reports of our customers having a similar issue with their Roku players using our driver that issues ECP commands.

Our tech support has found that issuing a factory reset of the player seems to fix the issue.

Something you all could try.

 

0 Kudos
milehighmatt
Reel Rookie

Re: Roku /keypress ECP command returning HTTP status code 401

12 different sites that we reset yesterday, yes on Easter, have all now succumbed to this issue. Waste your time if you must, but the reset devices only work ~24 hours from our experience. Thats a lot of typing in passwords for only a day of proper operation. 

0 Kudos

Re: Roku /keypress ECP command returning HTTP status code 401

Forgot to mention we also recommend disabling automatic updates after factory reset.  Don't know if that is why it's reoccurring...

0 Kudos
milehighmatt
Reel Rookie

Re: Roku /keypress ECP command returning HTTP status code 401

Turning off auto-updates isn't something supported by the existing menu structure on a Roku Ultra. I can get into the secret menus obviously but dont see it in there either. If someone has a approved way to accomplish this and it fixes the issue I am all ears to prevent mass customer removal of Rokus.

madtown09
Channel Surfer

Re: Roku /keypress ECP command returning HTTP status code 401

Wonder if this is related to an issue I'm facing with 3rd party hub remote

https://community.roku.com/t5/Remotes/Sofabaton-X1-with-Stick-and-Poor-Support-from-Roku/m-p/958861#...

Timelines seem to match, but I also got no support there.

0 Kudos
JohnnyIV
Channel Surfer

Re: Roku /keypress ECP command returning HTTP status code 401

They likely use the API that stopped working. Can you launch Disney+, Hulu or other channels, but not navigate?

0 Kudos