firebase-ruby
firebase-ruby copied to clipboard
Unable to connect to Firestore Database
Hi all,
I am able to connect to Realtime databases, and work with them normally, but I am unable to connect to the "Firestore database". I have provided the URL structure required in this link, which looks roughly like:
https://firestore.googleapis.com/v1/projects/YOUR_PROJECT_ID/databases/(default)/documents/
But I get an error when I try to actually retrieve the data that's stored there.
I'm not sure why I am getting this error given that I am able to connect just fine the the realtime database option?
Here's the data returned:
{"error"=>
{"code"=>403,
"message"=>"Request had insufficient authentication scopes.",
"status"=>"PERMISSION_DENIED",
"details"=>
[{"@type"=>"type.googleapis.com/google.rpc.ErrorInfo",
"reason"=>"ACCESS_TOKEN_SCOPE_INSUFFICIENT",
"domain"=>"googleapis.com",
"metadata"=>
{"service"=>"firestore.googleapis.com",
"method"=>"google.firestore.v1.Firestore.GetOrListDocuments"}}]}}