设置:我已经设置了一个测试套件,因为我正在进行此集成,并且它试图反复创建完全相同的6个项目。他们会在Google Analytics网站中手动删除测试。所有受众至少成功创建过一次。
但是,我每次都会对随机受众群体造成超过50%的失败率,而且我还没有得到API端点的响应,但没有包含错误。首先,我看到它是特定受众的问题,但是每个人都是在至少一个测试中创建的。
可能导致这种情况的原因是什么?这个API端点是非常错误的吗?
最后,我一次创造~500,并且请求限制为1.5 /秒,我正在辩论只是将它发射10次。
以下是6批次中4次失败之一的转储。
"response-projectTitle-new" => Google_Service_Exception {#346
#errors: array:1 [
0 => array:3 [
"domain" => "global"
"reason" => "internalError"
"message" => "There was an internal error."
]
]
#message: "{"error":{"errors":[{"domain":"global","reason":"internalError","message":"There was an internal error."}],"code":500,"message":"There was an internal error."}}"
#code: 500
#file: "/Users/computerUser/Sites/projectTitle/packages/analytics/vendor/google/apiclient/src/Google/Http/REST.php"
#line: 118
trace: {
/Users/computerUser/Sites/projectTitle/packages/analytics/vendor/google/apiclient/src/Google/Http/REST.php:118 { …}
/Users/computerUser/Sites/projectTitle/packages/analytics/vendor/google/apiclient/src/Google/Http/Batch.php:175 { …}
/Users/computerUser/Sites/projectTitle/packages/analytics/vendor/google/apiclient/src/Google/Http/Batch.php:132 { …}
/Users/computerUser/Sites/projectTitle/packages/analytics/src/Services/Management/RemarketingAudience.php:71 {
›
› $results = $batch->execute();
›
}
/Users/computerUser/Sites/projectTitle/packages/analytics/tests/Integration/AnalyticsManagementServiceTest.php:64 { …}
phar:///usr/local/Cellar/phpunit/7.1.3/bin/phpunit/phpunit/Framework/TestCase.php:1143 { …}
phar:///usr/local/Cellar/phpunit/7.1.3/bin/phpunit/phpunit/Framework/TestCase.php:840 { …}
phar:///usr/local/Cellar/phpunit/7.1.3/bin/phpunit/phpunit/Framework/TestResult.php:645 { …}
phar:///usr/local/Cellar/phpunit/7.1.3/bin/phpunit/phpunit/Framework/TestCase.php:798 { …}
phar:///usr/local/Cellar/phpunit/7.1.3/bin/phpunit/phpunit/Framework/TestSuite.php:776 { …}
phar:///usr/local/Cellar/phpunit/7.1.3/bin/phpunit/phpunit/TextUI/TestRunner.php:529 { …}
phar:///usr/local/Cellar/phpunit/7.1.3/bin/phpunit/phpunit/TextUI/Command.php:198 { …}
phar:///usr/local/Cellar/phpunit/7.1.3/bin/phpunit/phpunit/TextUI/Command.php:151 { …}
/usr/local/Cellar/phpunit/7.1.3/bin/phpunit:588 { …}
}
}