我在virtualbox上安装了windows7,以便在我的activeX服务器的activeX网页上使用。
使用进行身份验证,在身份验证过程中出现以下错误:
google.api_core.exceptions.ServiceUnavailable: 503 Getting metadata from plugin failed with error: ('invalid_grant: Invalid JWT: Token must be a short-lived token (60 minutes) and in a reasonable timeframe. Check your iat and exp values and use a clock with skew to account for clock differences between systems.')Windows Internet时间同步,时间是同步的,但会发生错误。但普通Windows上的代码相同,不会发生错误。
client = vision.ImageAnnotatorClient()
imgByteArr = io.BytesIO()
textImage.save(imgByteArr, format='PNG')
content = imgByteArr.getvalue()
image = types.Image(content=content)
response = client.text_detection(image=image)
labels = response.text_annotations
print(labels[0].description)发布于 2019-07-10 11:57:29
故障排除:重置主机os时间(设置NTP)
问题是主机操作系统和来宾操作系统之间的时间差。
ln -sf / usr / share / zoneinfo / Asia / Seoul / etc / localtime
rdate -s time.bora.net
hwclock --systohc
date
hwclock在time.bora.net,查找并配置适当的ntp(网络时间协议)服务器。适合你的区域
https://stackoverflow.com/questions/56929699
复制相似问题