Skip to content
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

better error message - BUFFER_SHORTAGE #114

Open
jvsteiner opened this issue Oct 4, 2020 · 2 comments
Open

better error message - BUFFER_SHORTAGE #114

jvsteiner opened this issue Oct 4, 2020 · 2 comments

Comments

@jvsteiner
Copy link

I recently ran into "BUFFER_SHORTAGE" errors due to what ended up being an encoding problem on my end. My suggestion is that "BUFFER_SHORTAGE" is perhaps not a correctly descriptive error message. I would recommend something like "BUFFER_TOO_SHORT" instead, since "BUFFER_SHORTAGE" make it sound like something is having trouble allocating a buffer, due to memory constraints, or something. You don't have a shortage of buffers in this case - you have a buffer that is too short.

Originally posted by @jvsteiner in #60 (comment)

@c0per
Copy link

c0per commented Dec 5, 2021

I'm having the same error, not knowing what I did wrong. Can you provide some information on what "encoding problem" you encountered?

@jvsteiner
Copy link
Author

jvsteiner commented Dec 5, 2021

It's been a while, but iirc, I was encoding the object somewhere, and that wasn't working right, resulting in a zero length buffer, which caused the error when I tried to decode it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants