brefphp / laravel-bridge

Package to use Laravel on AWS Lambda with Bref
https://bref.sh/docs/frameworks/laravel.html
MIT License
314 stars 63 forks source link

Errors occur during runtime when `bootstrap/cache` has `routes.php` or misses `packages.php` and `services.php` #37

Closed pjxiao closed 2 years ago

pjxiao commented 3 years ago

The problem

Questions

An environment

Logs

a. when bootstrap/cache has routes.cache

START RequestId: ****-****-****-****-**** Version: $LATEST
Erroneous data format for unserializing 'Symfony\Component\Routing\CompiledRoute'
END RequestId: ****-****-****-****-****
REPORT RequestId: ****-****-****-****-****  Duration: 102.57 ms Billed Duration: 103 ms Memory Size: 512 MB Max Memory Used: 17 MB  
Unknown application error occurred

b. when bootstrap/cache is empty

The /var/task/bootstrap/cache directory must be present and writable.
START RequestId: ****-****-****-****-**** Version: $LATEST
The /var/task/bootstrap/cache directory must be present and writable.
END RequestId:  ****-****-****-****-****
REPORT RequestId:  ****-****-****-****-**** Duration: 100.26 ms Billed Duration: 101 ms Memory Size: 512 MB Max Memory Used: 14 MB  
Unknown application error occurred
francoisauclair911 commented 2 years ago

Did you ever find a solution ?

mnapoli commented 2 years ago

What I don't understand with this issue is how does that situation happen?

When following the official documentation is there any problem?

pjxiao commented 2 years ago

Sorry, I've left the team where bref was used, and I've forgotten the problem details. They may have used an older version. So I'll close this issue. I appreciate your replies.