-
Notifications
You must be signed in to change notification settings - Fork 238
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
SSL certification error to OpenAI API #1368
Comments
That's unusual. That said, not all curves are supported. You could try disabling use of ECC to fall back to another ciphersuite. "config": {
"tls": {
"DHE_RSA": false,
"ECDHE_RSA": false
}
} |
I added the config section to |
Thank you for trying. This may be more complex to address. I'll take a look in the coming days. |
Some good news. Turning off TLS certificate validation allows the connection to succeed. (Of course, you still need to add ca236.der). While not a long term solution, this allow things to continue working while working on a proper solution. Please give it a try by modifying these three lines in openaistreamer.js as shown below. const http = {...device.network.https};
http.socket = {...http.socket, secure: {...http.socket.secure, verify: false}};
return new streamer({
...o,
http, The actual problem appears to occur while parsing the response. In one case, the curve string has |
Thank you for suggestion, I confirmed this code works. |
I cannot reproduce the |
This issue fixed in 4.9.0. Thank you. |
Build environment: macOS
Moddable SDK version: 3bf5202
Target device: Mac simulator
Steps to Reproduce
examples/pins/audioout/openai-stream
using this build command:mcconfig -d -m -p mac
/Users/satoshi/Projects/moddable/modules/files/resource/Resource.c (44) # Break: Resource: Resource not found: ca236.der!
manifest_openaistreamer.json
to setca236
and re-run app./Users/satoshi/Projects/moddable/modules/crypt/etc/x509.js (140) # Break: Error: x509: unsupported curve!
The text was updated successfully, but these errors were encountered: