Closed printercu closed 7 years ago
Is it possible to fix http-2 lib, so it would not crash ruby process if any other possible header is not string?
Yes, that is a possibility, thanks for the suggestion. I am unsure whether the underlying http-2 gem requires al headers to be string though. Will need to check that out.
This is now fixed in https://github.com/ostinelli/net-http2/commit/e2c15d3f2fe79b0b56655b199c120e7491881aca.
Hi!
I had
notifiaction.apns_collapse_id = order.id
and app was crashing withHTTP2::Error::ProtocolError (HTTP2::Error::ProtocolError)
and no backtrace. Sometimes exception was rescued with messageundefined method 'bytesize' for 2:Fixnum.
But sometimes it wasn't even rescued, app just crashed.Changing to
order.id.to_s
fixed this.