Page MenuHomePhabricator
Paste P2094

(An Untitled Masterwork)
ActivePublic

Authored by amckinley on Apr 12 2018, 10:45 PM.
> POST /doc/2010-08-01/?Version=2010-08-01&Namespace=Phacility&Action=PutMetricData&MetricData.member.1.MetricName=foobar&MetricData.member.1.Value=42&MetricData.member.1.Dimensions.member.1.Name=InstanceID&MetricData.member.1.Dimensions.member.1.Value=i-fcf6823c&MetricData.member.2.MetricName=bangbaz&MetricData.member.2.Value=101&MetricData.member.2.Dimensions.member.1.Name=InstanceID&MetricData.member.2.Dimensions.member.1.Value=i-fcf6823c&MetricData.member.2.Dimensions.member.2.Name=InstanceType&MetricData.member.2.Dimensions.member.2.Value=m3.large HTTP/1.1
Host: monitoring.us-west-1.amazonaws.com
Accept: */*
X-Amz-Date: 20180412T224449Z
Authorization: AWS4-HMAC-SHA256 Credential=AKIAITTBCMVG5IUSW3NQ/20180412/us-west-1/cloudwatch/aws4_request,SignedHeaders=host;x-amz-date,Signature=f7809dc8218f7423adc6143c1477b1ed7b1c4cc3b62bc3dfe34670e5833e7e81
Content-Length: 0
Content-Type: application/x-www-form-urlencoded
< HTTP/1.1 400 Bad Request
< x-amzn-RequestId: 1b5337b7-3ea3-11e8-bf8a-512946c10648
< Content-Type: text/xml
< Content-Length: 967
< Date: Thu, 12 Apr 2018 22:44:48 GMT
< Connection: close
<
* Closing connection 0
[2018-04-12 22:44:49] EXCEPTION: (PhutilAWSException) AWS Request Failed
HTTP Status Code: 400
Response Body: <ErrorResponse xmlns="http://monitoring.amazonaws.com/doc/2010-08-01/">
<Error>
<Type>Sender</Type>
<Code>IncompleteSignature</Code>
<Message>When Content-Type:application/x-www-form-urlencoded, URL cannot include query-string parameters (after '?'): '/doc/2010-08-01/?Version=2010-08-01&amp;Namespace=Phacility&amp;Action=PutMetricData&amp;MetricData.member.1.MetricName=foobar&amp;MetricData.member.1.Value=42&amp;MetricData.member.1.Dimensions.member.1.Name=InstanceID&amp;MetricData.member.1.Dimensions.member.1.Value=i-fcf6823c&amp;MetricData.member.2.MetricName=bangbaz&amp;MetricData.member.2.Value=101&amp;MetricData.member.2.Dimensions.member.1.Name=InstanceID&amp;MetricData.member.2.Dimensions.member.1.Value=i-fcf6823c&amp;MetricData.member.2.Dimensions.member.2.Name=InstanceType&amp;MetricData.member.2.Dimensions.member.2.Value=m3.large'</Message>
</Error>
<RequestId>1b5337b7-3ea3-11e8-bf8a-512946c10648</RequestId>
</ErrorResponse>
at [<phutil>/src/future/aws/PhutilAWSFuture.php:165]
libcore(), phutil(head=master, ref.master=1ad42491e44a)
#0 PhutilAWSFuture::didReceiveResult(array) called at [<phutil>/src/future/FutureProxy.php:58]
#1 FutureProxy::getResult() called at [<phutil>/src/future/FutureProxy.php:35]
#2 FutureProxy::resolve() called at [<libcore>/workflow/provision/CoreProvisionWorkflow.php:94]
#3 CoreProvisionWorkflow::resolveAWSMethod(PhutilAWSCloudWatchFuture) called at [<libcore>/workflow/provision/CoreProvisionWorkflow.php:77]
#4 CoreProvisionWorkflow::resolveCloudWatchSubmit(string, array) called at [<libcore>/workflow/provision/CoreProvisionStatsWorkflow.php:33]
#5 CoreProvisionStatsWorkflow::execute(PhutilArgumentParser) called at [<phutil>/src/parser/argument/PhutilArgumentParser.php:441]
#6 PhutilArgumentParser::parseWorkflowsFull(array) called at [<phutil>/src/parser/argument/PhutilArgumentParser.php:333]
#7 PhutilArgumentParser::parseWorkflows(array) called at [/Users/amckinley/src/phacility/core/scripts/provision.php:19]

Event Timeline

amckinley created this paste.Apr 12 2018, 10:45 PM