Coder Social home page Coder Social logo

Http2 Adapter causing 500 requests about k8s HOT 10 CLOSED

canuc avatar canuc commented on June 12, 2024
Http2 Adapter causing 500 requests

from k8s.

Comments (10)

mruoss avatar mruoss commented on June 12, 2024 1

Hey @canuc and @razielgn

I think #285 actually solves this. Would either of you be willing to test your code with the version of that PR?

from k8s.

razielgn avatar razielgn commented on June 12, 2024 1

Hello, yes I'm going to deploy this patch today and let it run for a few days. I think by Monday it'll be clear. Thank you!

from k8s.

canuc avatar canuc commented on June 12, 2024 1

This is amazing! thanks so much!!!

from k8s.

mruoss avatar mruoss commented on June 12, 2024

Hi @canuc

This sounds like a bug. But you're not giving me much context to reproduce this. What version of k8s is this? What is the code that leads to this?

Thanks

from k8s.

razielgn avatar razielgn commented on June 12, 2024

I'm also having this issue, using version 2.4.1 (mint 1.5.1). It happens every 3/4 days, sometimes multiple times in a single day.
What I have is a cronjob via Oban that periodically does

K8s.Conn.from_service_account()
|> K8s.Client.run(K8s.Client.list("argoproj.io/v1alpha1", "workflow", namespace: "argo-workflows"))

Here's the stacktrace:

** (exit) exited in: GenServer.call(#PID<0.292039.0>, {:recv, #Reference<0.4064860026.2373451778.104924>}, :infinity)
    ** (EXIT) shutdown: :closed

lib/gen_server.ex in GenServer.call/3 at line 1074
lib/k8s/client/mint_http_provider.ex in anonymous fn/3 in K8s.Client.MintHTTPProvider.stream/5 at line 41
lib/stream.ex in Stream.do_resource/5 at line 1626
lib/stream.ex in Enumerable.Stream.do_each/4 at line 1828
lib/enum.ex in Enum.reduce/3 at line 4387
lib/k8s/client/mint_http_provider.ex in K8s.Client.MintHTTPProvider.request/5 at line 20
lib/app/workers/workflows_refresher.ex in App.Workers.WorkflowsRefresher.perform/1 at line 19

Let me know if I should provide more info, thanks.

from k8s.

mruoss avatar mruoss commented on June 12, 2024

Sorry, I totally forgot about this issue. It reached me while on vacation. I have an idea of what could be the problem, but I need a quiet moment to wrap my head around it.

Note to self: Double check the meaning of the type option of Mint.open?() - docs don't seem obvious right now.

from k8s.

mruoss avatar mruoss commented on June 12, 2024

@razielgn all quiet so far?

from k8s.

razielgn avatar razielgn commented on June 12, 2024

All quiet so far!

from k8s.

mruoss avatar mruoss commented on June 12, 2024

Nice. Thanks for testing it. I will merge and release.

from k8s.

razielgn avatar razielgn commented on June 12, 2024

Thanks!

from k8s.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.