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
Use https
for the API calls or allow setting the protocol
#465
Comments
Some debugging this morning... The tl;dr It looks like this is some friction between how the agent-base module decides if the connection is secure or not (It scans the callstack at the point of the request) and when Sentry is trying to determine what the protocol is. |
Looks like TooTallNate/node-agent-base#61 is the most likely root cause. Have a workaround I'll send a PR for. |
@ianjakobs any chance you could give this branch a try? https://github.com/microsoft/cognitive-services-speech-sdk-js/tree/rhurey/add_protocol I ran a small test w/ sentry and it seems to work now, but... |
Yes, that seems to work! I installed from your branch with Thank you for the fast response and fix! |
Ok, the PR is in so I'm going to close this issue, lmk if you have problems. |
From the 1.20 release notes: |
First reported in #458, myself and a few others are still experiencing the following error despite the original issue having been closed by the author:
More details can be found there, but in short it seems that this SDK doesn't explicitly set a protocol for the API calls, causing the Sentry JavaScript SDK to fall back to
http
.Even though it looks like it's only us Sentry users that are running into this, it seems better to address it here since the Azure API requires
https
. Alternatively, it could help to be able to set the protocol explicitly throughsdk.SpeechConfig.fromEndpoint
, which is what I've tried to do as well.For reference, here's the code that I'm using:
The text was updated successfully, but these errors were encountered: