Skip to content

L535: Authentication fails with HTTP 403 response #60

Description

@smdn

The L530 class also supports the Tapo L535 multicolor bulb, but you may encounter an HTTP 403 response and authentication failure when attempting to control the L535.
In this case, enable "Third-Party Integration" under "Voice Assistant" in the Tapo app settings.

L530クラスはTapo L535 multicolor bulbにも対応していますが、L535を操作しようとしたときにHTTP 403レスポンスが発生して認証に失敗する場合があります。
この場合は、Tapoアプリの設定で「音声アシスタント」内にある「サードパーティ連携」をオンにしてください。

Details

When attempting to operate the L535 while third-party integration is disabled, an HTTP 403 response is returned, as shown below, and authentication fails.

Unhandled exception. System.Net.Http.HttpRequestException: Response status code does not indicate success: 403 (Forbidden).
   at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
   at Smdn.TPSmartHomeDevices.Tapo.Protocol.TapoClient.PostAsync[THttpResult](Uri requestUri, HttpContent requestContent, Func`2 processHttpResponseAsync, Boolean logContentAsKlapProtocol, CancellationToken cancellationToken) in /home/smdn/Smdn.TPSmartHomeDevices/src/Smdn.TPSmartHomeDevices.Tapo/Smdn.TPSmartHomeDevices.Tapo.Protocol/TapoClient.Http.cs:line 120
trce: Smdn.TPSmartHomeDevices.Tapo.Protocol.TapoClient[0] => 192.168.999.999:0 Device end point: http://192.168.999.999/
trce: Smdn.TPSmartHomeDevices.Tapo.Protocol.TapoClient[0] => 192.168.999.999:0 IHttpClientFactory: Smdn.TPSmartHomeDevices.Tapo.Protocol.TapoHttpClientFactory
trce: Smdn.TPSmartHomeDevices.Tapo.Protocol.TapoClient[0] => 192.168.999.999:0 Initiate authentication with protocol 'Klap'
trce: Smdn.TPSmartHomeDevices.Tapo.Protocol.TapoClient[0] => 192.168.999.999:0 HTTP Request URI: /app/handshake1
trce: Smdn.TPSmartHomeDevices.Tapo.Protocol.TapoClient[0] => 192.168.999.999:0 HTTP Request headers: 
trce: Smdn.TPSmartHomeDevices.Tapo.Protocol.TapoClient[0] => 192.168.999.999:0 HTTP Request content (Base64): XXXXXXXXXXXXXXXXXXXXXXXXXXX
trce: Smdn.TPSmartHomeDevices.Tapo.Protocol.TapoClient[0] => 192.168.999.999:0 HTTP Response status: 403 Forbidden
trce: Smdn.TPSmartHomeDevices.Tapo.Protocol.TapoClient[0] => 192.168.999.999:0 HTTP Response headers: Content-Length: 0 Content-Type: text/html Server: SHIP; 2.0
trce: Smdn.TPSmartHomeDevices.Tapo.Protocol.TapoClient[0] => 192.168.999.999:0 HTTP Response content (Base64): 
Unhandled exception. System.Net.Http.HttpRequestException: Response status code does not indicate success: 403 (Forbidden).
   at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
   at Smdn.TPSmartHomeDevices.Tapo.Protocol.TapoClient.PostAsync[THttpResult](Uri requestUri, HttpContent requestContent, Func`2 processHttpResponseAsync, Boolean logContentAsKlapProtocol, CancellationToken cancellationToken) in /home/smdn/Smdn.TPSmartHomeDevices/src/Smdn.TPSmartHomeDevices.Tapo/Smdn.TPSmartHomeDevices.Tapo.Protocol/TapoClient.Http.cs:line 120

Reference

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions