-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow wss://
in the onprem URL.
#360
Comments
You should be able to set the URL to Only options would be to:
|
We could do a combination of those options.
Longer term, this might be more sustainable. The reason why I separated the classes out because it implies the options are the same for both REST and WS connections and that it's true. For example, |
This is not possible right now. I installed the latest version, published 45 min ago, and tested:
This code returns an error. Replacing Why can't we just check for |
I think we're talking about different things here. The DeepgramClientOptions class is a higher level class than the streaming/prerecorded configuration classes. I'm pretty sure a short 2-line if statement will work. |
Yea, we are talking about the same thing. DeepgramClientOptions can be passed into LiveClient and PreRecorded/Speak/Manage/Analyze Clients. |
Will have something in a bit |
this slipped my mind... will have something for tomorrow. The workaround is to also supply the protocol with the hostname or IP which we discussed in slack (I believe 🧐) |
This fix is available in: https://github.com/deepgram/deepgram-python-sdk/releases/tag/v3.2.7 |
What is the current behavior?
The Python SDK requires the onprem URL to be
https://...
and if the user tries to set it aswss://...
because they are using streaming, the connection fails.Steps to reproduce
Set the URL to
wss://...
rather thanhttps://...
. You can usewss://api.deepgram.com
rather than an onprem URL to reproduce.Expected behavior
The
wss
protocol should be accepted, in addition tohttps
.Please tell us about your environment
Reproducible in any env.
Other information
The text was updated successfully, but these errors were encountered: