GithubHelp home page GithubHelp logo

Comments (5)

roerohan avatar roerohan commented on July 19, 2024 1

Thanks! I'll take a look at it after some time.

Also, I noticed a minor mistake in the logs, so I created a PR #347

from deepgram-python-sdk.

roerohan avatar roerohan commented on July 19, 2024

Also, in v3.2.1, there's no way for me to handle exceptions raised by the send method, because they're caught within the SDK and logged, as you can see here

except websockets.exceptions.WebSocketException as e:
self.logger.error("send() failed - WebSocketException: %s", str(e))
self.logger.spam("AsyncLiveClient.send LEAVE")
return False

Now, let's say I want to reconnect if there's an exception in self._socket.send, there's no way for me to do it using the SDK, other than using self._socket.send directly instead of AsyncLiveClient.send, which beats the purpose of the class.

from deepgram-python-sdk.

dvonthenen avatar dvonthenen commented on July 19, 2024

Ooops. That's definitely a bug after the refactor. We should not be kicking off the thread off if the keepalive isn't enabled. Will also toggle post an error on the callback which is missing and provide a switch to handle the exception yourself.

Will have that fixed this morning.

from deepgram-python-sdk.

dvonthenen avatar dvonthenen commented on July 19, 2024

hi @roerohan

This should address your issue:
https://github.com/deepgram/deepgram-python-sdk/releases/tag/v3.2.2

If you want to enable passing the exceptions up, there are options to do that now on top of fixing the keepalive issue. If you have any problems with this, catch me in discord for real-time help.

from deepgram-python-sdk.

dvonthenen avatar dvonthenen commented on July 19, 2024

Here are some examples to demonstrate expected failures when not using and also how to utilize the feature correctlyhttps://github.com//pull/348

from deepgram-python-sdk.

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.