Should broadcast event is giving error. It's trying to data in queue instead of payload of jobs table. #33244
Unanswered
alimranahmed
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Laravel Version: 5.8.38
Facing a weird problem in queue. May be I am doing something wrong with event and queue.
Background
I have a an Event, that event is being broadcasted through pusher, so, then event is implementing
ShouldBroadcast
and overridingbroadcastWith()
that just return an array. Just to keep informed, thisbroadcastWith()
method sometimes may be a very big array. But it's not as big as the limit of broadcasting through pusher.So, when the event is being dispatched, it's trying to save the event's data in jobs table, which is expected. But we are getting this error when that event triggered:
It's trying to save the data in queue columns instead of payload column of jobs.
jobs
is a table generated by Laravel itself and the type of thequeue
column isvarchar(255)
. Why Laravel itself is trying to that big json data inqueue
table when its capacity is only 255? It should save this big json inpayload
columns instead ofqueue
. I am sure changing the data type and increasing the queue column's capacity is not the solution here.So, What am I doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions