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
Why is payload_too_large? and the actual size of the payload not public? #85
Comments
A similar topic was brought up not too long ago in #78, but it was determined it we didn't need to expose the actual An alternative idea: What if we enhance the |
I'd rather avoid using exceptions for flow control. If there's no particular reason for hiding these methods, I would simply expose them. Not exposing Using |
I agree completely, which is why Grocer would expose a I was thinking the |
+1 for |
@n-studio My thinking is: as part of the enhancement to |
@mbillard I do still think going with Thoughts? |
@mbillard Yes, I think it's necessary to have @stevenharman If encoded_payload.bytesize is only in the error message then we need to parse the message to get the size, which would be ugly. |
We currently try to truncate the alert when exceeding the payload dimension, but without actual numbers it's kind of difficult.
We're left with 2 options:
payload_too_large?
and a newpayload_size
(which isencoded_payload.bytesize
)send
to access private methodsI wanted to know if there was any reason for making these private. If not, then you can expect a PR promptly.
Thanks
The text was updated successfully, but these errors were encountered: