gactions列表错误:调用者没有权限

时间:2018-06-26 18:52:19

标签: actions-on-google

gactions cli Oauth处理对我来说很麻烦-按照初始化说明进行操作后无法连接:

$ gactions --verbose list --project JovoTest
Checking for updates...
Successfully fetched update metadata
Finished checking for updates -- no updates available
Reading credentials from: 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%2Factions.builder&state=state 
Enter authorization code: 
4/AACp4YGiTu6LNJGbNBU3qV3hDbLL4a4d5SuN72UuIO6fXESUChlTF5s
Saving credentials to: creds.data
GET /v2/agents/JovoTest/versions?pageSize=10 HTTP/1.1
Host: actions.googleapis.com
User-Agent: Gactions-CLI/2.1.3 (darwin; amd64; stable/dff629ae63fd0b047d19687b79274524569714e6)
Accept-Encoding: gzip


ERROR: Couldn't fetch versions
ERROR: The caller does not have permission
2018/06/26 12:43:02 Server did not return HTTP 200

1 个答案:

答案 0 :(得分:2)

我认为这与工具的身份验证无关。我相信您正在建立的专案没有可用的动作版本。我尝试了一些自己的项目:

~/Downloads/gactions list --project assistant-sdk-project

ERROR: Couldn't fetch versions
ERROR: Requested entity was not found.

~/Downloads/gactions list --project felker-action-1

Version           Create Time   Update Time  Approval  Deployment Status
v-[1]-2018-03-10  3 months ago  1 month ago  APPROVED  DEPLOYED

您目前为动作设置了什么?