GoogleCloudPlatform / ios-docs-samples

iOS samples that demonstrate APIs and services of Google Cloud Platform.
Apache License 2.0
326 stars 209 forks source link

StopWatch: "shouldWait: false, token: nil, error: INTERNAL" #146

Open tansaku opened 3 years ago

tansaku commented 3 years ago

Please execute this shell command then replace it with your console output.

### OS
ProductName:    Mac OS X
ProductVersion: 10.15.6
BuildVersion:   19G2021

### POD
→ pod --version
1.9.3
→ echo "### Project"
### Project
→ git ls-tree --full-name --name-only HEAD Podfile
fatal: not a git repository (or any of the parent directories): .git
→ pwd
/Users/tansaku/Documents/Github/neurogrid/firebasetest

Problem | Feature

After various fixes to the stopwatch project as documented here:

https://github.com/GoogleCloudPlatform/ios-docs-samples/issues/142

I've managed to move the error message in the iOS logs on to the following:

shouldWait: false, token: nil, error: INTERNAL

and from the firebase function logs I see:

The project chatbot-285016 does not exist or it does not contain an active Cloud Datastore or Cloud Firestore database. Please visit http://console.cloud.google.com to create a project or https://console.cloud.google.com/datastore/setup?project=chatbot-285016 to add a Cloud Datastore or Cloud Firestore database. Note that Cloud Datastore or Cloud Firestore always have an associated App Engine app and this app must not be disabled.'

But having just enabled Cloud Firestore I still get the same INTERNAL error in iOS but I'm on to these errors in the firebase function logs:

Screenshot 2020-08-14 at 22 46 00

tansaku commented 3 years ago

aha, seem to have fixed it!

There was an earlier error in the log

'IAM Service Account Credentials API has not been used in project 539990170735 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/iamcredentials.googleapis.com/overview?project=539990170735 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.',

That's now enabled it

tansaku commented 3 years ago

Image from iOS (6)

colours are screwed up but this is me interacting with the bot - see https://github.com/material-components/material-components-ios/issues/7098#issuecomment-674290744