Replies: 1 comment
-
I worked fine with Tomcat and NetBeans. Glassfish error. I don't know for Glassfish error for cert. I recommand Tomcat with NetBeans for LangChain4j. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
OpenAiChatModel.generate() error.
stand alone java application code works fine.
but,
error in web application using Glassfish web server of NetBeans IDE
I guess that SSL to api.openai.com cert.
I added api.openai.com's cert to Zulu-21 OpenJDK security/cacerts using keytool.
The same error still occurs.
How can I solve the problem?
java.lang.RuntimeException: java.lang.RuntimeException: javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at dev.langchain4j.internal.RetryUtils.withRetry(RetryUtils.java:29)
at dev.langchain4j.model.openai.OpenAiChatModel.generate(OpenAiChatModel.java:127)
at dev.langchain4j.model.openai.OpenAiChatModel.generate(OpenAiChatModel.java:91)
Beta Was this translation helpful? Give feedback.
All reactions