-
Notifications
You must be signed in to change notification settings - Fork 104
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
Illegal Invocation Error When Using Speech SDK in Cloudflare Workers Environment #810
Comments
@sonbs21 Thank you for using JS Speech SDK, and writing this issue up. Any chance you could gather logs on this issue, and help us understand what exactly was "illegally invoked"? (To enable logging, use the following code before starting recognition:
|
|
When this.prevSetTimeout in the delay function is called, an error will appear Illegal Invocation |
@sonbs21 If you could pull the branch in the PR above and test it with your cloudflare deployment to see that addresses the issue, I'd appreciate it. |
I've just tested and it looks like the issue has been resolved. Thank you for you help!😄 |
What happened?
I am encountering an
Illegal invocation
error when trying to usemicrosoft-cognitiveservices-speech-sdk
within a Cloudflare Workers environment. The same code works as expected in a Node.js environment, but it fails when deployed to Cloudflare Workers.Version
1.36.0 (Latest)
What browser/platform are you seeing the problem on?
Node, Other
Relevant log output
No response
The text was updated successfully, but these errors were encountered: