Comments (12)
Could you double check the serialized content? Is it possible classes that are in the blob were rename/moved/etc?
This is generally the issue. If not, can you post the blob of serialized notification here and I'll see what the issue is at those bytes.
from snooze.
Hey @atymic ,
Thanks for the quick reply.
My Blob contains some sensitive info, I have sent you the Blob as a file via email.
from snooze.
Hi there, just curious to know if there are any updates on this as I am experiencing the same issue.
from snooze.
Hi @ecoplace ,
As my blob contains inline-image & when serialized it's exceeding the size of 600kb is an issue in my case.
For now, more than 600kb is not supported in the data type of this package.
@atymic may send PR for this fix but meantime you can avoid adding huge data.
from snooze.
Sorry, i've been out on holiday. Currently we are using a TEXT
field, which has a 64kb
limit. I will change this to MEDIUMTEXT
to support up to 16MB :)
from snooze.
But in my case, I am already using LONGTEXT
& the problem presist.
from snooze.
from snooze.
Yes. I have not removed or moved any class as well.
from snooze.
In my case, I am using postgresql which I do not believe is using a limit for the text column field.
This is what the notification data looks like
"notification" => "O:52:"charityBay\Notifications\NotificationGenericTemplate":16:{s:11:"\x00*\x00template";O:45:"Illuminate\Contracts\Database\ModelIdentifier":4:{s:5:"class";s:31:"charityBay\NotificationTemplate";s:2:"id";i:22;s:9:"relations";a:0:{}s:10:"connection";s:5:"pgsql";}s:61:"\x00charityBay\Notifications\NotificationGenericTemplate\x00auction";O:45:"Illuminate\Contracts\Database\ModelIdentifier":4:{s:5:"class";s:18:"charityBay\Auction";s:2:"id";i:274;s:9:"relations";a:0:{}s:10:"connection";s:5:"pgsql";}s:71:"\x00charityBay\Notifications\NotificationGenericTemplate\x00other_information";N;s:61:"\x00charityBay\Notifications\NotificationGenericTemplate\x00payment";N;s:64:"\x00charityBay\Notifications\NotificationGenericTemplate\x00action_url";s:44:"http://charitybay.test/auction-details/table";s:68:"\x00charityBay\Notifications\NotificationGenericTemplate\x00app_action_url";s:21:"auction-details/table";s:71:"\x00charityBay\Notifications\NotificationGenericTemplate\x00notification_name";s:19:"payment_reminder_24";s:2:"id";N;s:6:"locale";N;s:10:"connection";N;s:5:"queue";N;s:15:"chainConnection";N;s:10:"chainQueue";N;s:5:"delay";N;s:10:"middleware";a:0:{}s:7:"chained";a:0:{}} ◀"
and this is what's being saved :
O:52:"charityBay\Notifications\NotificationGenericTemplate":16:{s:11:"
from snooze.
It turned out that my issue was unrelated to the size but more todo with the fact that postgresql doesn't handle null bytes very well. Some suggested base64 encode and decode prior and after serialisation but I experienced some errors with this. Instead, I went for a quick and dirty fix to replace the null bytes with a string and back again.
#55
from snooze.
@atymic any update on this?
from snooze.
Should be closed by #64
from snooze.
Related Issues (20)
- Laravel 9 Support? HOT 2
- The script tried to call a method on an incomplete object... HOT 3
- Add `shouldRescheduleFor` method (similar to `shouldInterrupt`) HOT 2
- Feature Request: Use Prunable trait HOT 1
- Multi-Tenancy HOT 8
- SQL Error sending scheduled notification
- Fix date casts for Laravel 10 HOT 3
- Cannot access custom data HOT 3
- Feature request to throttle notification sending HOT 1
- Recurring notification HOT 1
- Possible Bug: Multiple Notifications sent via concurrent snooze:send command HOT 2
- Accessing send_at attribute HOT 1
- Sending notifications on one server HOT 3
- How to get notifications data from scheduled message
- Notifications Event : NotificationSent should fire after commits HOT 3
- Please check your example #3 HOT 1
- [BUG] QueryException: Incorrect table name while running migrate command HOT 4
- Does it have sms notifications? HOT 1
- Bulk/Multiple notifiables HOT 2
- findByMeta with target HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from snooze.