-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Description
Checked other resources
- This is a bug, not a usage question. For questions, please use the LangChain Forum (https://forum.langchain.com/).
- I added a very descriptive title to this issue.
- I searched the LangChain.js documentation with the integrated search.
- I used the GitHub search to find a similar question and didn't find it.
- I am sure that this is a bug in LangChain.js rather than my code.
- The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package).
Example Code
Hi!
To be honest I'm not sure whether this is a purely openai SDK bug or a langchain/openai one. Out of precaution I'm posting in both.
Edit:
this seems to happen when I run a langgraph in a langgraph (as if in a node, import another langgraph instance, and invoke it).
Error Message and Stack Trace (if applicable)
TypeError: Cannot read private member from an object whose class did not declare it at __classPrivateFieldGet
(file:///app/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/openai/internal/tslib.mjs:14:15) at Proxy.buildURL
(/app/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/openai/src/client.ts:446:23) at Proxy.buildRequest
(/app/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/openai/src/client.ts:818:22) at Proxy.makeRequest
(/app/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/openai/src/client.ts:532:46) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async file:///app/node_modules/.pnpm/@langchain+openai@0.6.2_@langchain+core@0.3.65_@opentelemetry+api@1.9.0_@opentelemetry+_6b14e933d3433c65dede7732832881c4/node_modules/@langchain/openai/dist/embeddings.js:182:29 at async RetryOperation._fn (/app/node_modules/.pnpm/[email protected]/node_modules/p-retry/index.js:50:12)
### Description
What's strange is that this error typically happens in a container with a Linux environment. In my case, Ubuntu.
I've tried to replicate it but I simply cannot.
Considering downgrading for now but I'm not sure if it's a "langchain/openai" issue, or an "openai" one.
### System Info
[email protected] | MIT | deps: 11 | versions: 325
Typescript bindings for langchain
https://github.com/langchain-ai/langchainjs/tree/main/langchain/
keywords: llm, ai, gpt3, chain, prompt, prompt engineering, chatgpt, machine learning, ml, openai, embeddings, vectorstores
dist
.tarball: https://registry.npmjs.org/langchain/-/langchain-0.3.30.tgz
.shasum: 9fc0467007009dc5e799d1f8fb9dd1137654e387
.integrity: sha512-UyVsfwHDpHbrnWrjWuhJHqi8Non+Zcsf2kdpDTqyJF8NXrHBOpjdHT5LvPuW9fnE7miDTWf5mLcrWAGZgcrznQ==
.unpackedSize: 2.9 MB
dependencies:
@langchain/openai: >=0.1.0 <0.7.0 openapi-types: ^12.1.3
@langchain/textsplitters: >=0.0.0 <0.2.0 p-retry: 4
js-tiktoken: ^1.0.12 uuid: ^10.0.0
js-yaml: ^4.1.0 yaml: ^2.2.1
jsonpointer: ^5.0.1 zod: ^3.25.32
langsmith: ^0.3.33
maintainers:
- nfcampos <[email protected]>
- jacoblee93 <[email protected]>
- andrewnguonly <[email protected]>
- davidduong <[email protected]>
- hntrl <[email protected]>
- hwchase17 <[email protected]>
- basproul <[email protected]>
dist-tags:
latest: 0.3.30 tag-for-publishing-older-releases: 0.2.20
next: 0.3.2-rc.0
published 4 days ago by davidduong <[email protected]>
npm notice
npm notice New major version of npm available! 9.9.3 -> 11.4.2
npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.4.2
npm notice Run npm install -g [email protected] to update!
npm notice
node version: v22