Coder Social home page Coder Social logo

Comments (12)

atymic avatar atymic commented on June 30, 2024

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.

naran3434 avatar naran3434 commented on June 30, 2024

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.

 avatar commented on June 30, 2024

Hi there, just curious to know if there are any updates on this as I am experiencing the same issue.

from snooze.

naran3434 avatar naran3434 commented on June 30, 2024

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.

atymic avatar atymic commented on June 30, 2024

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.

naran3434 avatar naran3434 commented on June 30, 2024

But in my case, I am already using LONGTEXT & the problem presist.

Screen Shot 2020-07-26 at 10 54 52 AM

from snooze.

atymic avatar atymic commented on June 30, 2024

from snooze.

naran3434 avatar naran3434 commented on June 30, 2024

Yes. I have not removed or moved any class as well.

from snooze.

 avatar commented on June 30, 2024

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.

 avatar commented on June 30, 2024

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.

naran3434 avatar naran3434 commented on June 30, 2024

@atymic any update on this?

from snooze.

atymic avatar atymic commented on June 30, 2024

Should be closed by #64

from snooze.

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.