php-docs-samples icon indicating copy to clipboard operation
php-docs-samples copied to clipboard

Spanner sample `create_client_with_query_options` failing

Open larkee opened this issue 5 years ago • 0 comments

The sample is failing with the following error:

1) Google\Cloud\Samples\Spanner\spannerTest::testCreateClientWithQueryOptions
Google\Cloud\Core\Exception\BadRequestException: {
    "message": "Requested optimizer statistics package not found: auto_20191128_14_47_22UTC.",
    "code": 3,
    "status": "INVALID_ARGUMENT",
    "details": [
        {
            "@type": "grpc-server-stats-bin",
            "data": "<Unknown Binary Data>"
        }
    ]

This is because the package no longer exists. Pinning the sample to latest will be more reliable.

larkee avatar Jul 29 '21 11:07 larkee