VIDEO INDEXER API:上传视频返回响应:{'ErrorType':'ACCESS_TOKEN_VALIDATION_FAILED','消息':'访问令牌验证失败。'} [英] VIDEO INDEXER API: Uploading video returns response:{'ErrorType': 'ACCESS_TOKEN_VALIDATION_FAILED', 'Message': 'Access token validation failed.'}

查看:363
本文介绍了VIDEO INDEXER API:上传视频返回响应:{'ErrorType':'ACCESS_TOKEN_VALIDATION_FAILED','消息':'访问令牌验证失败。'}的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用视频索引器API。


创建帐户令牌并使用帐户令牌上传本地保存的.mov视频后,使用帖子上传视频请求返回以下响应:  {'ErrorType':'ACCESS_TOKEN_VALIDATION_FAILED','消息':'访问令牌验证
失败。'}


令牌在到期时使用时间(1小时)。代码是用python编写的。


我成功生成了一个帐户令牌,但在尝试使用生成的相同令牌上传视频时失败了。

解决方案

您是否确保authoriathon呼叫的范围与您尝试呼叫的内容相匹配?如果您使用帐户令牌进行上述调用,则可能是失败的原因。


https://docs.microsoft.com/azure/media-services/video -indexer /视频索引器使用的API#获得存取使用最授权-API令牌


I am using the Video Indexer API.

After creating an account token and using the account token to upload a locally saved video of .mov, uploading a video using post request returns the following response: {'ErrorType': 'ACCESS_TOKEN_VALIDATION_FAILED', 'Message': 'Access token validation failed.'}

The token is used within expiration time(1 hour). The code is written in python.

I am successful in generating an account token, but failing when trying to upload a video using the same token generated.

解决方案

Are you ensuring the scope of the authoriathon call matches what you are attempting to call? If you're using a account token for the above call, it might be the source of the failure.

https://docs.microsoft.com/azure/media-services/video-indexer/video-indexer-use-apis#obtain-access-token-using-the-authorization-api


这篇关于VIDEO INDEXER API:上传视频返回响应:{'ErrorType':'ACCESS_TOKEN_VALIDATION_FAILED','消息':'访问令牌验证失败。'}的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆