Git Product home page Git Product logo

Comments (5)

jeromegamez avatar jeromegamez commented on July 22, 2024

Could you please make sure that you are using the latest version of the underlying SDK? It should be 5.6.0, a composer update should get it, and you can check with composer show | grep kreait

If you're using auto-discovery instead of a service account JSON key, please make sure that the FIREBASE_CREDENTIALS environment variables is not set.

from laravel-firebase.

marcoprodata avatar marcoprodata commented on July 22, 2024

output of composer show:
kreait/clock 1.0.1 A PHP 7.0 compatible clock abstraction
kreait/firebase-php 5.6.0 Firebase Admin SDK
kreait/firebase-tokens 1.10.0 A library to work with Firebase tokens
kreait/laravel-firebase 2.2.0 A Laravel package for the Firebase PHP Admin SDK

i set the audiscover to false and put the credential file in the root folder of api, the project when running in windows machine works, but when i deploy in a gcloud vm instance return this error

from laravel-firebase.

jeromegamez avatar jeromegamez commented on July 22, 2024

In that case, can you confirm that the environment variable FIREBASE_CREDENTIALS points to the correct location/path?

from laravel-firebase.

marcoprodata avatar marcoprodata commented on July 22, 2024

Ok, i was open the database with the wrong way,
$db = new FirestoreClient(
[
'projectId' => 'fir-xxxxxxxxxx',
]
);

now i open the db like this
$db = app('firebase.firestore')->database();

and this work, thanks for you support

from laravel-firebase.

jeromegamez avatar jeromegamez commented on July 22, 2024

You're welcome! 🌺

from laravel-firebase.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.