-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
PG::InvalidParameterValue - ERROR: payload string too long #51
Comments
Yeah MessageVerifier generated strings are pretty long, since they serialize the whole object (duh). I’m planning to deep transform any model objects in the locals hash to GIDs: #38 |
Which means I guess - until this is finished - that futurism is limited to very simple objects only? Or is there a work around? |
Not at the moment, correct. I plan to approach this in the next weeks though |
If you like, you can try out #53 and see if it helps! |
@dannyvanhoof I just cut v0.5.0 - you can try out if that resolves your issue |
@dannyvanhoof have you had a chance to try out the latest version which incorporates #53? |
Sorry - I haven't, as we choose a different solution at that time, we're currently not working with futurism anymore... ...which however doesn't mean we won't in the (near) future... |
I just tried to implement my first "futurism" tryout. Although all components seem to connect, I get an error when the element tries to update: (I reduced the data-signed-params string in below's printout - as it is actually 117K bytes long...)
Futurism::Channel#receive({"signed_params"=>["BAh7BzoMcGFydGlhbEkiIXdpbmtlbC9zdG9yZV9vcmRlcl...f2b7fbf72d7c5a5df5b15"], "sgids"=>[nil]}) Rendered winkel/store_order_lines/_sol.html.haml (Duration: 0.2ms | Allocations: 53) [ActionCable] Broadcasting to Futurism::Channel: {"cableReady"=>true, "operations"=>{"outerHtml"=>[{"selector"=>"[data-signed-params='BAh7BzoMcGFydGlhbEkiIXdpbmtlbC9zdG9yZV9vcmRlcl...f2b7fbf72d7c5a5df5b15']", "html"=>"<p>\n31484\n</p>\n"}]}} Could not execute command from ({"command"=>"message", "identifier"=>"{\"channel\":\"Futurism::Channel\"}", "data"=>"{\"signed_params\":[\"BAh7BzoMcGFydGlhbEkiIXdpbmtlbC9zdG9yZV9vcmRlcl...f2b7fbf72d7c5a5df5b15\"],\"sgids\":[null]}"}) [PG::InvalidParameterValue - ERROR: payload string too long ]: /home/danny/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/actioncable-6.0.3.2/lib/action_cable/subscription_adapter/postgresql.rb:20:in
exec' | /home/danny/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/actioncable-6.0.3.2/lib/action_cable/subscription_adapter/postgresql.rb:20:inblock in broadcast' | /home/danny/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/actioncable-6.0.3.2/lib/action_cable/subscription_adapter/postgresql.rb:54:in
block in with_broadcast_connection' | /home/danny/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/activerecord-6.0.3.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:471:inwith_connection' | /home/danny/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/actioncable-6.0.3.2/lib/action_cable/subscription_adapter/postgresql.rb:51:in
with_broadcast_connection'`Implementation itself is very simple:
- sols.each do |sol| = futurize partial: "winkel/store_order_lines/sol", locals: {sol: sol}, extends: :div, html_options: {style: "width: 50px; height: 50px; display: block; "} do %div.spinner
and for winkel/store_order_lines/_sol.html.haml:
%p = sol.id
Any idea what I'm doing wrong - or why the signed params string is so long?
Futurism version: 0.4.1
The text was updated successfully, but these errors were encountered: