Giter Club home page Giter Club logo

Comments (4)

mrVrAlex avatar mrVrAlex commented on August 9, 2024 1

Yes with gRPC extension it is worked properly.
But if google/cloud-pubsub v2.x and others (which depends on new EmulatorTrait) not works with emulators via http protocol - then it is major breaking changes?
Maybe this should reflect in changelog & documentation?
(BTW: in our case we can not use grpc extension in PHP because it conflict with swoole / openswoole extension)

from google-cloud-php.

bshaffer avatar bshaffer commented on August 9, 2024

Hello! Thank you for commenting on this. Does it work when you install the grpc extension for PHP? If so, I suggest doing this.

In the meantime, if the emulator requires gRPC, we should wrap the EmulatorTrait to check if grpc is installed, and throw an exception if it isn't.

from google-cloud-php.

bshaffer avatar bshaffer commented on August 9, 2024

(BTW: in our case we can not use grpc extension in PHP because it conflict with swoole / openswoole extension)

Can you elaborate more on this? This is news to me, and it's something we should file as a bug in the grpc repo to get fixed.

from google-cloud-php.

bshaffer avatar bshaffer commented on August 9, 2024

@mrVrAlex

it is major breaking changes?

No, because the emulators have never worked with REST, only with gRPC. To confirm this, I checked out v0.233.0 (which is the same as google/cloud-pubsub:v1.51.1, the last release before 2.0), and used composer install --prefer-lowest, and received the same error you have here. So AFAICT, REST has never worked in the emulator... there does not seem to be any regression here.

We could open this as a feature request against gcloud, but otherwise this is out of our (the client library team's) hands.

from google-cloud-php.

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.