Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/go/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Amazon web services Go AWS SDK“;无法确定要授权的服务/操作名称";_Amazon Web Services_Go_Aws Sdk Go - Fatal编程技术网

Amazon web services Go AWS SDK“;无法确定要授权的服务/操作名称";

Amazon web services Go AWS SDK“;无法确定要授权的服务/操作名称";,amazon-web-services,go,aws-sdk-go,Amazon Web Services,Go,Aws Sdk Go,我正在使用Go SDK连接到Kinesis视频流服务。当发出GetMedia请求时,我收到一个403响应,其主体如下: <AccessDeniedException> <Message>Unable to determine service/operation name to be authorized</Message> </AccessDeniedException> 答复: HTTP/1.1 403 Forbidden Content-

我正在使用Go SDK连接到Kinesis视频流服务。当发出
GetMedia
请求时,我收到一个403响应,其主体如下:

<AccessDeniedException>
  <Message>Unable to determine service/operation name to be authorized</Message>
</AccessDeniedException>
答复:

HTTP/1.1 403 Forbidden
Content-Length: 130
Date: Fri, 12 Jan 2018 01:25:11 GMT
X-Amzn-Requestid: 6f1701aa-f737-11e7-bcd5-c70a68e72add

<AccessDeniedException>
  <Message>Unable to determine service/operation name to be authorized</Message>
</AccessDeniedException>

我找到了解决办法。从文件来看


“您必须首先调用GetDataEndpoint API来获取一个端点,然后才能向该端点发送GetMedia请求。”

这很有帮助,谢谢:)
HTTP/1.1 403 Forbidden
Content-Length: 130
Date: Fri, 12 Jan 2018 01:25:11 GMT
X-Amzn-Requestid: 6f1701aa-f737-11e7-bcd5-c70a68e72add

<AccessDeniedException>
  <Message>Unable to determine service/operation name to be authorized</Message>
</AccessDeniedException>
{
    "Output": {
        "__type": "com.amazon.coral.service#UnknownOperationException",
        "message": null
    },
    "Version": "1.0"
}