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
Problem 1
- Conclusion: don't install google/cloud-functions-framework v0.7.2
- Conclusion: don't install google/cloud-functions-framework v0.7.1
- Conclusion: remove guzzlehttp/psr7 2.0.0
- Installation request for google/cloud-functions-framework ^0.7 -> satisfiable by google/cloud-functions-framework[v0.7.0, v0.7.1, v0.7.2].
- Conclusion: don't install guzzlehttp/psr7 2.0.0
- google/cloud-functions-framework v0.7.0 requires guzzlehttp/psr7 ^1.6 -> satisfiable by guzzlehttp/psr7[1.6.0, 1.6.1, 1.7.0, 1.8.0, 1.8.1, 1.8.2].
- Can only install one of: guzzlehttp/psr7[1.7.0, 2.0.0].
- Can only install one of: guzzlehttp/psr7[1.8.0, 2.0.0].
- Can only install one of: guzzlehttp/psr7[1.8.1, 2.0.0].
- Can only install one of: guzzlehttp/psr7[1.8.2, 2.0.0].
- Can only install one of: guzzlehttp/psr7[1.6.0, 2.0.0].
- Can only install one of: guzzlehttp/psr7[1.6.1, 2.0.0].
- Installation request for guzzlehttp/psr7 (locked at 2.0.0) -> satisfiable by guzzlehttp/psr7[2.0.0].
Installation failed, reverting ./composer.json to its original content.; Error ID: caafae72
-------------- Installing Google's router
Nothing to install, update or remove
Generating optimized autoload files
Warning: Ambiguous class resolution, "Google\CloudFunctions\CloudEvent" was found 2x: in "D:/www/cg-platby-test/app/vendor/google/cloud-functions-framework/src/CloudEvent.php" and "D:/ww
w/cg-platby-test/app/vendor/runtime/google-cloud/google\CloudEvent.php", the first will be used.
Warning: Ambiguous class resolution, "Google\CloudFunctions\Context" was found 2x: in "D:/www/cg-platby-test/app/vendor/google/cloud-functions-framework/src/Context.php" and "D:/www/cg-p
latby-test/app/vendor/runtime/google-cloud/google\Context.php", the first will be used.
Warning: Ambiguous class resolution, "Google\CloudFunctions\LegacyEventMapper" was found 2x: in "D:/www/cg-platby-test/app/vendor/google/cloud-functions-framework/src/LegacyEventMapper.p
hp" and "D:/www/cg-platby-test/app/vendor/runtime/google-cloud/google\LegacyEventMapper.php", the first will be used.
37 packages you are using are looking for funding.
Use the composer fund command to find out more!
--------------- and then deployed:
*5 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught InvalidArgumentException: Function target is not callable: "throwException" in /workspace/vendor/google/cloud-functions-framework/router.php:68
Stack trace:
#0 /workspace/vendor/google/cloud-functions-framework/router.php(77): {closure}()
The text was updated successfully, but these errors were encountered:
petr-ekl-itcube
changed the title
Problems with Functions when PHP74 is not preview anymore
Problems integrating Functions when PHP74 is not preview anymore
Sep 24, 2021
Maybe there where changes on the google side which did fix it, can you confirm that it works also for you again?
Keep in mind that google cloud does not yet have support for PHP 8, so you should have a composer.lock which was generated with PHP 7.4 in your project directory, else I did in my case also get an error as I had some PHP 8 package first in my composer lock which I needed to downgrade.
Hi Tobias.
We are developing with Symfony and Google Functions. It's fresh so there are changes probably. Today we are facing some bad news.
We have problem from today as Coposer 1 run by deploy script from google forces to install their own router and crashes on it.
When I do it myself before, there starts to be conflict and google in autoload and router is invoked as the first so your library is out of work.
Maybe we are not the only one or we deploy differently. Do you have any suggestions?
Is there any way to share knowledge around your project than mailing you?
-------------------- Not installing Google's router:
ERROR: (gcloud.functions.deploy) OperationError: code=3, message=Build failed: Warning from https://repo.packagist.org: Support for Composer 1 is deprecated and some packages will not be available. You should upgrade to Composer 2. See https://blog.packagist.com/deprecating-composer-1-support/
Warning from https://repo.packagist.org: Support for Composer 1 is deprecated and some packages will not be available. You should upgrade to Composer 2. See https://blog.packagist.com/deprecating-composer-1-support/
./composer.json has been updated
Loading composer repositories with package information
Warning from https://repo.packagist.org: Support for Composer 1 is deprecated and some packages will not be available. You should upgrade to Composer 2. See https://blog.packagist.com/deprecating-composer-1-support/
Updating dependencies (including require-dev)
Restricting packages listed in "symfony/symfony" to "5.3.*"
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Conclusion: don't install google/cloud-functions-framework v0.7.2
- Conclusion: don't install google/cloud-functions-framework v0.7.1
- Conclusion: remove guzzlehttp/psr7 2.0.0
- Installation request for google/cloud-functions-framework ^0.7 -> satisfiable by google/cloud-functions-framework[v0.7.0, v0.7.1, v0.7.2].
- Conclusion: don't install guzzlehttp/psr7 2.0.0
- google/cloud-functions-framework v0.7.0 requires guzzlehttp/psr7 ^1.6 -> satisfiable by guzzlehttp/psr7[1.6.0, 1.6.1, 1.7.0, 1.8.0, 1.8.1, 1.8.2].
- Can only install one of: guzzlehttp/psr7[1.7.0, 2.0.0].
- Can only install one of: guzzlehttp/psr7[1.8.0, 2.0.0].
- Can only install one of: guzzlehttp/psr7[1.8.1, 2.0.0].
- Can only install one of: guzzlehttp/psr7[1.8.2, 2.0.0].
- Can only install one of: guzzlehttp/psr7[1.6.0, 2.0.0].
- Can only install one of: guzzlehttp/psr7[1.6.1, 2.0.0].
- Installation request for guzzlehttp/psr7 (locked at 2.0.0) -> satisfiable by guzzlehttp/psr7[2.0.0].
Installation failed, reverting ./composer.json to its original content.; Error ID: caafae72
-------------- Installing Google's router
Nothing to install, update or remove
Generating optimized autoload files
Warning: Ambiguous class resolution, "Google\CloudFunctions\CloudEvent" was found 2x: in "D:/www/cg-platby-test/app/vendor/google/cloud-functions-framework/src/CloudEvent.php" and "D:/ww
w/cg-platby-test/app/vendor/runtime/google-cloud/google\CloudEvent.php", the first will be used.
Warning: Ambiguous class resolution, "Google\CloudFunctions\Context" was found 2x: in "D:/www/cg-platby-test/app/vendor/google/cloud-functions-framework/src/Context.php" and "D:/www/cg-p
latby-test/app/vendor/runtime/google-cloud/google\Context.php", the first will be used.
Warning: Ambiguous class resolution, "Google\CloudFunctions\LegacyEventMapper" was found 2x: in "D:/www/cg-platby-test/app/vendor/google/cloud-functions-framework/src/LegacyEventMapper.p
hp" and "D:/www/cg-platby-test/app/vendor/runtime/google-cloud/google\LegacyEventMapper.php", the first will be used.
37 packages you are using are looking for funding.
Use the
composer fund
command to find out more!--------------- and then deployed:
*5 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught InvalidArgumentException: Function target is not callable: "throwException" in /workspace/vendor/google/cloud-functions-framework/router.php:68
Stack trace:
#0 /workspace/vendor/google/cloud-functions-framework/router.php(77): {closure}()
The text was updated successfully, but these errors were encountered: