brefphp / bref

Serverless PHP on AWS Lambda
https://bref.sh
MIT License
3.06k stars 365 forks source link

Lambda error: Call to undefined method Bref\Event\Http\HttpRequestEvent::getRequestContext() #1841

Open raymonsupportbook opened 3 weeks ago

raymonsupportbook commented 3 weeks ago

Description:

When opening my webapp development endpoint (localhost), I sometimes encouter an error: Lambda error: Call to undefined method Bref\Event\Http\HttpRequestEvent::getRequestContext()

I am using the php-8.3 bref fpm docker image and bref 2.2.1 in symfony (7.1). When I encouter this error, and refresh the page, it loads, and after refresh it returns the Lambda error.

Has someone else encoutered this problem before?

dovab commented 3 weeks ago

I've also encountered this issue. Weird thing is, when I refresh the page, the error is gone, but when I refresh again it is back.

mnapoli commented 3 weeks ago

Hi, this is indeed surprising.

Can you clarify that you all work together at the same company? @raymonsupportbook, @dovab, @dylansupportbook, @arjan127? (since you all commented or added a 👍 in the span of 2 minutes). That helps me understand the impact here: is one project impacted, or are multiple companies/users impacted.

If you all have different setups, can you share the complete error logs, and maybe add as many details as you can?

raymonsupportbook commented 3 weeks ago

that's correct, but we are using it in 10 projects (all of the same kind)