Skip to content

Commit c860e5d

Browse files
authored
adds troubleshooting to spanner README (GoogleCloudPlatform#417)
1 parent 3281235 commit c860e5d

File tree

4 files changed

+171
-165
lines changed

4 files changed

+171
-165
lines changed

monitoring/test/monitoringTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function testCreateMetric()
5151
'metric_id' => self::$metricId,
5252
]);
5353
$this->assertContains(self::$metricId, $output);
54-
});
54+
}, 10);
5555
}
5656

5757
/** @depends testCreateMetric */

spanner/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,14 @@ To run the Spanner Samples:
9393
update-data Updates sample data in the database.
9494

9595

96+
## Troubleshooting
97+
98+
If you get the following error, set the environment variable `GCLOUD_PROJECT` to your project ID:
99+
100+
```
101+
[Google\Cloud\Core\Exception\GoogleException]
102+
No project ID was provided, and we were unable to detect a default project ID.
103+
```
96104

97105
## The client library
98106

spanner/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"require": {
3-
"google/cloud-spanner": "^0.2.2",
3+
"google/cloud-spanner": "^0.4",
44
"symfony/console": "^3.2"
55
},
66
"require-dev": {

0 commit comments

Comments
 (0)