Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 04:25
    rossabaker labeled #4805
  • 04:25
    rossabaker labeled #4805
  • May 06 20:05
    rossabaker closed #3717
  • May 06 20:05
    rossabaker commented #3717
  • May 06 19:38
    tpataky commented #3717
  • May 06 15:14
    rossabaker commented #2855
  • May 06 14:32
    rossabaker commented #4802
  • May 06 13:51
    rossabaker closed #3936
  • May 06 11:37
    aeons closed #2920
  • May 06 11:37
    aeons commented #2920
  • May 06 11:30

    aeons on 0.22

    issues/4649 - Provide Header.To… Disable flaky ZonedDateTime Que… Merge pull request #4801 from p… (compare)

  • May 06 11:30
    aeons closed #4801
  • May 06 05:20
    RaasAhsan commented #4805
  • May 06 05:12
    ChristopherDavenport edited #4805
  • May 06 05:12
    ChristopherDavenport opened #4805
  • May 06 05:05
    rossabaker labeled #4804
  • May 06 05:05
    rossabaker opened #4804
  • May 06 05:03
    rossabaker commented on 50723f5
  • May 06 05:03

    rossabaker on 0.21

    Blaze is non-blocking Corrects… (compare)

  • May 05 20:50
    RafalSumislawski commented #4798
clairenorth
@clairenorth
Can one use a AsyncHttpClientCatsBackend as an sttp client in tandem with the BlazeServer on http4s?
Christopher Davenport
@ChristopherDavenport
I haven't tried to use sttp before. The models might take some adjusting, but I see no reason you couldn't. Just in general more people will be using http4s clients with http4s so we have a little less experience with other ones.
ybasket
@ybasket:matrix.org
[m]
@clairenorth: If you mean having them in the same service, yes, for sure – it's like having any two independent libraries. I have some stuff running in exactly that setup.
You can save on dependencies if you use the Http4sBackend on sttp though (but make sure it supports all you need, some special features might not be supported).
Christopher Davenport
@ChristopherDavenport
We're going to have a trial period leveraging Discord. This space will not be closed, but we will direct people to Discord or Github Discussions/Issues.
We hope you will join us there. Reasoning and links to the new location
Toby Thain
@toby5box
hi, i will check git history, but does anyone remember if there was a specific change to the handling of a leading / in routes (i.e. at Root)? we noticed that 0.21 won't parse //foo at root, but does parse /foo; much older versions parse both the same
Christopher Davenport
@ChristopherDavenport
Those will now need appropriate segments to match.
Points to discord hoping we can move this there.
Ross A. Baker
@rossabaker
I can't think of anything that changed on the URI path until 0.22.
Toby Thain
@toby5box
I suppose it's Ross's commits b43864002cb8eb38c686b487545b115d3dd3362e ; e3ec24509d1724da398fe716eecb1bf3892a30d8
haven't looked beyond commit message though
@ChristopherDavenport don't have DIscord.
sorry, only the latter. first is a merge
the comment seems to indicate the opposite intention from what I observe
  • "//foo/bar" in {
  • Path("//foo/bar") must_== Path("", "foo", "bar")
    }
aha
okay, so // at root introduces an empty segment, but this did not happen in older versions
Christopher Davenport
@ChristopherDavenport
Yes.
Toby Thain
@toby5box
ok, well that explains it. Thanks
(believe it or not that caused a production regression lol)
Christopher Davenport
@ChristopherDavenport
I believe it! I hope you'll consider creating a discord account when you have a moment. :smile:
Tomas Herman
@tomasherman
Hey guys, pls any idea when we can expect Scala 3.0.0-RC3 release for 1.0.0? :) not that it's super urgent but i wonder if there is some rough ETA ;)
Ishan Shah
@nullptr7
Hello I am currently getting below error when running the BlazeServerBuilder with SSLContext
ERROR org.http4s.blaze.pipeline.Stage - Abnormal NIO1HeadStage termination
[info] javax.net.ssl.SSLException: Received fatal alert: certificate_unknown
[info] at sun.security.ssl.Alerts.getSSLException(Alerts.java:208)
I am creating sslcontext correctly, because I earlier had a project in Akka-http using same ssl context and that is working fine.
Any suggestions?
hamnis
@hamnis:matrix.org
[m]
@tomasherman: we are waiting for cats-parse
bblfish
@bblfish:matrix.org
[m]
Have you tried matrix?
It looks like there is a Matrix/discord beta bridge https://matrix.org/docs/projects/bridge/matrix-appservice-discord
Glen Marchesani
@fizzy33
I am converting http4s server to the latest (for cats effect 3) how would I do this header code in the latest
  object impl {
    object headers {
      val jsonContentType = Header("Content-Type", "application/json")
      val chunked = Header("Transfer-Encoding", "chunked")
    }
  }
Ross A. Baker
@rossabaker
@nullptr7 How are you setting the cert? withSSLContext on the builder?
@fizzy33 We need to find time to put together a migration guide before that lands, and that's definitely one of the big changes. We had to rip that out because Scala 3 deprecated a language feature on us.
Glen Marchesani
@fizzy33
ah okay @rossabaker
I just did this for now and it works (with another tweak further down the code)
  object impl {
    object headers {
      val jsonContentType = Header.Raw(CIString("Content-Type"), "application/json")
      val chunked = Header.Raw(CIString("Transfer-Encoding"), "chunked")
    }
  }
I don't need to parse headers just set some standard ones
Ross A. Baker
@rossabaker
We have constants for those values, but it's still a little verbose use the model to create constants for those headers. Both of which are very common.
`Content-Type`(MediaType.application.json) and ` Transfer-Encoding(ContentCoding.chunked), if you want to be less stringy. And I'm doing those from memory.
Ishan Shah
@nullptr7
I finally manage the resolve. I was using an incorrect certificate. Thanks
Igor Tovstopyat-Nelip
@igortn
Hi all! Is there scalafix to migrate to 1.0.x ?
Christopher Davenport
@ChristopherDavenport
None yet built.
Igor Tovstopyat-Nelip
@igortn
heh .. ok, thank you
Ross A. Baker
@rossabaker
There are some for 0.22 that will also help for 1.0. And there might be one for CE3, which is going to be a major difference from 0.22 to 1.0.
Igor Tovstopyat-Nelip
@igortn
@rossabaker Are you saying that there is CE3 scalafix for http4s somewhere?
Ross A. Baker
@rossabaker
I thought there was for CE2 -> CE3, but I could be mistaken. There is nothing specific for http4s and CE3 yet.
Igor Tovstopyat-Nelip
@igortn
And, have anybody successfully migrated the stack like (http4s, fs2, doobie, circe) to CE3?
Thank you @rossabaker
Ross A. Baker
@rossabaker
circe doesn't use cats-effect at all. fs2 has a full release, we have a milestone, I'm not sure about doobie.
Igor Tovstopyat-Nelip
@igortn
Doobie has 1.0.x milestone release that is targeting CE3. Yeah, circe is not relevant. I was just wondering if it makes sense at all to attempt migration yet.
I guess I'll give it a shot anyway.