You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading to version 7.0, the service account isn't loaded anymore and causes an Unable to determine the Firebase Project ID exception.
The Upgrade 7.0 guide doesn't mention the removed possibility to pass the service account as a string-encoded JSON object.
Is it correct that this feature has been removed or has it been removed by accident?
Installed packages
kreait/firebase-bundle 5.0.0 Symfony Bundle for the Firebase Admin SDKkreait/firebase-php 7.0.2 Firebase Admin SDKkreait/firebase-tokens 4.0.0 A library to work with Firebase tokens
PHP version and extensions
composer 2.5.1 Composer package
composer-plugin-api 2.3.0 The Composer Plugin API
composer-runtime-api 2.2.2 The Composer Runtime API
ext-ctype 8.1.14 The ctype PHP extension
ext-curl 8.1.14 The curl PHP extension
ext-date 8.1.14 The date PHP extension
ext-dom 20031129 The dom PHP extension
ext-fileinfo 8.1.14 The fileinfo PHP extension
ext-filter 8.1.14 The filter PHP extension
ext-ftp 8.1.14 The ftp PHP extension
ext-gd 8.1.14 The gd PHP extension
ext-hash 8.1.14 The hash PHP extension
ext-iconv 8.1.14 The iconv PHP extension
ext-intl 8.1.14 The intl PHP extension
ext-json 8.1.14 The json PHP extension
ext-libxml 8.1.14 The libxml PHP extension
ext-mbstring 8.1.14 The mbstring PHP extension
ext-mysqlnd 0 The mysqlnd PHP extension (actual version: mysqlnd 8.1.14)
ext-openssl 8.1.14 The openssl PHP extension
ext-pcre 8.1.14 The pcre PHP extension
ext-pdo 8.1.14 The PDO PHP extension
ext-pdo_mysql 8.1.14 The pdo_mysql PHP extension
ext-pdo_sqlite 8.1.14 The pdo_sqlite PHP extension
ext-phar 8.1.14 The Phar PHP extension
ext-posix 8.1.14 The posix PHP extension
ext-readline 8.1.14 The readline PHP extension
ext-reflection 8.1.14 The Reflection PHP extension
ext-session 8.1.14 The session PHP extension
ext-simplexml 8.1.14 The SimpleXML PHP extension
ext-sodium 8.1.14 The sodium PHP extension
ext-spl 8.1.14 The SPL PHP extension
ext-sqlite3 8.1.14 The sqlite3 PHP extension
ext-tokenizer 8.1.14 The tokenizer PHP extension
ext-xml 8.1.14 The xml PHP extension
ext-xmlreader 8.1.14 The xmlreader PHP extension
ext-xmlwriter 8.1.14 The xmlwriter PHP extension
ext-zend-opcache 8.1.14 The Zend OPcache PHP extension
ext-zip 1.19.5 The zip PHP extension
ext-zlib 8.1.14 The zlib PHP extension
lib-curl 7.74.0 The curl library
lib-curl-libssh2 1.9.0 curl libssh2 version
lib-curl-openssl 1.1.1.14 curl OpenSSL version (1.1.1.14)
lib-curl-zlib 1.2.11 curl zlib version
lib-date-timelib 2021.18 date timelib version
lib-date-zoneinfo 2022.7 zoneinfo ("Olson") database for date
lib-fileinfo-libmagic 540 fileinfo libmagic version
lib-gd 2.0.35 The gd library
lib-gd-libjpeg 6.2 libjpeg version for gd
lib-gd-libpng 1.6.37 libpng version for gd
lib-iconv 2.31 The iconv library
lib-icu 67.1 The ICU unicode and globalization support library
lib-icu-cldr 37 ICU CLDR project version
lib-icu-unicode 13.0.0 ICU unicode version
lib-libsodium 1.0.18 The libsodium library
lib-libxml 2.9.10 libxml library version
lib-mbstring-libmbfl 1.3.2 mbstring libmbfl version
lib-mbstring-oniguruma 6.9.6 mbstring oniguruma version
lib-openssl 1.1.1.14 OpenSSL 1.1.1n 15 Mar 2022
lib-pcre 10.39 The pcre library
lib-pcre-unicode 14.0.0 PCRE Unicode version support
lib-pdo_sqlite-sqlite 3.34.1 The pdo_sqlite-sqlite library
lib-sqlite3-sqlite 3.34.1 The sqlite3-sqlite library
lib-zip-libzip 1.7.3 The zip-libzip library
lib-zlib 1.2.11 The zlib library
php 8.1.14 The PHP interpreter
php-64bit 8.1.14 The PHP interpreter, 64bit
php-ipv6 8.1.14 The PHP interpreter, with IPv6 support
Steps to reproduce the issue.
# Insert the commands issued in the terminal if they are needed# to reproduce the issue. Otherwise, delete this code block.
// Insert the PHP code to reproduce the issue. Please ensure that it is code that// can be copy pasted to reproduce it.
Error message/Stack trace
Message: "Unable to determine the Firebase Project ID" {"exception":"[object] (Kreait\\Firebase\\Exception\\RuntimeException(code: 0): Unable to determine the Firebase Project ID at /usr/src/app/vendor/kreait/firebase-php/src/Firebase/Factory.php:590)"}
Additional information
No response
The text was updated successfully, but these errors were encountered:
Uh, that has been an accident, thank you for discovering it! I just confirmed the missing capability by adding a failing test and will work on a fix right away! 💪🏻
Describe the bug
Since version 6, it seems to be possible to pass the service account via
GOOGLE_APPLICATION_CREDENTIALS
env variable as an encoded JSON object:https://github.com/kreait/firebase-php/blob/6.x/src/Firebase/Factory.php#L512
After upgrading to version 7.0, the service account isn't loaded anymore and causes an
Unable to determine the Firebase Project ID
exception.The Upgrade 7.0 guide doesn't mention the removed possibility to pass the service account as a string-encoded JSON object.
Is it correct that this feature has been removed or has it been removed by accident?
Installed packages
PHP version and extensions
Steps to reproduce the issue.
Error message/Stack trace
Additional information
No response
The text was updated successfully, but these errors were encountered: