-
Notifications
You must be signed in to change notification settings - Fork 12
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
Setting Content-Type causes an exception #7
Comments
+1 i'm trying to fix it |
Gah, sorry, I don't know how I missed the opening of this issue, but I appreciate that y'all have ideas in motion to fix it. I've honestly only ever communicated to a Crystal gRPC server through the I honestly can't remember the specific reason I added the |
Hey @jgaskins , thanks for sharing that tidbit, it was helpful to know the server's been a bit more thoroughly tested - comparing responses to a Crystal client and BloomRPC seems to confirm that things on the server side are fine. I dug around the code, and realized that a lot of my issues seemed to go away if I just disabled huffman encoding here. Not an ideal fix, but if I can find a reasonable place to add a param (open to suggestions) to enable/disable it, I'd be happy to open a PR |
@Serdnad Oh nice catch!. I'll have a look at this in the morning (just got done with a 13-hour road trip), but I wonder if there's a bug in the Huffman encoder/decoder. |
Does anyone have any info about this or does anyone have a fix other than disabling the compression? |
@SEbbaDK I was actually recently considering removing the H2 implementation from this gem to use a fork of Unfortunately, because my current company doesn't use gRPC I haven't had the motivation to finish that experiment yet. I was going to do it for my OpenTelemetry shard but it turns out gRPC isn't required for that, so laziness won out again. 😄 There is a chance, though, that it won't solve the problem since that shard is actually where the Huffman implementation in this shard comes from. |
I followed the setup instructions in the README, and everything compiles, but as soon as I run the client code with a server running (i.e. every time I fire a request), I get this from the server:
Your example repo was working great out of the box for me though, and the only difference seemed to be the lib versions, so I stepped through each release from v0.1.0 to v0.1.4 of the library, and found that when I remove the content headers by unapplying this commit, it works again, even with the changes in v0.1.4.
If there's any way I can help debug this, I'd be happy to help, though I was able to reproduce this just by creating a new project and following the README. Awesome work btw, thanks for the library.
Quick Update: Don't know what I touched just now, but now the changes in v0.1.4 are giving me a different exception... everything seems to work swell for me up until v0.1.2.
The text was updated successfully, but these errors were encountered: