Skip to content
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

{"error":"Unexpected token '<', \"<!DOCTYPE \"... is not valid JSON"} #26

Open
Ayushyaverma opened this issue Oct 19, 2024 · 6 comments

Comments

@Ayushyaverma
Copy link

It was working when I initially installed, now this showing this error

in langchain
Cannot read properties of undefined (reading 'map')

TypeError: Cannot read properties of undefined (reading 'map')
at formatDocuments (webpack-internal:///(rsc)/./node_modules/langchain/dist/chains/combine_documents/base.js:16:55)
at RunnableLambda.eval [as func] (webpack-internal:///(rsc)/./node_modules/langchain/dist/chains/combine_documents/stuff.js:33:278)
at eval (webpack-internal:///(rsc)/./node_modules/@langchain/core/dist/runnables/base.js:1437:44)
at MockAsyncLocalStorage.run (webpack-internal:///(rsc)/./node_modules/@langchain/core/dist/singletons/index.js:11:9)
at output (webpack-internal:///(rsc)/./node_modules/@langchain/core/dist/runnables/base.js:1435:117)
at new Promise ()
at RunnableLambda._transform (webpack-internal:///(rsc)/./node_modules/@langchain/core/dist/runnables/base.js:1434:30)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async RunnableLambda._transformStreamWithConfig (webpack-internal:///(rsc)/./node_modules/@langchain/core/dist/runnables/base.js:306:30)
at async RunnableSequence._streamIterator (webpack-internal:///(rsc)/./node_modules/@langchain/core/dist/runnables/base.js:1146:30)
at async RunnableSequence.transform (webpack-internal:///(rsc)/./node_modules/@langchain/core/dist/runnables/base.js:394:9)
at async RunnableMap._transform (webpack-internal:///(rsc)/./node_modules/@langchain/core/dist/runnables/base.js:1332:42)
at async RunnableMap._transformStreamWithConfig (webpack-internal:///(rsc)/./node_modules/@langchain/core/dist/runnables/base.js:306:30)
at async RunnableAssign._transform (webpack-internal:///(rsc)/./node_modules/@langchain/core/dist/runnables/base.js:1664:16)
at async RunnableAssign._transformStreamWithConfig (webpack-internal:///(rsc)/./node_modules/@langchain/core/dist/runnables/base.js:306:30)
at async ChatPromptTemplate.transform (webpack-internal:///(rsc)/./node_modules/@langchain/core/dist/runnables/base.js:384:26)
at async ChatTogetherAI.transform (webpack-internal:///(rsc)/./node_modules/@langchain/core/dist/runnables/base.js:384:26)
at async wrapInputForTracing (webpack-internal:///(rsc)/./node_modules/@langchain/core/dist/runnables/base.js:276:30)
at async pipeGeneratorWithSetup (webpack-internal:///(rsc)/./node_modules/@langchain/core/dist/utils/stream.js:224:19)
at async StringOutputParser._transformStreamWithConfig (webpack-internal:///(rsc)/./node_modules/@langchain/core/dist/runnables/base.js:295:26)
at async StringOutputParser.transform (webpack-internal:///(rsc)/./node_modules/@langchain/core/dist/output_parsers/transform.js:44:9)
at async RunnableSequence._streamIterator (webpack-internal:///(rsc)/./node_modules/@langchain/core/dist/runnables/base.js:1146:30)
at async RunnableSequence.transform (webpack-internal:///(rsc)/./node_modules/@langchain/core/dist/runnables/base.js:394:9)
at async RunnableMap._transform (webpack-internal:///(rsc)/./node_modules/@langchain/core/dist/runnables/base.js:1332:42)
at async RunnableMap._transformStreamWithConfig (webpack-internal:///(rsc)/./node_modules/@langchain/core/dist/runnables/base.js:306:30)

@GanapathyVicky
Copy link

I also facing the same error

@peterkessibu
Copy link

I am getting the same error, how do I fix it?

@GanapathyVicky
Copy link

somehow i can manage to do it But still i don't know how its working

@peterkessibu
Copy link

Oh ok that's cool

@Saberdz19
Copy link

any solution to this?

@peterkessibu
Copy link

Nope

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants