GithubHelp home page GithubHelp logo

Comments (7)

jfang avatar jfang commented on June 15, 2024 1

@Mayorc1978 You'll need to specify the version in your docker pull command to get the bleeding edge version. In this case I think it's version 1.31.

docker pull n8nio/n8n:1.31.0

I'm not sure when 1.30 will be released as the "latest" general release. docker pull n8nio/n8n

Go to the "Tags" section to see other available versions.
This one is filtered on the keyword "1.3" - https://hub.docker.com/r/n8nio/n8n/tags?page=1&name=1.3
image

I think the "Updated 16 Hours ago" (now 17) version is based on the nighly builds.

https://hub.docker.com/r/n8nio/n8n/tags?page=1&name=nightly

image

from n8n.

jfang avatar jfang commented on June 15, 2024

I have recreated the nodes from scratch (not copying and pasting from previous workflows) and now I have a different error message on the "Question and Answer Chain" node.

image

ERROR: message.toJSON is not a function
Details
Stack
TypeError: message.toJSON is not a function
at /usr/local/lib/node_modules/n8n/node_modules/@n8n/n8n-nodes-langchain/dist/utils/logWrapper.js:168:73
at Array.map ()
at Proxy.connectionType (/usr/local/lib/node_modules/n8n/node_modules/@n8n/n8n-nodes-langchain/dist/utils/logWrapper.js:168:48)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at Proxy._generateUncached (/usr/local/lib/node_modules/n8n/node_modules/@n8n/n8n-nodes-langchain/node_modules/langchain/node_modules/@langchain/core/dist/language_models/llms.cjs:138:22)
at LLMChain._call (/usr/local/lib/node_modules/n8n/node_modules/@n8n/n8n-nodes-langchain/node_modules/langchain/dist/chains/llm_chain.cjs:157:37)
at LLMChain.call (/usr/local/lib/node_modules/n8n/node_modules/@n8n/n8n-nodes-langchain/node_modules/langchain/dist/chains/base.cjs:120:28)
at StuffDocumentsChain._call (/usr/local/lib/node_modules/n8n/node_modules/@n8n/n8n-nodes-langchain/node_modules/langchain/dist/chains/combine_docs_chain.cjs:62:24)
at StuffDocumentsChain.call (/usr/local/lib/node_modules/n8n/node_modules/@n8n/n8n-nodes-langchain/node_modules/langchain/dist/chains/base.cjs:120:28)
at RetrievalQAChain._call (/usr/local/lib/node_modules/n8n/node_modules/@n8n/n8n-nodes-langchain/node_modules/langchain/dist/chains/retrieval_qa.cjs:81:24)
at RetrievalQAChain.call (/usr/local/lib/node_modules/n8n/node_modules/@n8n/n8n-nodes-langchain/node_modules/langchain/dist/chains/base.cjs:120:28)
at Object.execute (/usr/local/lib/node_modules/n8n/node_modules/@n8n/n8n-nodes-langchain/dist/nodes/chains/ChainRetrievalQA/ChainRetrievalQa.node.js:104:30)
at Workflow.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/Workflow.js:730:19)
at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:662:53
at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:1064:20

from n8n.

Joffcom avatar Joffcom commented on June 15, 2024

Hey @jfang,

For the new issue upgrading to 1.30.x will resolve that, I will look into the original workflow now.

from n8n.

Joffcom avatar Joffcom commented on June 15, 2024

I have just tested the workflow on 1.30.1 and it appears to be working, I would recommend upgrading and see if that changes anything for you.

from n8n.

Mayorc1978 avatar Mayorc1978 commented on June 15, 2024

I have just tested the workflow on 1.30.1 and it appears to be working, I would recommend upgrading and see if that changes anything for you.

I was testing the scraping website template:
I have the same issue as the original poster I do get this error:

TypeError: message.toJSON is not a function
    at /usr/local/lib/node_modules/n8n/node_modules/@n8n/n8n-nodes-langchain/dist/utils/logWrapper.js:168:73
    at Array.map (<anonymous>)
    at Proxy.connectionType (/usr/local/lib/node_modules/n8n/node_modules/@n8n/n8n-nodes-langchain/dist/utils/logWrapper.js:168:48)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at Proxy._generateUncached (/usr/local/lib/node_modules/n8n/node_modules/@n8n/n8n-nodes-langchain/node_modules/langchain/node_modules/@langchain/core/dist/language_models/llms.cjs:138:22)
    at LLMChain._call (/usr/local/lib/node_modules/n8n/node_modules/@n8n/n8n-nodes-langchain/node_modules/langchain/dist/chains/llm_chain.cjs:157:37)
    at LLMChain.call (/usr/local/lib/node_modules/n8n/node_modules/@n8n/n8n-nodes-langchain/node_modules/langchain/dist/chains/base.cjs:120:28)
    at async Promise.all (index 1)
    at MapReduceDocumentsChain._call (/usr/local/lib/node_modules/n8n/node_modules/@n8n/n8n-nodes-langchain/node_modules/langchain/dist/chains/combine_docs_chain.cjs:188:29)
    at MapReduceDocumentsChain.call (/usr/local/lib/node_modules/n8n/node_modules/@n8n/n8n-nodes-langchain/node_modules/langchain/dist/chains/base.cjs:120:28)

When using docker I cannot pull the 1.30.1 it will always pull the 1.29.1 version instead.
I'm using this command:
docker run -dit --rm --name n8n -p 5678:5678 -e GENERIC_TIMEZONE="Europe/Rome" -v n8n_data:/home/node/.n8n docker.n8n.io/n8nio/n8n

Even if I manually pull the image using the command suggested in the hub which reports the image updated in the last 16 hours: ( docker pull n8nio/n8n )
image
I end up instead with the image:
image
And you can clearly see it's the 1.29.1:
image

from n8n.

jfang avatar jfang commented on June 15, 2024

I have just tested the workflow on 1.30.1 and it appears to be working, I would recommend upgrading and see if that changes anything for you.

Thank you!

from n8n.

Mayorc1978 avatar Mayorc1978 commented on June 15, 2024

1.31 worked like a charm, with no error with the Summarization Chain.

from n8n.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.