#metabrainz

/

      • atj[m]
        yvanzo[m]: I don't think it's that interesting to most people tbh. This post is mainly for people running mirrors right?
      • yvanzo[m]
        Yes, and editors, probably not worth mentioning it then.
      • atj[m]
        [@zas](https://matrix.to/#/@zas666:matrix.org): Might be me but I did a curl HTTPS req to the new solr-priv host and it responded with a redirect to HTTP
      • Can you check, I'm a bit busy today trying to tie things up before my flight tomorrow
      • pite joined the channel
      • discordbrainz
        <02netizen1997> really dont know how to deal with “connection reset” error,can someone help me please?
      • mayhem[m]
        got more context, netizen1997?
      • discordbrainz
        <02netizen1997> sorry for my poor english. i m using java with okhttpclient,here is my code
      • <02netizen1997> OkHttpClient client = new OkHttpClient().newBuilder() .callTimeout(10, TimeUnit.SECONDS) .connectTimeout(10, TimeUnit.SECONDS) .readTimeout(10, TimeUnit.SECONDS) .connectionPool(new ConnectionPool(10,10,TimeUnit.SECONDS)) .build(); String url = "https://musicbrainz.org/ws/2/release?query=lanterns"; // url =
      • "https://blog.csdn.net/super_kingking/article/details/70992012"; Request request = new Request.Builder() .url(url) .method("GET", null) .addHeader("User-Agent","album manager/1.0(xiangyu97@live.cn), personal use") .addHeader("Accept",
      • "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7") .addHeader("Accept-Encoding", "gzip, deflate, br, zstd") .addHeader("Accept-Language","zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6") .addHeader("Accept-Language","zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6") .build();
      • System.out.println(request.toString()); try { Response response = client.newCall(request).execute();
      • <02netizen1997> get
      • <02netizen1997> java.lang.RuntimeException: java.net.SocketException: Connection reset
      • mayhem[m]
        not much of a java guy, but do you need all those options passed in the headers?
      • discordbrainz
        <02netizen1997> i m also a new beginner of java, i just dont know how to do, so i append too many options in my headers..
      • mayhem[m]
        I'd say skip everything by the User-Agent header.
      • discordbrainz
        <02netizen1997> i have tried but faild.
      • mayhem[m]
        anyone here with more java experience who could help?
      • minimal joined the channel
      • discordbrainz
        <11techmorningstar> @netizen1997 sounds like a network issue to me.
      • <02netizen1997> but when i use python, it works without any config set...:lookdown:
      • <02netizen1997> java is too complex, i hate it, but i really need it.:lookdown:
      • <02netizen1997> It's ok to use my code sending a request to other website..
      • Jigen
        also netizen: please use a paste bin for that'
      • discordbrainz
        <02netizen1997> `