sonos - Sonos Control API:无法将消息路由到目标端点
问题描述
尝试使用 Sonos Control API 时,我不断收到错误消息。任何帮助表示赞赏。谢谢!
示例请求:
POST /control/v1/groups/RINCON_B8E93782FB9401400:363/playback/togglePlayPause HTTP/1.1
Host: api.ws.sonos.com
Content-Type: application/json
Content-Length: 0
Authorization: Bearer <token>
回复:
{
"fault": {
"faultstring": "Unable to route the message to a Target Endpoint",
"detail": {
"errorcode": "messaging.runtime.RouteFailed"
}
}
}
解决方案
我认为您可能会丢失部分路径。端点应该是:/control/ api /v1/groups/RINCON_B8E93782FB9401400:363/playback/togglePlayPause
如果 developer.sonos.com 上的 API 文档不正确,能否将详细信息通过电子邮件发送至 developer-feedback@sonos.com?谢谢!
推荐阅读
- r - HTML小部件错误是否需要任何包?
- azure - Terraform - AKS POD 应该能够添加和删除外部 DNS 记录
- angular - 在订阅中更新 mat 表数据源
- wordpress - Elementor 页面上按类别分组的帖子列表
- java - 以下代码的时间复杂度是多少?
- python - 两个设备之间的连接错误:ImportError: libmariadb.so.3: cannot open shared object file: No such file or directory
- javascript - 如何拆分字符串javascript
- python - 尝试使用 selenium python 脚本登录谷歌
- c++ - 并行构建 Visual Studio 解决方案会丢失一些静态库的 PDB
- javascript - 将 req.files 从服务器发送到服务器