授权令牌在当前时间无效。 [英] Authorization token is not valid at the current time.

查看:166
本文介绍了授权令牌在当前时间无效。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好我总是遇到此错误,但我找不到任何有价值的信息。


此错误在本地发生,并部署到Azure Service Fabric:


"授权令牌在当前时间无效。请提供有效令牌(令牌开始时间:'1559302697',令牌到期时间:'1559306297',当前服务器时间:'1559307413'"


我正在关注推荐并缓存DocumentClient实例。


SDK版本为2.4.0。





解决方案

嗨Dervanil,


Are您在解决方案中使用容器图像吗?如果是,请查看此
GitHub问题#506
 其中解决方案是使用以下基本映像:  FROM mcr.microsoft.com/dotnet/core/aspnet:2.1-nanoserver-sac2016
AS base


你能不能请发布您的请求标题,您正在通过授权令牌?这是为了确保您传递正确的标题,但我推测主机O / S和容器平台之间存在微小的时间差异。 


如果以上内容无法解决问题,请提供任何其他信息以帮助确定问题。


~Mike




Hi I'm always having this error, and I couldn't find any valuable information.

This error occurs locally, and deployed to Azure Service Fabric:

"Authorization token is not valid at the current time. Please provide a valid token (token start time: '1559302697', token expiry time: '1559306297', current server time: '1559307413'"

I'm following the recomendation and caching the instance of DocumentClient.

The SDK version is 2.4.0.


解决方案

Hi Dervanil,

Are you using container images in your solution? If so, please check this GitHub Issue #506 where the solution is to use the following base image: FROM mcr.microsoft.com/dotnet/core/aspnet:2.1-nanoserver-sac2016 AS base

Can you please post your request headers you are passing the Authorization Token with? This is to ensure you are passing the correct headers but I am speculating that there is a slight time difference between the host O/S and the container platform. 

Please provide any additional information to help identify the issue if the above does not get you a resolution.

~Mike


这篇关于授权令牌在当前时间无效。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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