Closed mamantoha closed 2 years ago
Crystal code to reproduce the issue:
require "http/client"
require "uri"
url = "https://api.github.com"
uri = URI.parse(url)
path = "/repos/crystal-lang/crystal"
headers = HTTP::Headers.new
headers.add("Accept", "application/vnd.github.mercy-preview+json")
client = HTTP::Client.new(uri)
resp = client.exec("GET", path, headers: headers)
puts resp.body
puts "Wait 2 minutes..."
sleep 2.minutes
resp = client.exec("GET", path, headers: headers)
puts resp.body
Adding this line fixes this issue:
client.compress = false
:tada:
Still exists in Crystal 0.25 :crying_cat_face:
Still exists in Crystal 0.26 :crying_cat_face:
Still exists in Crystal 0.29 :crying_cat_face:
should this issue be upstreamed to the crystal project?
Still exists in Crystal 1.1.0 :crying_cat_face:
It seems like this has been fixed with the docker nightly build.
@cyangle still exists
crystal -v
Crystal 1.3.0-dev [6ce66047c] (2021-12-07)
LLVM: 10.0.0
Default target: x86_64-unknown-linux-gnu
@mamantoha Could you try it out with latest crystallang/crystal:nightly-alpine? It works for me.
# crystal -v
Crystal 1.3.0-dev [0f0852f33] (2021-12-08)
LLVM: 10.0.0
Default target: x86_64-unknown-linux-musl
This bug seems to be fixed by https://github.com/crystal-lang/crystal/pull/12536
Fixed in Crystal 1.6.0 😸 🎉
shards-info with
crest
v0.10.1
randomly crash on Heroku about 1-2 times per hour :shit: