Giter Club home page Giter Club logo

Comments (9)

bilulanlv avatar bilulanlv commented on August 30, 2024 2

Yeah I found the issue that when use old version of nginx it doesn't support http2 and it doesn't send proper request body to Google api so when update the nginx version everything solved. Thanks for your great support.

What is the nginx version number you are using?

from laravel-firebase.

kaustuv90 avatar kaustuv90 commented on August 30, 2024 1

Yeah I found the issue that when use old version of nginx it doesn't support http2 and it doesn't send proper request body to Google api so when update the nginx version everything solved.
Thanks for your great support.

from laravel-firebase.

jeromegamez avatar jeromegamez commented on August 30, 2024

If something works locally but not on a remote machine, it's usually something in the remote environment that doesn't work. I'm not familiar with this particular error, but it looks like a networking problem, perhaps there's a misbehaving proxy somewhere or another problem with the internet/network connection.

I can not do more than take guesses, but I'm quite sure this is not something I can fix in code, so I'll have to close this issue.

Please keep in mind that I don't work for Google, so I can't say anything about Firebase, the service. If you believe your environment has no problems, you might want to create a support issue with them.

Good luck!

from laravel-firebase.

kaustuv90 avatar kaustuv90 commented on August 30, 2024

Sorry but everything is correct on my side let me clear.
there is 2 different laravel project I created both are ^11.0 but on one its working but with another its not working if you want i can post both composer.json file. same server same firebase but one working another not. maybe laravel did something worn in new update.

those 2 projects are on both laravel 11 but one is old release and one is new. the new one does not work. as soon as I upgraded the old to new its stopped working.

you can try yourself installing the latest laravel.
something wrong with guzzle it seems

from laravel-firebase.

kaustuv90 avatar kaustuv90 commented on August 30, 2024

So now i figured out the issue
when using kreait/firebase-php:v7.9.1 it works fine but as soon as I upgrade to version v7.10.0 then I get the guzzle HTTP error

from laravel-firebase.

jeromegamez avatar jeromegamez commented on August 30, 2024

Thank you for providing this detail!

7.10 switched from using consequent HTTP/1.1 request to concurrent HTTP/2 requests. This by itself shouldn't be a problem, but the memory usage can increase, depending on how many requests are sent, due to changes on how these requests are handled by the SDK. How many messages are you sending?

It should be possible to reduce the memory footprint by sending the messages in batches instead of all at once.

from laravel-firebase.

jeromegamez avatar jeromegamez commented on August 30, 2024

Thank you for sharing your findings, I'm sure this will be very helpful to others stumbling upon this issue!

from laravel-firebase.

Smallplanegithub avatar Smallplanegithub commented on August 30, 2024

是的,我发现问题是,使用旧版本的 nginx 时,它不支持 http2,并且不会向 Google api 发送正确的请求主体,因此,当更新 nginx 版本时,所有问题都解决了。 感谢您的大力支持。
Boss, which version of Nginx are you ultimately using?

from laravel-firebase.

jeromegamez avatar jeromegamez commented on August 30, 2024

Could you please test with kreait/firebase-php#903 if this solves the issue?

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.