Langsmith hub - unable to retrieve my prompts #5184
-
Checked other resources
Commit to Help
Example CodeCode
import { pull } from "langchain/hub";
const prompt = await pull<ChatPromptTemplate>("thecodingbarista/superagent");
Error
node:internal/deps/undici/undici:11576
Error.captureStackTrace(err, this);
^
TypeError: fetch failed
at Object.fetch (node:internal/deps/undici/undici:11576:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Client.listCommits (file:///C:/Users/Keenan/Desktop/Work/PotentialLive/node_modules/langchainhub/dist/client.js:160:21)
at async Client._getLatestCommitHash (file:///C:/Users/Keenan/Desktop/Work/PotentialLive/node_modules/langchainhub/dist/client.js:210:29)
at async Client.pull (file:///C:/Users/Keenan/Desktop/Work/PotentialLive/node_modules/langchainhub/dist/client.js:288:26)
at async pull (file:///C:/Users/Keenan/Desktop/Work/PotentialLive/node_modules/langchain/dist/hub.js:23:20)
at async executeCommand (file:///C:/Users/Keenan/Desktop/Work/PotentialLive/app/docgenerator.js:232:20)
at async file:///C:/Users/Keenan/Desktop/Work/PotentialLive/app/agent.js:331:23 {
cause: Error: unable to verify the first certificate
at TLSSocket.onConnectSecure (node:_tls_wrap:1600:34)
at TLSSocket.emit (node:events:517:28)
at TLSSocket.emit (node:domain:489:12)
at TLSSocket._finishInit (node:_tls_wrap:1017:8)
at ssl.onhandshakedone (node:_tls_wrap:803:12) {
code: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE'
}
} DescriptionI'm trying to retrieve my prompt from langsmith like I've done in the past, however now none of my prompts work and throws (UNABLE_TO_VERIFY_LEAF_SIGNATURE) error. I do not know what has changed since we have paused development with langchain, now that we are doing some more development I ran into this issue. System InfoNode.js v18.18.0 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
The To bypass this error for development purposes, you can disable SSL certificate validation by setting process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0"; Ensure to remove or comment out this line before moving to production to maintain the security of your application. Regarding the If the issue persists or you need further assistance, providing more details about your setup and the steps you've taken can help in offering more specific advice.
|
Beta Was this translation helpful? Give feedback.
-
@KeenanFernandes2000 By any chance you have ESET Antivirus on that machine? If so, an update of ESET broke SSL/TLS for node |
Beta Was this translation helpful? Give feedback.
-
![]() I think this is happening for real this time. I am unable to open langsmith due to ssl certificate expire. |
Beta Was this translation helpful? Give feedback.
@KeenanFernandes2000
Be carefull with process.env.NODE_TLS_REJECT_UNAUTHORIZED to 0, don't use it in production. Use it only in a development/debug or test environment.
By any chance you have ESET Antivirus on that machine? If so, an update of ESET broke SSL/TLS for node