-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Serialization of Closure Not Allowed #1
Comments
More details, it only seems to occur in my Redis Store. Here's a full stack trace: https://sentry.io/share/issue/9b7f938e4bb6410f9ae6d5c2bbddae46/ |
Following the issue, did you resolve the issue? I've tried it on Laravel 5.7 and Laravel 5.8 with no problems. Seems like you have something attached to the response object that cannot be serialized. |
@javidalpe I haven't been able to resolve this yet because it's a really intermittent issue that occurs in the production environment with a decent volume of requests, so I haven't been able to reproduce it and I can't leave the prod env broken. I'm not sure of the best way to go about debugging it yet. |
In my case I have found that if $response is of type Illuminate\Http\Response, Cache is able to serialise and save it. However if $response is of type Illuminate\Http\JsonResponse I get the Serialization of closure is not allowed error message. I don't any work around for it. any suggestions? |
For any one still having the issue, this works fine for me
|
this issue still persist. It kinda conflicting with my request validation. @javidalpe |
After upgrading to Laravel 5.7, I'm getting a Serialization of Closure not allowed on a ton of my requests. The error went away when I disabled this middleware. Help!
The text was updated successfully, but these errors were encountered: