내 PHP 스크립트에 AWS DynamoDB의 연결을 시도했다, 내가 XAMPP하여 브라우저에서 스크립트를 열 때, 나는 다음과 같은 오류 있어요 :누락 필요한 클라이언트 구성 옵션 : 버전
Fatal error: Uncaught exception 'InvalidArgumentException` with message 'Missing required client configuration options: version: (string) A "version" configuration value is required. Specifying a version constraint ensures that your code will not be affected by a breaking change made to the service. For example, when using Amazon S3, you can lock your API version to "2006-03-01". Your build of the SDK has the following version(s) of "dynamodb": * "2012-08-10" * "2011-12-05" You may provide "latest" to the "version" configuration value to utilize the most recent available API version that your client's API provider can find. Note: Using 'latest' in a production application is not recommended. A list of available API versions can be found on each client's API documentation page: http://docs.aws.amazon.com/aws-sdk-php/v3/api/index.html . If you are unable to load a specific API version, then you may need to update your copy of the SDK.' in C:\Users\Lenovo\xampp\htdocs\public_html\zip\aws\Aws in C:\Users\Lenovo\xampp\htdocs\public_html\zip\aws\Aws\ClientResolver.php on line 364
이가이다 ClientResolver.php의 코드 블록 364 행 :
private function throwRequired(array $args)
{
$missing = [];
foreach ($this->argDefinitions as $k => $a) {
if (empty($a['required'])
|| isset($a['default'])
|| array_key_exists($k, $args)
) {
continue;
}
$missing[] = $this->getArgMessage($k, $args, true);
$msg = "Missing required client configuration options: \n\n";
$msg .= implode("\n\n", $missing);
throw new IAE($msg); // This is line 364
}
이 문제를 해결할 수 있도록 도와 주시겠습니까? 필자는이 모든 PHP 주제에 대해 새로운 입장입니다.