GithubHelp home page GithubHelp logo

panic: context deadline exceeded about chat HOT 5 CLOSED

Menziess avatar Menziess commented on August 20, 2024 1
panic: context deadline exceeded

from chat.

Comments (5)

stillmatic avatar stillmatic commented on August 20, 2024 1

The original motivation was that the API server was quite unreliable and failing to connect; 20 seconds was probably too long (especially for long responses) but some window is helpful. It's probably better to cancel it based on when the first byte arrives to the stream (i.e. give 2 seconds for the API to respond, otherwise cancel). That was quite tricky to get right unfortunately.

It's removed now, thanks for the fix!

from chat.

rfahmi avatar rfahmi commented on August 20, 2024

same here

from chat.

TechDufus avatar TechDufus commented on August 20, 2024

If you both (@rfahmi @Menziess) want to pull my forked branch and build / test locally to see if #3 resolves this for you, you can..

from chat.

Menziess avatar Menziess commented on August 20, 2024

The issue seems to be resolved.

from chat.

TechDufus avatar TechDufus commented on August 20, 2024

Going to resurrect this....

panic: context deadline exceeded (Client.Timeout or context cancellation while reading body)

goroutine 1 [running]:
main.main()
        /home/techdufus/go/pkg/mod/github.com/stillmatic/[email protected]/main.go:133 +0x1c5

The chat session lasted much longer thanks to v0.2.3 but still isn't completely resolved it seems?

from chat.

Related Issues (3)

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.