REST API 创建会话错误 [tokbox] 或 [opentok]
REST API Create Session Error [tokbox] or [opentok]
尝试调用 opentok/session/create api 时出现问题。
通过代码调用 api 时,我不断收到一条错误消息,提示连接已关闭。所以我决定尝试通过邮递员,我得到的错误是 500 内部服务器错误和一条消息
{
"message": "Internal server error, working hard to fix it, sorry",
"code": -1
}
据我所知,我已正确设置所有内容。
Headers, Body]
根据文档,我认为这不是 JWT 问题,这将是 403。https://tokbox.com/developer/rest/#session_id_production
之前有人遇到过这个或类似的问题
问题最终是内容 Content-Type header 我必须设置
Content-Type: application/x-www-form-urlencoded
感谢 @adrice727 的评论,建议 Content-Type header 可能存在问题。
尝试调用 opentok/session/create api 时出现问题。 通过代码调用 api 时,我不断收到一条错误消息,提示连接已关闭。所以我决定尝试通过邮递员,我得到的错误是 500 内部服务器错误和一条消息
{
"message": "Internal server error, working hard to fix it, sorry",
"code": -1
}
据我所知,我已正确设置所有内容。 Headers, Body]
根据文档,我认为这不是 JWT 问题,这将是 403。https://tokbox.com/developer/rest/#session_id_production
之前有人遇到过这个或类似的问题
问题最终是内容 Content-Type header 我必须设置
Content-Type: application/x-www-form-urlencoded
感谢 @adrice727 的评论,建议 Content-Type header 可能存在问题。