使用gactions更新操作包始终返回请求超时

问题描述:

我在操作控制台下创建了一个项目,并为智能家居应用程序制作了一个测试操作包。我想尝试上传我使用gactions的操作包。然而,我每次执行此命令使用gactions更新操作包始终返回请求超时

./gactions --verbose update --action_package action.json --project my_project_id 

结果始终是这样的:

Unable to update: Patch https://actions.googleapis.com/v2/agents/my_project_id?updateMask=agent.draftActionPackage.actions%2Cagent.draftActionPackage.conversations&validateOnly=false: Post https://accounts.google.com/o/oauth2/token: dial tcp 216.58.200.45:443: i/o timeout 

我检查了详细的日志,我注意到,它是从creds.data阅读一些数据

Reading credentials from: creds.data 

然后我注意到creds.data中的内容包含访问令牌和到期时间。但是到期时间是7月18日,这是从现在开始的很多天。我不确定这是否会导致超时错误。而且我也不知道如何更新creds.data以获得新的访问令牌。

好的。我注意到这个错误的一部分是我的净问题。但是我能打开雅虎和其他网站,而更新只是无效。但没关系,我只是换了一个不同的Wi-Fi。

然后我删除了creds.data。并再次执行更新命令,这将出来。

Gactions needs access to your Google account. Please copy & paste the URL below into a web browser and follow the instructions there. Then copy and paste the authorization code from the browser back here. 
Visit this URL: 
https://accounts.google.com/o/oauth2/auth?access_type=offline&client_id=237807841406-o6vu1tjkq8oqjub8jilj6vuc396e2d0c.apps.googleusercontent.com&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&response_type=code&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fassistant+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Factions.builder&state=state 
Enter authorization code: 

然后我按照上面的说明获得授权码,复制并粘贴到控制台中,现在一切正常。